Revision 0b7da6d3
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/letter/load_drafts.html | ||
---|---|---|
<td>
|
||
<table>
|
||
<tr>
|
||
<th class="listheading"> </th>
|
||
<th class="listheading">[% 'Date' | $T8 %]</th>
|
||
<th class="listheading">[% 'Subject' | $T8 %]</th>
|
||
[%- IF SELF.is_sales %]
|
||
<th class="listheading">[% 'Customer' | $T8 %]</th>
|
||
[%- ELSE %]
|
||
<th class="listheading">[% 'Vendor' | $T8 %]</th>
|
||
[%- END %]
|
||
<th> </th>
|
||
<th>[% 'Date' | $T8 %]</th>
|
||
<th>[% 'Subject' | $T8 %]</th>
|
||
[% IF SELF.is_sales %]
|
||
<th>[% 'Customer' | $T8 %]</th>
|
||
[% ELSE %]
|
||
<th>[% 'Vendor' | $T8 %]</th>
|
||
[% END %]
|
||
</tr>
|
||
|
||
[% FOREACH row = LETTER_DRAFTS %]
|
||
... | ... | |
<td>[% L.checkbox_tag("ids[+]", value=row.id) %]</td>
|
||
<td>[% row.date.to_kivitendo | html %]</td>
|
||
<td><a href="[% SELF.url_for(action='edit', 'draft.id'=row.id) %]">[% row.subject | html %]</a></td>
|
||
[%- IF SELF.is_sales %]
|
||
[% IF SELF.is_sales %]
|
||
<td>[% row.customer.displayable_name | html %]</td>
|
||
[%- ELSE %]
|
||
[% ELSE %]
|
||
<td>[% row.vendor.displayable_name | html %]</td>
|
||
[%- END %]
|
||
[% END %]
|
||
</tr>
|
||
[% END %]
|
||
</table>
|
templates/webpages/letter/report_bottom.html | ||
---|---|---|
[% USE HTML%]
|
||
[% L.paginate_controls(models=SELF.models) %]
|
||
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
|
||
[%- FOREACH item = HIDDEN %]
|
||
<input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
|
||
[%- END %]
|
||
[% USE T8 %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
|
||
[% L.paginate_controls(models=SELF.models) %]
|
||
</div><!-- /.wrapper -->
|
||
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
|
||
[% FOREACH item = HIDDEN %]
|
||
<input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
|
||
[% END %]
|
||
|
||
</form>
|
templates/webpages/letter/report_top.html | ||
---|---|---|
[%- PROCESS 'letter/search.html' filter=SELF.models.filtered.laundered %]
|
||
<hr>
|
||
[% PROCESS 'letter/search.html' filter=SELF.models.filtered.laundered %]
|
||
<div class="wrapper">
|
templates/webpages/letter/search.html | ||
---|---|---|
[% USE L %]
|
||
[% USE P %]
|
||
[% USE LxERP %]
|
||
<form action="controller.pl" method="post" name="Form" id="search_form">
|
||
|
||
<div class='filter_toggle'>
|
||
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
|
||
[% SELF.filter_summary | html %]
|
||
</div>
|
||
<div class='filter_toggle' style='display:none'>
|
||
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
|
||
|
||
<form action="controller.pl" method="post" name="Form" id="search_form">
|
||
<div class="wrapper">
|
||
|
||
<table id='filter_table'>
|
||
<tr>
|
||
<th align='right'>[% 'Letternumber' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th>
|
||
</tr>
|
||
[%- IF SELF.is_sales %]
|
||
<tr>
|
||
<td align="right">[% 'Customer' | $T8 %]</td>
|
||
<td>[% P.customer_vendor.picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %]</td>
|
||
</tr>
|
||
[%- ELSE %]
|
||
<tr>
|
||
<td align="right">[% 'Vendor' | $T8 %]</td>
|
||
<td>[% P.customer_vendor.picker('filter.vendor_id', filter.vendor_id, type='vendor', style='width:250px') %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<td align="right">[% 'Contact' | $T8 %]</td>
|
||
<td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]</th>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td align="right">[% 'Subject' | $T8 %]</td>
|
||
<td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th>
|
||
</tr>
|
||
[% BLOCK filter_toggle_panel %]
|
||
<table id='filter_table' class="tbl-horizontal">
|
||
<tbody>
|
||
<tr>
|
||
<th>[% 'Letternumber' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
[% IF SELF.is_sales %]
|
||
<tr>
|
||
<th>[% 'Customer' | $T8 %]</th>
|
||
<td class="wi-lightwide">[% P.customer_vendor.picker('filter.customer_id', filter.customer_id, type='customer') %]</td>
|
||
</tr>
|
||
[% ELSE %]
|
||
<tr>
|
||
<th>[% 'Vendor' | $T8 %]</th>
|
||
<td class="wi-lightwide">[% P.customer_vendor.picker('filter.vendor_id', filter.vendor_id, type='vendor') %]</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Contact' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Subject' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Body' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge, class='wi-date') %] [% 'To (time)' | $T8 %] [% L.date_tag('filter.date:date::le', filter.date_date__le, class='wi-date') %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<tr>
|
||
<td align="right">[% 'Body' | $T8 %]</td>
|
||
<td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th>
|
||
</tr>
|
||
[% L.hidden_tag('is_sales', SELF.is_sales) %]
|
||
[% L.hidden_tag('sort_by', FORM.sort_by) %]
|
||
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
|
||
[% L.hidden_tag('page', FORM.page) %]
|
||
<div class="buttons">
|
||
[% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset"), class='neutral') %]
|
||
</div>
|
||
[% END # /BLOCK filter_toggle_panel %]
|
||
|
||
<tr>
|
||
<td align='right'>[% 'From' | $T8 %]</td>
|
||
<td> [% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]
|
||
[% 'To (time)' | $T8 %]
|
||
[% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
|
||
</tr>
|
||
</table>
|
||
[% INCLUDE 'common/toggle_panel.html' %]
|
||
|
||
[% L.hidden_tag('is_sales', SELF.is_sales) %]
|
||
[% L.hidden_tag('sort_by', FORM.sort_by) %]
|
||
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
|
||
[% L.hidden_tag('page', FORM.page) %]
|
||
[% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %]
|
||
</div>
|
||
</form>
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/letter/