diff options
| author | ivan <ivan> | 2002-02-12 02:11:07 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2002-02-12 02:11:07 +0000 | 
| commit | ae23f6fe1ca915c995cfbf29bb39e7ed5e1cce2c (patch) | |
| tree | 8c01bf01f5a214ae1bff6440e31c8c177a781e8a /httemplate | |
| parent | a2c24812441a8f8ae3045a8c0c93c7f009d4f494 (diff) | |
add username_policy "@append domain"
add "select" config type, mmm
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/config/config.cgi | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index b9e84a8d5..f640d0b5e 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -30,6 +30,16 @@              <input name="<%= $i->key. $n %>" type="checkbox" value="1"<%= $conf->exists($i->key) ? ' CHECKED' : '' %>>            <% } elsif ( $type eq 'text' )  { %>              <input name="<%= $i->key. $n %>" type="<%= $type %>" value="<%= $conf->exists($i->key) ? $conf->config($i->key) : '' %>"> +          <% } elsif ( $type eq 'select' )  { %> +            <select name="<%= $i->key. $n %>"> +              <% my %saw; +                 foreach my $value ( "", @{$i->select_enum} ) { +                    local($^W)=0; next if $saw{$value}++; %> +                <option value="<%= $value %>"<%= $value eq $conf->config($i->key) ? ' SELECTED' : '' %>><%= $value %> +              <% } %> +              <% if ( $conf->exists($i->key) && $conf->config($i->key) && ! grep { $conf->config($i->key) eq $_ } @{$i->select_enum}) { %> +                <option value=<%= $conf->config($i->key) %> SELECTED><%= conf->config($i->key) %> +              <% } %>            <% } else { %>              <font color="#ff0000">unknown type <%= $type %></font>            <% } %> | 
