|
| 1 | +<div id="form_div_edit_domain"> |
1 | 2 |
|
2 | | -<form action="{$element->getAction()}" |
3 | | - method="{$element->getMethod()}" |
4 | | - enctype="{$element->getAttrib('enctype')}" |
5 | | - id="{$element->getId()}" |
6 | | - name="{if $element->getName() != ''}{$element->getName()}{else}{$element->getId()}{/if}" |
7 | | - {if $element->getAttrib('target')}target="{$element->getAttrib('target')}"{/if} |
8 | | - class="form-horizontal"> |
| 3 | + <form action="{$element->getAction()}" |
| 4 | + method="{$element->getMethod()}" |
| 5 | + enctype="{$element->getAttrib('enctype')}" |
| 6 | + id="{$element->getId()}" |
| 7 | + name="{if $element->getName() != ''}{$element->getName()}{else}{$element->getId()}{/if}" |
| 8 | + {if $element->getAttrib('target')}target="{$element->getAttrib('target')}"{/if} |
| 9 | + class="form-horizontal"> |
9 | 10 |
|
| 11 | + <div class="tabbable"> |
10 | 12 |
|
11 | | - <div class="row-fluid"> |
12 | | - <div class="span6"> |
13 | | - {$element->domain} |
14 | | - {$element->description} |
15 | | - {$element->backupmx} |
16 | | - {$element->active} |
17 | | - <br/> |
18 | | - </div> |
19 | | - <div class="span6"> |
20 | | - <div id="advanced_options" class="dontdisplay"> |
21 | | - {$element->max_aliases} |
22 | | - {$element->max_mailboxes} |
23 | | - {* $element->max_quota *} |
24 | | - {* $element->quota *} |
25 | | - <div class="control-group {if $element->max_quota->hasErrors()}error{/if}"> |
26 | | - <label class="control-label required" for="{$element->max_quota->getId()}">{$element->max_quota->getLabel()}</label> |
27 | | - <div class="controls"> |
28 | | - <input type="text" {if $element->max_quota->isRequired()}class="required"{/if} title="{$element->max_quota->getAttrib('title')}" |
29 | | - value="{$element->max_quota->getValue()}" id="{$element->max_quota->getId()}" name="{$element->max_quota->getName()}" /> |
30 | | - |
31 | | - <span id="popover_{$element->max_quota->getId()}" rel="popover" class="btn btn-mini" |
32 | | - data-placement="top" |
33 | | - data-content="<p>Default unit is: {$quota_multiplier}<br/>You can append B (for Bytes), KB (KiloBytes), MB (MegaBytes) or GB (GigaBytes) to the number. E.g. 10GB</p>" |
34 | | - data-original-title="{$element->max_quota->getAttrib('title')}">?</span> |
| 13 | + <ul id="plugin_tabs" class="nav nav-tabs hide"> |
| 14 | + <li class="active"><a data-toggle="tab" href="#tab-main">Home</a></li> |
| 15 | + </ul> |
| 16 | + |
| 17 | + <div class="tab-content"> |
| 18 | + |
| 19 | + <div class="tab-pane active row-fluid" id="tab-main"> |
35 | 20 |
|
36 | | - {if $element->max_quota->hasErrors()} |
37 | | - <span id="help-{$element->max_quota->getId()}" class="help-block"> |
38 | | - {foreach $element->max_quota->getMessages() as $messages} |
39 | | - {foreach $messages as $msg} |
40 | | - {$msg}<br /> |
41 | | - {/foreach} |
42 | | - {/foreach} |
43 | | - </span> |
44 | | - {/if} |
| 21 | + <div class="span6"> |
| 22 | + {$element->domain} |
| 23 | + {$element->description} |
| 24 | + {$element->backupmx} |
| 25 | + {$element->active} |
| 26 | + <br/> |
45 | 27 | </div> |
46 | | - </div> |
47 | | - <div class="control-group {if $element->quota->hasErrors()}error{/if}"> |
48 | | - <label class="control-label required" for="{$element->quota->getId()}">{$element->quota->getLabel()}</label> |
49 | | - <div class="controls"> |
50 | | - <input type="text" {if $element->quota->isRequired()}class="required"{/if} title="{$element->quota->getAttrib('title')}" |
51 | | - value="{$element->quota->getValue()}" id="{$element->quota->getId()}" name="{$element->quota->getName()}" /> |
| 28 | + <div class="span6"> |
| 29 | + <div id="advanced_options" class="dontdisplay"> |
| 30 | + {$element->max_aliases} |
| 31 | + {$element->max_mailboxes} |
| 32 | + {* $element->max_quota *} |
| 33 | + {* $element->quota *} |
| 34 | + |
| 35 | + <div class="control-group {if $element->max_quota->hasErrors()}error{/if}"> |
| 36 | + <label class="control-label required" for="{$element->max_quota->getId()}">{$element->max_quota->getLabel()}</label> |
| 37 | + <div class="controls"> |
| 38 | + <input type="text" {if $element->max_quota->isRequired()}class="required"{/if} title="{$element->max_quota->getAttrib('title')}" |
| 39 | + value="{$element->max_quota->getValue()}" id="{$element->max_quota->getId()}" name="{$element->max_quota->getName()}" /> |
| 40 | + |
| 41 | + <span id="popover_{$element->max_quota->getId()}" rel="popover" class="btn btn-mini" |
| 42 | + data-placement="top" |
| 43 | + data-content="<p>Default unit is: {$quota_multiplier}<br/>You can append B (for Bytes), KB (KiloBytes), MB (MegaBytes) or GB (GigaBytes) to the number. E.g. 10GB</p>" |
| 44 | + data-original-title="{$element->max_quota->getAttrib('title')}">?</span> |
| 45 | + |
| 46 | + {if $element->max_quota->hasErrors()} |
| 47 | + <span id="help-{$element->max_quota->getId()}" class="help-block"> |
| 48 | + {foreach $element->max_quota->getMessages() as $messages} |
| 49 | + {foreach $messages as $msg} |
| 50 | + {$msg}<br /> |
| 51 | + {/foreach} |
| 52 | + {/foreach} |
| 53 | + </span> |
| 54 | + {/if} |
| 55 | + </div> |
| 56 | + </div> |
52 | 57 |
|
53 | | - <span id="popover_{$element->quota->getId()}" rel="popover" class="btn btn-mini" |
54 | | - data-placement="top" |
55 | | - data-content="<p>Default unit is: {$quota_multiplier}<br/>You can append B (for Bytes), KB (KiloBytes), MB (MegaBytes) or GB (GigaBytes) to the number. E.g. 10GB</p>" |
56 | | - data-original-title="{$element->quota->getAttrib('title')}">?</span> |
| 58 | + <div class="control-group {if $element->quota->hasErrors()}error{/if}"> |
| 59 | + <label class="control-label required" for="{$element->quota->getId()}">{$element->quota->getLabel()}</label> |
| 60 | + <div class="controls"> |
| 61 | + <input type="text" {if $element->quota->isRequired()}class="required"{/if} title="{$element->quota->getAttrib('title')}" |
| 62 | + value="{$element->quota->getValue()}" id="{$element->quota->getId()}" name="{$element->quota->getName()}" /> |
57 | 63 |
|
58 | | - {if $element->quota->hasErrors()} |
59 | | - <span id="help-{$element->quota->getId()}" class="help-block"> |
60 | | - {foreach $element->quota->getMessages() as $messages} |
61 | | - {foreach $messages as $msg} |
62 | | - {$msg}<br /> |
63 | | - {/foreach} |
64 | | - {/foreach} |
65 | | - </span> |
66 | | - {/if} |
| 64 | + <span id="popover_{$element->quota->getId()}" rel="popover" class="btn btn-mini" |
| 65 | + data-placement="top" |
| 66 | + data-content="<p>Default unit is: {$quota_multiplier}<br/>You can append B (for Bytes), KB (KiloBytes), MB (MegaBytes) or GB (GigaBytes) to the number. E.g. 10GB</p>" |
| 67 | + data-original-title="{$element->quota->getAttrib('title')}">?</span> |
| 68 | + |
| 69 | + {if $element->quota->hasErrors()} |
| 70 | + <span id="help-{$element->quota->getId()}" class="help-block"> |
| 71 | + {foreach $element->quota->getMessages() as $messages} |
| 72 | + {foreach $messages as $msg} |
| 73 | + {$msg}<br /> |
| 74 | + {/foreach} |
| 75 | + {/foreach} |
| 76 | + </span> |
| 77 | + {/if} |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + |
| 81 | + {$element->transport} |
| 82 | + </div> |
67 | 83 | </div> |
68 | 84 | </div> |
69 | | - |
70 | | - {$element->transport} |
| 85 | + {* any plugin elements? *} |
| 86 | + {foreach $element->getSubForms() as $name => $sf} |
| 87 | + {if substr( $name, 0, 9 ) eq 'pluginsf_'} |
| 88 | + {$sf} |
| 89 | + {/if} |
| 90 | + {/foreach} |
71 | 91 | </div> |
| 92 | + |
72 | 93 | </div> |
73 | | - </div> |
74 | | - |
75 | | - <fieldset class="form-actions"> |
76 | | - <span class="btn" id="toogle_advanced">Advanced</span> |
77 | | - <a class="btn" href="{genUrl controller="domain" action="list"}">Cancel</a> |
78 | | - <input class="btn btn-primary" type="submit" value="{$element->save->getLabel()}" /> |
79 | | - </fieldset> |
80 | | -</form> |
81 | | - |
82 | | -<script type="text/javascript"> |
83 | | - {if $element->max_aliases->hasErrors() |
84 | | - || $element->max_mailboxes->hasErrors() |
85 | | - || $element->max_quota->hasErrors() |
86 | | - || $element->quota->hasErrors() |
87 | | - || $element->transport->hasErrors() } |
88 | | - $('#advanced_options').removeClass('dontdisplay'); |
89 | | - {/if} |
| 94 | + |
| 95 | + <fieldset class="form-actions"> |
| 96 | + <span class="btn" id="toogle_advanced">Advanced</span> |
| 97 | + <a class="btn" href="{genUrl controller="domain" action="list"}">Cancel</a> |
| 98 | + <input class="btn btn-primary" type="submit" value="{$element->save->getLabel()}" /> |
| 99 | + </fieldset> |
| 100 | + </form> |
| 101 | + |
| 102 | + <script type="text/javascript"> |
| 103 | + {if $element->max_aliases->hasErrors() |
| 104 | + || $element->max_mailboxes->hasErrors() |
| 105 | + || $element->max_quota->hasErrors() |
| 106 | + || $element->quota->hasErrors() |
| 107 | + || $element->transport->hasErrors() } |
| 108 | + $('#advanced_options').removeClass('dontdisplay'); |
| 109 | + {/if} |
90 | 110 |
|
91 | | - $(document).ready(function() |
92 | | - { |
93 | | - $('#toogle_advanced').bind('click', function() { |
94 | | - $('#advanced_options').toggle('fast'); |
95 | | - }); |
96 | | - }); // document onready |
| 111 | + $(document).ready(function() |
| 112 | + { |
| 113 | + $('#toogle_advanced').bind('click', function() { |
| 114 | + $('#advanced_options').toggle('fast'); |
| 115 | + }); |
| 116 | + }); // document onready |
| 117 | + </script> |
97 | 118 |
|
98 | | -</script> |
| 119 | +</div> <!-- #form_div_edit_domain --> |
0 commit comments