Lines 72-83
Link Here
|
72 |
<input type="hidden" name="unique_id" value="[% loop.count | html %]" /> <!-- FIXME on update, the unique_id should be filled --> |
72 |
<input type="hidden" name="unique_id" value="[% loop.count | html %]" /> <!-- FIXME on update, the unique_id should be filled --> |
73 |
<div class="age"> |
73 |
<div class="age"> |
74 |
<h5>Age</h5> |
74 |
<h5>Age</h5> |
75 |
<input class="age" type="number" value="[% rule.age %]" name="age_[% id %]" /> |
75 |
<input class="age" type="number" value="[% rule.age | html %]" name="age_[% id | html %]" /> |
76 |
</div> |
76 |
</div> |
77 |
<div> |
77 |
<div> |
78 |
<h5>Unit</h5> |
78 |
<h5>Unit</h5> |
79 |
<p>Note: If the unit of 'Hours' is set then you cannot choose an age starting point, the item age starting point will default to the last item alteration event. The Age starting point selection will be hidden if you have set the unit to 'Hours'.</p> |
79 |
<p>Note: If the unit of 'Hours' is set then you cannot choose an age starting point, the item age starting point will default to the last item alteration event. The Age starting point selection will be hidden if you have set the unit to 'Hours'.</p> |
80 |
<select id="existing_rule_unit" name="unit_[% id %]" id="unit"> |
80 |
<select id="existing_rule_unit" name="unit_[% id | html %]" id="unit"> |
81 |
<option value="">Choose a unit</option> |
81 |
<option value="">Choose a unit</option> |
82 |
[% IF rule.unit == "hours" %] |
82 |
[% IF rule.unit == "hours" %] |
83 |
<option value="hours" selected="selected">Hours</option> |
83 |
<option value="hours" selected="selected">Hours</option> |
Lines 91-97
Link Here
|
91 |
[% IF rule.unit == "days" %] |
91 |
[% IF rule.unit == "days" %] |
92 |
<div id="age_starting_point_div"> |
92 |
<div id="age_starting_point_div"> |
93 |
<h5>Age starting point (starting point from which the item age is calculated)</h5> |
93 |
<h5>Age starting point (starting point from which the item age is calculated)</h5> |
94 |
<select name="age_starting_point_[% id %]" id="age_starting_point"> |
94 |
<select name="age_starting_point_[% id | html %]" id="age_starting_point"> |
95 |
<option value="">Choose age starting point</option> |
95 |
<option value="">Choose age starting point</option> |
96 |
[% IF rule.age_starting_point == "itemcreation" %] |
96 |
[% IF rule.age_starting_point == "itemcreation" %] |
97 |
<option value="itemcreation" selected="selected">Created</option> |
97 |
<option value="itemcreation" selected="selected">Created</option> |
Lines 117-123
Link Here
|
117 |
[% END %] |
117 |
[% END %] |
118 |
[% END %] |
118 |
[% END %] |
119 |
</select> |
119 |
</select> |
120 |
<input type="text" value="[% condition.value %]" name="condition_value_[% id%]" /> |
120 |
<input type="text" value="[% condition.value | html %]" name="condition_value_[% id | html %]" /> |
121 |
<a class="add_block" href="#"><i class="fa fa-plus"></i> Add a condition</a> |
121 |
<a class="add_block" href="#"><i class="fa fa-plus"></i> Add a condition</a> |
122 |
<a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove condition</a> |
122 |
<a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove condition</a> |
123 |
</div> |
123 |
</div> |
Lines 137-143
Link Here
|
137 |
[% END %] |
137 |
[% END %] |
138 |
[% END %] |
138 |
[% END %] |
139 |
</select> |
139 |
</select> |
140 |
<input type="text" value="[% substitution.value %]" name="substitution_value_[% id %]" /> |
140 |
<input type="text" value="[% substitution.value | html %]" name="substitution_value_[% id | html %]" /> |
141 |
<a class="add_block" href="#"><i class="fa fa-plus"></i> Add a substitution</a> |
141 |
<a class="add_block" href="#"><i class="fa fa-plus"></i> Add a substitution</a> |
142 |
<a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove substitution</a> |
142 |
<a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove substitution</a> |
143 |
<span class="required">A field name is required</span> |
143 |
<span class="required">A field name is required</span> |
Lines 228-239
Link Here
|
228 |
[% IF rule.age.defined and rule.unit.defined and rule.age.length > 0 %] |
228 |
[% IF rule.age.defined and rule.unit.defined and rule.age.length > 0 %] |
229 |
[% IF rule.age == 1 %] |
229 |
[% IF rule.age == 1 %] |
230 |
[% IF rule.unit == "days" %] |
230 |
[% IF rule.unit == "days" %] |
231 |
[% rule.age %] day |
231 |
[% rule.age | html %] day |
232 |
[% ELSE %] |
232 |
[% ELSE %] |
233 |
[% rule.age %] hour |
233 |
[% rule.age | html %] hour |
234 |
[% END %] |
234 |
[% END %] |
235 |
[% ELSE %] |
235 |
[% ELSE %] |
236 |
[% rule.age %] [% rule.unit %] |
236 |
[% rule.age | html %] [% rule.unit | html %] |
237 |
[% END %] |
237 |
[% END %] |
238 |
[% ELSE %] |
238 |
[% ELSE %] |
239 |
There is no age for this rule. |
239 |
There is no age for this rule. |
Lines 241-247
Link Here
|
241 |
</td> |
241 |
</td> |
242 |
<td> |
242 |
<td> |
243 |
[% IF rule.age_starting_point.defined %] |
243 |
[% IF rule.age_starting_point.defined %] |
244 |
[% rule.age_starting_point %] |
244 |
[% rule.age_starting_point | html %] |
245 |
[% ELSE %] |
245 |
[% ELSE %] |
246 |
There is no age starting point for this rule. |
246 |
There is no age starting point for this rule. |
247 |
[% END %] |
247 |
[% END %] |