Lines 169-178
Link Here
|
169 |
[% END %] |
169 |
[% END %] |
170 |
</td> |
170 |
</td> |
171 |
<td class="actions"> |
171 |
<td class="actions"> |
172 |
<a href="#" class="add-note" data-accountlines_id="[% line.accountlines_id | html %]"><i class="fa fa-plus"></i> Add note</a> |
172 |
[% IF line.note %] |
173 |
<span class="payment_note" id="payment_note_[% line.accountlines_id | html %]" style="display:none" |
173 |
<a href="#" class="add-note" data-accountlines_id="[% line.accountlines_id | html %]" style="display:none;"><i class="fa fa-plus"></i> Add note</a> |
174 |
><input type="text" size="10" name="payment_note_[% line.accountlines_id | html %]" value="" /> <a href="#" class="cancel-note"><i class="fa fa-times"></i></a |
174 |
<span class="payment_note" id="payment_note_[% line.accountlines_id | html %]" |
175 |
></span> |
175 |
><input type="text" size="10" name="payment_note_[% line.accountlines_id | html %]" value="[% line.note | html %]" /> <a href="#" class="cancel-note"><i class="fa fa-times"></i></a |
|
|
176 |
></span> |
177 |
[% ELSE %] |
178 |
<a href="#" class="add-note" data-accountlines_id="[% line.accountlines_id | html %]"><i class="fa fa-plus"></i> Add note</a> |
179 |
<span class="payment_note" id="payment_note_[% line.accountlines_id | html %]" style="display:none" |
180 |
><input type="text" size="10" name="payment_note_[% line.accountlines_id | html %]" value="" /> <a href="#" class="cancel-note"><i class="fa fa-times"></i></a |
181 |
></span> |
182 |
[% END %] |
176 |
</td> |
183 |
</td> |
177 |
<td class="debit" style="text-align: right;">[% line.amount | $Price %]</td> |
184 |
<td class="debit" style="text-align: right;">[% line.amount | $Price %]</td> |
178 |
<td class="debit" style="text-align: right;">[% line.amountoutstanding | $Price %]</td> |
185 |
<td class="debit" style="text-align: right;">[% line.amountoutstanding | $Price %]</td> |
Lines 275-282
Link Here
|
275 |
}); |
282 |
}); |
276 |
$(".cancel-note").on("click", function(e){ |
283 |
$(".cancel-note").on("click", function(e){ |
277 |
e.preventDefault(); |
284 |
e.preventDefault(); |
278 |
$(".payment_note").hide().find("input").val(""); |
285 |
this_td = $(this).closest('td.actions'); |
279 |
$(".add-note").show(); |
286 |
this_td.find(".payment_note").hide().find("input").val(""); |
|
|
287 |
this_td.find(".add-note").show(); |
280 |
}); |
288 |
}); |
281 |
|
289 |
|
282 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'pay', 'pay-fines-table', 'json') | $raw %]; |
290 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'pay', 'pay-fines-table', 'json') | $raw %]; |
283 |
- |
|
|