Skip to content

Commit 6b059d8

Browse files
author
Thom Pol
committed
Hide limit for usage of relay host when this is globally disabled
1 parent bf17312 commit 6b059d8

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

interface/web/client/templates/client_edit_limits.htm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,14 @@ <h4 class="panel-title">
235235
<label for="limit_spamfilter_policy" class="col-sm-3 control-label">{tmpl_var name='limit_spamfilter_policy_txt'}</label>
236236
<div class="col-sm-9"><input type="text" name="limit_spamfilter_policy" id="limit_spamfilter_policy" value="{tmpl_var name='limit_spamfilter_policy'}" class="form-control" /></div>
237237
</div>
238+
<tmpl_if name="show_per_domain_relay_options">
238239
<div class="form-group">
239240
<label class="col-sm-3 control-label">{tmpl_var name='limit_relayhost_txt'}</label>
240241
<div class="col-sm-9">
241242
{tmpl_var name='limit_relayhost'}
242243
</div>
243244
</div>
245+
</tmpl_if>
244246
</div>
245247
</div>
246248
</div>

interface/web/client/templates/client_template_edit_limits.htm

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,14 @@ <h4 class="panel-title">
192192
<label for="limit_spamfilter_policy" class="col-sm-3 control-label">{tmpl_var name='limit_spamfilter_policy_txt'}</label>
193193
<div class="col-sm-9"><input type="text" name="limit_spamfilter_policy" id="limit_spamfilter_policy" value="{tmpl_var name='limit_spamfilter_policy'}" class="form-control" /></div>
194194
</div>
195-
<div class="form-group">
196-
<label class="col-sm-3 control-label">{tmpl_var name='limit_relayhost_txt'}</label>
197-
<div class="col-sm-9">
198-
{tmpl_var name='limit_relayhost'}
199-
</div>
200-
</div>
195+
<tmpl_if name="show_per_domain_relay_options">
196+
<div class="form-group">
197+
<label class="col-sm-3 control-label">{tmpl_var name='limit_relayhost_txt'}</label>
198+
<div class="col-sm-9">
199+
{tmpl_var name='limit_relayhost'}
200+
</div>
201+
</div>
202+
</tmpl_if>
201203
</div>
202204
</div>
203205
</div>

interface/web/client/templates/reseller_edit_limits.htm

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,14 @@ <h4 class="panel-title">
236236
<label for="limit_spamfilter_policy" class="col-sm-3 control-label">{tmpl_var name='limit_spamfilter_policy_txt'}</label>
237237
<div class="col-sm-9"><input type="text" name="limit_spamfilter_policy" id="limit_spamfilter_policy" value="{tmpl_var name='limit_spamfilter_policy'}" class="form-control" /></div>
238238
</div>
239-
<div class="form-group">
240-
<label class="col-sm-3 control-label">{tmpl_var name='limit_relayhost_txt'}</label>
241-
<div class="col-sm-9">
242-
{tmpl_var name='limit_relayhost'}
243-
</div>
244-
</div>
239+
<tmpl_if name="show_per_domain_relay_options">
240+
<div class="form-group">
241+
<label class="col-sm-3 control-label">{tmpl_var name='limit_relayhost_txt'}</label>
242+
<div class="col-sm-9">
243+
{tmpl_var name='limit_relayhost'}
244+
</div>
245+
</div>
246+
</tmpl_if>
245247
</div>
246248
</div>
247249
</div>

0 commit comments

Comments
 (0)