Revision 9510d549
Von Hans P. Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/record_links/add_filter.html | ||
---|---|---|
<h1>[%- LxERP.t8("Add link: select records to link with") %]</h1>
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
[% USE JavaScript %]
|
||
... | ... | |
|
||
|
||
<form method="post" action="controller.pl" id="record_links_add_filter_form">
|
||
[% L.hidden_tag('object_model', SELF.object_model) %]
|
||
[% L.hidden_tag('object_id', SELF.object_id) %]
|
||
|
||
<table>
|
||
<tr>
|
||
<td>[%- LxERP.t8("Link to") %]:</td>
|
||
<td>[% L.select_tag('link_type', LINK_TYPES, default=DEFAULT_LINK_TYPE, style=style, id='record_links_add_filter_link_type') %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>[%- LxERP.t8("Link direction") %]:</td>
|
||
<td>[% L.select_tag('link_direction',
|
||
[ [ 'from', LxERP.t8("The link target to add has been created from the existing record."), ],
|
||
[ 'to', LxERP.t8("The existing record has been created from the link target to add."), ], ],
|
||
style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>[%- LxERP.t8("Customer/Vendor Number") %]:</td>
|
||
<td>[% L.input_tag('vc_number', is_sales ? SELF.object.customer.customernumber : SELF.object.vendor.vendornumber, style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>[%- LxERP.t8("Customer/Vendor Name") %]:</td>
|
||
<td>[% L.input_tag('vc_name', is_sales ? SELF.object.customer.name : SELF.object.vendor.name, style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr id="record_links_add_filter_project_row">
|
||
<td>[%- LxERP.t8("Project") %]:</td>
|
||
<td>[% L.select_tag('globalproject_id', PROJECTS, default=SELF.object.globalproject_id, with_empty=1, style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td><span id="record_links_add_filter_title">[%- LxERP.t8("Transaction description") %]</span>:</td>
|
||
<td>[% L.input_tag('transaction_description', '', style=style) %]</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<p>
|
||
[% L.button_tag('filter_record_links()', LxERP.t8("Search")) %]
|
||
[% L.hidden_tag('object_model', SELF.object_model) %]
|
||
[% L.hidden_tag('object_id', SELF.object_id) %]
|
||
|
||
<table class="tbl-horizontal">
|
||
<caption>[% LxERP.t8("Add link: select records to link with") %]</caption>
|
||
<colgroup> <col class="wi-normal"><col class="wi-verywide"> </colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<th>[% LxERP.t8("Link to") %]</th>
|
||
<td>[% L.select_tag('link_type', LINK_TYPES, default=DEFAULT_LINK_TYPE, class='wi-wide', id='record_links_add_filter_link_type') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Link direction") %]</th>
|
||
<td>[% L.select_tag('link_direction',
|
||
[ [ 'from', LxERP.t8("The link target to add has been created from the existing record."), ],
|
||
[ 'to', LxERP.t8("The existing record has been created from the link target to add."), ], ],
|
||
class='wi-verywide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Customer/Vendor Number") %]</th>
|
||
<td>[% L.input_tag('vc_number', is_sales ? SELF.object.customer.customernumber : SELF.object.vendor.vendornumber, class='wi-wide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Customer/Vendor Name") %]</th>
|
||
<td>[% L.input_tag('vc_name', is_sales ? SELF.object.customer.name : SELF.object.vendor.name, class='wi-wide') %]</td>
|
||
</tr>
|
||
<tr id="record_links_add_filter_project_row">
|
||
<th>[% LxERP.t8("Project") %]</tdh>
|
||
<td>[% L.select_tag('globalproject_id', PROJECTS, default=SELF.object.globalproject_id, with_empty=1, class='wi-wide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th><span id="record_links_add_filter_title">[% LxERP.t8("Transaction description") %]</span></th>
|
||
<td>[% L.input_tag('transaction_description', '', class='wi-wide') %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<div class="buttons">
|
||
[% L.button_tag('filter_record_links()', LxERP.t8("Search"), class='neutral') %]
|
||
[% L.button_tag('add_selected_record_links()', LxERP.t8("Add links"), id='add_selected_record_links_button', disabled=1) %]
|
||
[% L.button_tag('$("#record_links_add_filter_form").resetForm()', LxERP.t8('Reset')) %]
|
||
<a href="#" onclick="$('#record_links_add').dialog('close');">[% LxERP.t8("Cancel") %]</a>
|
||
</p>
|
||
[% L.button_tag('$("#record_links_add_filter_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
|
||
<a href="#" onclick="$('#record_links_add').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
|
||
</div>
|
||
|
||
<hr>
|
||
|
||
<div id="record_list_filtered_list"></div>
|
||
<div id="record_list_filtered_list"></div>
|
||
|
||
</form>
|
||
|
||
<script type="text/javascript">
|
||
<!--
|
||
<script type="text/javascript"><!--
|
||
$(function() {
|
||
$('#record_links_add input[name=vc_name]').focus();
|
||
$('#record_links_add_filter_link_type').change(record_links_change_form_to_match_type);
|
||
... | ... | |
|
||
$('#record_links_add_filter_title').html(title);
|
||
}
|
||
-->
|
||
</script>
|
||
--></script>
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/record_links/add_filter.html