Automatic item modifications by age
[% FOR message IN messages %]
[% IF message.type == "error" %]
[% END %]
[% IF message.code == "unable_to_load_configuration" %]
An error occurs: Unable to load the configuration.
[% END %]
[% END %]
[% IF op == 'edit_form' %]
Add a new rule
[% ELSIF rules and op == 'show' %]
List of rules
[% FOR rule IN rules %]
Age
[% IF rule.age.defined and rule.age.length > 0 %]
[% rule.age %] days
[% ELSE %]
There is no age for this rule.
[% END %]
Conditions
[% FOR condition IN rule.conditions %]
[% IF condition.field %]
[% condition.field %] = [% condition.value %]
[% ELSE %]
There is no condition for this rule.
[% END %]
[% END %]
Substitutions
[% FOR substitution IN rule.substitutions %]
[% substitution.field %] = [% substitution.value %]
[% END %]
[% END %]
[% ELSE %]
There is no rule defined. Please click on the edit button.
[% END %]