UX: hide group's incoming_email field unless 'email_in' is enabled

This commit is contained in:
Régis Hanol 2015-12-09 12:10:46 +01:00
parent ccd8865bf3
commit e54837d285
1 changed files with 6 additions and 4 deletions

View File

@ -93,10 +93,12 @@
{{combo-box name="grant_trust_level" valueAttribute="value" value=model.grant_trust_level content=trustLevelOptions}} {{combo-box name="grant_trust_level" valueAttribute="value" value=model.grant_trust_level content=trustLevelOptions}}
</div> </div>
<div> {{#if siteSettings.email_in}}
<label for="incoming_email">{{i18n 'admin.groups.incoming_email'}}</label> <div>
{{text-field name="incoming_email" value=model.incoming_email placeholderKey="admin.groups.incoming_email_placeholder"}} <label for="incoming_email">{{i18n 'admin.groups.incoming_email'}}</label>
</div> {{text-field name="incoming_email" value=model.incoming_email placeholderKey="admin.groups.incoming_email_placeholder"}}
</div>
{{/if}}
{{/unless}} {{/unless}}
<div class='buttons'> <div class='buttons'>