PageRenderTime 24ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/modules/mod_admin_config/templates/_action_dialog_config_new.tpl

https://code.google.com/p/zotonic/
Smarty Template | 27 lines | 22 code | 5 blank | 0 comment | 1 complexity | e6ae2c954709252652ac69f8ffd2c43f MD5 | raw file
 1<p>{_ Please fill in the module, key and value for the new configuration key. _}</p>
 2
 3{% wire id=#form type="submit" postback={config_new on_success=on_success} delegate=delegate %}
 4<form id="{{ #form }}" method="POST" action="postback">
 5	<div class="new-predicate-wrapper">
 6		<div class="form-item clearfix">
 7			<label for="{{ #module }}">{_ Module _}</label>
 8			<input type="text" id="{{ #module }}" name="module" value="" />
 9			{% validate id=#module name="module" type={presence} %}
10		</div>
11
12		<div class="form-item clearfix">
13			<label for="{{ #key }}">{_ Key _}</label>
14			<input type="text" id="{{ #key }}" name="key" value="" />
15			{% validate id=#key name="key" type={presence} %}
16		</div>
17
18		<div class="form-item clearfix">
19			<label for="{{ #value }}">{_ Value _}</label>
20			<input type="text" id="{{ #value }}" name="val" value="" />
21		</div>
22
23		<button type="submit">{_ Add key _}</button>
24		{% button action={dialog_close} text="Cancel" %}
25	</div>
26</form>
27