Localisation.
[Plinn.git] / skins / custom_content / friendlydatec_editform.pt
1 <table class="TwoColumnForm" i18n:domain="plinn"
2 tal:define="bgcolor here/base_properties/contentBackgroundColor"
3 tal:attributes="style string:background-color:$bgcolor">
4 <tr>
5 <td>
6 <input id="" type="checkbox" name="criterion_ids:list" value=""
7 tal:attributes="value here/getId; id string:cb_${here/getId}"/>
8 <input type="hidden" name="criteria.id:records" value="" tal:attributes="value here/getId"/>
9 </td>
10 <td>
11 <fieldset>
12 <legend tal:content="string:catalog_index_${here/Field}" i18n:translate="">Field name</legend>
13 <select name="criteria.operation:records">
14 <option value="min"
15 tal:attributes="selected python:here.operation=='min'"
16 i18n:translate="">At the least:</option>
17 <option value="max"
18 tal:attributes="selected python:here.operation=='max'"
19 i18n:translate="">At the most:</option>
20 <option value="within_day"
21 tal:attributes="selected python:here.operation=='within_day'"
22 i18n:translate="">Within the day:</option>
23 </select>
24
25 <select name="criteria.value:records"
26 tal:define="dateoptions here/defaultDateOptions">
27 <option value=""
28 tal:repeat="doption dateoptions"
29 tal:attributes="value python:doption[0];
30 selected python:here.value == doption[0];
31 "
32 tal:content="python:doption[1]"
33 i18n:translate="">Date Option</option>
34 </select>
35
36 <select name="criteria.daterange:records">
37 <option value="old"
38 tal:attributes="selected python:here.daterange == 'old'"
39 i18n:translate="daterange_old">old</option>
40 <option value="ahead"
41 tal:attributes="selected python:here.daterange == 'ahead'"
42 i18n:translate="daterange_ahead">ahead</option>
43 </select>
44 <dl class="FieldHelp">
45 <dd tal:content="here/dateCriterionResolvedDescription|here/Description" i18n:translate="">Criterion description</dd>
46 </dl>
47 </fieldset>
48 </td>
49 </tr>
50 </table>