Bug 38714: Template logic corrections

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Owen Leonard 2025-01-23 18:22:26 +00:00 committed by Katrin Fischer
parent 2ea7b9ac34
commit ffc369cb37
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 4 additions and 7 deletions

View File

@ -115,7 +115,6 @@
<input type="hidden" name="id" value="[% cash_register.id | html %]" />
</li>
[% END %]
<li>
<label for="name" class="required">Name: </label>
<input type="text" name="name" id="name" size="24" maxlength="24" value="[% cash_register.name | html %]" class="required focus" />
@ -182,6 +181,8 @@
[% FOREACH cash_register IN cash_registers %]
[% IF cash_register.branch_default %]
[% SET tr_class="default" %]
[% ELSE %]
[% SET tr_class="" %]
[% END %]
<tr class="[% tr_class | html %]">
<td>[% cash_register.name | html %]</td>

View File

@ -156,9 +156,7 @@
<fieldset class="rows" id="match_points">
<h4>Match points</h4>
[% IF ( edit_matching_rule ) %]
[% IF ( matchpoints ) %]
[% SET p_style = 'display:none;' %]
[% END %]
[% SET p_style = matchpoints ? 'display:none;' : 'display:block;' %]
<p id="addMatchPoint" style="[% p_style | html %]">
<a href="#" class="btn btn-link" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;"><i class="fa fa-plus" aria-hidden="true"></i> New match point</a>
</p>
@ -270,9 +268,7 @@
<fieldset class="rows" id="match_checks">
<h4>Required match checks</h4>
[% IF ( edit_matching_rule ) %]
[% IF ( matchchecks ) %]
[% SET p_style = 'display:none;' %]
[% END %]
[% SET p_style = matchpoints ? 'display:none;' : 'display:block;' %]
<p id="addMatchCheck" style="[% p_style | html %]">
<a href="#" class="btn btn-link" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;"><i class="fa fa-plus" aria-hidden="true"></i> New match check</a></p>
[% ELSE %]