0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

add check box to domains

This commit is contained in:
benchea dan 2022-03-21 10:30:25 +02:00 committed by GitHub
parent e2cfa87178
commit 84bec3fdc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,10 +37,14 @@
{html_options options=$struct.{$key}.options selected=$value_{$key}}
</select>
{elseif $field.type == 'list'}
<select class="form-control" name="value[{$key}][]" size="10"
multiple="multiple">
{html_options output=$struct.{$key}.options values=$struct.{$key}.options selected=$value_{$key}}
</select>
<ul name="value[{$key}][]" style="max-height : 250px; overflow: auto;">
{foreach from=$struct.{$key}.options item=domain}
<li>
<input type="checkbox" name="value[{$key}][]" value="{$domain}" id="{$domain}_id" />
<label for="{$domain}_id">{$domain}</label>
</li>
{/foreach}
</ul>
{elseif $field.type == 'pass' || $field.type == 'b64p'}
<input class="form-control" type="password" name="value[{$key}]" {if $key == 'password' || $key == 'password2'}autocomplete="new-password"{/if}/>
{elseif $field.type == 'txtl'}