- <li><label for="repeatable">Repeatable: </label>[% repeatable %]</li>
- <li><label for="mandatory">Mandatory: </label>[% mandatory %]</li>
- <li><label for="authorised_value">Authorized value: </label>[% authorised_value %] (if you select a value here, the indicators will be limited to the authorized value list)</li>
+ <li><label for="repeatable">Repeatable: </label>
+ [% IF ( repeatable ) %]
+ <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
+ [% ELSE %]
+ <input type="checkbox" name="repeatable" id="repeatable" value="1" />
+ [% END %]
+ </li>
+ <li><label for="mandatory">Mandatory: </label>
+ [% IF ( mandatory ) %]
+ <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
+ [% ELSE %]
+ <input type="checkbox" name="mandatory" id="mandatory" value="1" />
+ [% END %]
+ </li>
+ <li><label for="authorised_value">Authorized value: </label>
+ <select name="authorised_value" id="authorised_value" size="1">
+ [% FOREACH value IN authorised_value.values %]
+ [% IF ( value == authorised_value.default ) %]
+ <option value="[% value %]" selected="selected">[% value %]</option>
+ [% ELSE %]
+ <option value="[% value %]">[% value %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ (if you select a value here, the indicators will be limited to the authorized value list)</li>