|
Lines 91-113
Link Here
|
| 91 |
<legend>Rule <span class="rulecount">[% loop.count | html %]</span> <a href="#" class="remove_rule"><i class="fa fa-trash-can"></i> Remove this rule</a></legend> |
91 |
<legend>Rule <span class="rulecount">[% loop.count | html %]</span> <a href="#" class="remove_rule"><i class="fa fa-trash-can"></i> Remove this rule</a></legend> |
| 92 |
<input type="hidden" name="unique_id" value="[% loop.count | html %]" /> <!-- FIXME on update, the unique_id should be filled --> |
92 |
<input type="hidden" name="unique_id" value="[% loop.count | html %]" /> <!-- FIXME on update, the unique_id should be filled --> |
| 93 |
<div class="age"> |
93 |
<div class="age"> |
| 94 |
<h5>Age</h5> |
|
|
| 95 |
<input class="age" type="text" inputmode="numeric" pattern="[0-9]*" value="[% rule.age | html %]" name="age_[% id | html %]" /> |
| 96 |
<h5>Age unit</h5> |
| 97 |
<div class="block"> |
| 98 |
<select name="ageunit_[% id | html %]"> |
| 99 |
<option value="">Choose an age unit</option> |
| 100 |
[% FOR unit IN ageunits %] |
| 101 |
[% IF rule.ageunit == unit %] |
| 102 |
<option value="[% unit | html %]" selected="selected">[% unit | html %]</option> |
| 103 |
[% ELSE %] |
| 104 |
<option value="[% unit | html %]">[% unit | html %]</option> |
| 105 |
[% END %] |
| 106 |
[% END %] |
| 107 |
</select> |
| 108 |
<span class="hint">Only the items.damaged_on, items.itemlost_on and items.withdrawn_on age fields can use the 'Hours unit. If not set then days will be used.</span> |
| 109 |
</div> |
| 110 |
|
| 111 |
<h5>Age field</h5> |
94 |
<h5>Age field</h5> |
| 112 |
<div class="blocks"> |
95 |
<div class="blocks"> |
| 113 |
<select name="agefield_[% id | html %]" onchange="unit_display()"> |
96 |
<select name="agefield_[% id | html %]" onchange="unit_display()"> |
|
Lines 122-128
Link Here
|
| 122 |
</select> |
105 |
</select> |
| 123 |
<span class="hint">If not set then items.dateaccessioned will be used</span> |
106 |
<span class="hint">If not set then items.dateaccessioned will be used</span> |
| 124 |
</div> |
107 |
</div> |
| 125 |
</div> |
108 |
</div> |
|
|
109 |
<h5>Age unit</h5> |
| 110 |
<div class="block"> |
| 111 |
<select name="ageunit_[% id | html %]"> |
| 112 |
<option value="">Choose an age unit</option> |
| 113 |
[% FOR unit IN ageunits %] |
| 114 |
[% IF rule.ageunit == unit %] |
| 115 |
<option value="[% unit | html %]" selected="selected">[% unit | html %]</option> |
| 116 |
[% ELSE %] |
| 117 |
<option value="[% unit | html %]">[% unit | html %]</option> |
| 118 |
[% END %] |
| 119 |
[% END %] |
| 120 |
</select> |
| 121 |
<span class="hint">Only the items.damaged_on, items.itemlost_on and items.withdrawn_on age fields can use the 'Hours unit. If not set then days will be used.</span> |
| 122 |
</div> |
| 123 |
<h5>Age</h5> |
| 124 |
<input class="age" type="text" inputmode="numeric" pattern="[0-9]*" value="[% rule.age | html %]" name="age_[% id | html %]" /> |
| 126 |
<div class="blocks"> |
125 |
<div class="blocks"> |
| 127 |
<h5>Conditions</h5> |
126 |
<h5>Conditions</h5> |
| 128 |
[% FOR condition IN rule.conditions %] |
127 |
[% FOR condition IN rule.conditions %] |
|
Lines 181-198
Link Here
|
| 181 |
<legend>Rule <span class="rulecount"></span> <a href="#" class="remove_rule"><i class="fa fa-trash-can"></i> Remove this rule</a></legend> |
180 |
<legend>Rule <span class="rulecount"></span> <a href="#" class="remove_rule"><i class="fa fa-trash-can"></i> Remove this rule</a></legend> |
| 182 |
<input type="hidden" name="unique_id" /> |
181 |
<input type="hidden" name="unique_id" /> |
| 183 |
<div class="age"> |
182 |
<div class="age"> |
| 184 |
<h5>Age</h5> |
|
|
| 185 |
<input class="age" type="text" inputmode="numeric" pattern="[0-9]*" value="" name="age" /> |
| 186 |
<h5>Age unit</h5> |
| 187 |
<div class="block"> |
| 188 |
<select name="ageunit"> |
| 189 |
<option value="">Choose an age unit</option> |
| 190 |
[% FOR unit IN ageunits %] |
| 191 |
<option value="[% unit | html %]">[% unit | html %]</option> |
| 192 |
[% END %] |
| 193 |
</select> |
| 194 |
<span class="hint">Only items.damaged_on, items.itemlost_on and items.withdrawn_on age fields can use the 'Hours' unit. If not set then days will be used.</span> |
| 195 |
</div> |
| 196 |
<h5>Age field</h5> |
183 |
<h5>Age field</h5> |
| 197 |
<div class="block"> |
184 |
<div class="block"> |
| 198 |
<select name="agefield" onchange="unit_display()"> |
185 |
<select name="agefield" onchange="unit_display()"> |
|
Lines 204-209
Link Here
|
| 204 |
<span class="hint">If not set then items.dateaccessioned will be used</span> |
191 |
<span class="hint">If not set then items.dateaccessioned will be used</span> |
| 205 |
</div> |
192 |
</div> |
| 206 |
</div> |
193 |
</div> |
|
|
194 |
<h5>Age unit</h5> |
| 195 |
<div class="block"> |
| 196 |
<select name="ageunit"> |
| 197 |
<option value="">Choose an age unit</option> |
| 198 |
[% FOR unit IN ageunits %] |
| 199 |
<option value="[% unit | html %]">[% unit | html %]</option> |
| 200 |
[% END %] |
| 201 |
</select> |
| 202 |
<span class="hint">Only items.damaged_on, items.itemlost_on and items.withdrawn_on age fields can use the 'Hours' unit. If not set then days will be used.</span> |
| 203 |
</div> |
| 204 |
<h5>Age</h5> |
| 205 |
<input class="age" type="text" inputmode="numeric" pattern="[0-9]*" value="" name="age" /> |
| 207 |
<div class="blocks"> |
206 |
<div class="blocks"> |
| 208 |
<h5>Conditions</h5> |
207 |
<h5>Conditions</h5> |
| 209 |
<div class="block"> |
208 |
<div class="block"> |
| 210 |
- |
|
|