source: LATMOS-Accounts-Web/root/html/create/default.tt @ 909

Last change on this file since 909 was 909, checked in by nanardon, 12 years ago
  • each attribute can be now documented from configuration
File size: 999 bytes
Line 
1<!-- $Id: default.tt 3256 2010-09-07 14:07:59Z nanardon $ -->
2<div id="objectform" class="objectform">
3<form action="[% c.uri_for('/create', form.otype) %]" method="POST">
4<table border="0">
5
6<input type="hidden" name="step" value="[% ochelper.step | html %]">
7[% IF ochelper.name.ask %]
8<tr><th>Nom de l'objet:</th>
9<td><input id="_name" type="text" name="_name" value="[% ochelper.name.content | html %]">
10[% c.prototype.observe_field( '_name', {
11    update => '_name_span',
12    url => c.uri_for('/ajax', 'objexist', form.otype),
13    frequency => 1,
14    with   => "'val=' + element.value",
15}) %]
16<span id="_name_span"></span>
17</td></tr>
18[% END %]
19[% FOREACH attr = ochelper.ask %]
20<tr>
21<th>
22    [% form.attr_label(attr) %]
23    [% IF form.attr_hint(attr) %]
24    <span
25        title="[% form.attr_hint(attr) | html %]"
26        class="hint">?</span>
27    [% END %]
28</th>
29<td>[% form.attr_field(attr) %]</td></tr>
30[% END %]
31
32<tr><td colspan="2"><input type="submit"></td></tr>
33</table>
34
35</form>
36</div>
Note: See TracBrowser for help on using the repository browser.