projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pflichtenheftdetails: bei RETURN per AJAX speichern
[kivitendo-erp.git]
/
templates
/
webpages
/
presenter
/
record
/
record_list.html
diff --git
a/templates/webpages/presenter/record/record_list.html
b/templates/webpages/presenter/record/record_list.html
index
e1395a2
..
e75657a
100644
(file)
--- a/
templates/webpages/presenter/record/record_list.html
+++ b/
templates/webpages/presenter/record/record_list.html
@@
-2,10
+2,12
@@
<div class="listtop">[%- P.escape(title) %]</div>
<div style="padding-bottom: 15px">
<div class="listtop">[%- P.escape(title) %]</div>
<div style="padding-bottom: 15px">
- <table style="width: 100%">
+ <table style="width: 100%"
id="record_list_[% type %]"
>
<thead>
<tr>
<thead>
<tr>
- [%- IF edit_record_links %]<th class="listheading"></th>[%- END %]
+ [%- IF edit_record_links %]
+ <th class="listheading">[% L.checkbox_tag('record_links_delete_checkall_' _ type) %]</th>
+ [%- END %]
[%- FOREACH column = TABLE_HEADER %]
<th class="listheading"[% IF column.alignment %] align="[% column.alignment %]"[% END %]>[%- P.escape(column.value) %]</th>
[%- END %]
[%- FOREACH column = TABLE_HEADER %]
<th class="listheading"[% IF column.alignment %] align="[% column.alignment %]"[% END %]>[%- P.escape(column.value) %]</th>
[%- END %]
@@
-16,7
+18,7
@@
[%- FOREACH row = TABLE_ROWS %]
<tr class="listrow[% loop.count % 2 %]">
[%- IF edit_record_links %]
[%- FOREACH row = TABLE_ROWS %]
<tr class="listrow[% loop.count % 2 %]">
[%- IF edit_record_links %]
- <td>[%- L.checkbox_tag(
form_prefix _ '
_delete[]', 'value'=row.record_link.from_table _ '__' _ row.record_link.from_id _ '__' _ row.record_link.to_table _ '__' _ row.record_link.to_id, 'class'='record_links_delete') %]</td>
+ <td>[%- L.checkbox_tag(
'record_links
_delete[]', 'value'=row.record_link.from_table _ '__' _ row.record_link.from_id _ '__' _ row.record_link.to_table _ '__' _ row.record_link.to_id, 'class'='record_links_delete') %]</td>
[%- END %]
[%- FOREACH column = row.columns %]
<td[% IF column.alignment %] align="[% column.alignment %]"[% END %]>
[%- END %]
[%- FOREACH column = row.columns %]
<td[% IF column.alignment %] align="[% column.alignment %]"[% END %]>
@@
-30,3
+32,9
@@
</tbody>
</table>
</div>
</tbody>
</table>
</div>
+
+[% IF edit_record_links %]
+<script type="text/javascript">
+$('#record_links_delete_checkall_[% type %]').checkall("#record_list_[% type %] tbody :checkbox");
+</script>
+[%- END %]