Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 408fae09

Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt

  • ID 408fae09f3a6fbac95c230201bba77550d833535
  • Vorgänger 37642782
  • Nachfolger 599156c7

Design 4.0: Verknüpfte Belege: Verknüpfungen hinzufügen: Fixes

Übernahme der Anpssungen von "gerade eben".

Unterschiede anzeigen:

templates/design40_webpages/record_links/add_filter.html
<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>
<colgroup> <col class="wi-normal"><col class="wi-verywide"> </colgroup>
<tbody>
<tr>
<th>[% LxERP.t8("Link to") %]</th>
......
[ 'to', LxERP.t8("The existing record has been created from the link target to add."), ], ],
class='wi-verywide') %]</td>
</tr>
<tr>
<tr class="record_links_add_filter_cv_row">
<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>
<tr class="record_links_add_filter_cv_row">
<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>
......
$.ajax({
url: url,
success: function(new_data) {
$("#record_list_filtered_list").html(new_data['html']);
$('#add_selected_record_links_button').prop('disabled', new_data['count'] == 0);
if (new_data['error']) {
$("#record_list_filtered_list").html(kivi.t8('Error: #1', [ new_data['error'] ]));
$('#add_selected_record_links_button').prop('disabled', true);
} else {
$("#record_list_filtered_list").html(new_data['html']);
$('#add_selected_record_links_button').prop('disabled', new_data['count'] == 0);
}
}
});
}
......
var type = $('#record_links_add_filter_link_type').val();
var title = type == 'requirement_spec' ? kivi.t8('Title')
: type == 'letter' ? kivi.t8('Subject')
: type == 'email_journal' ? kivi.t8('Subject')
: kivi.t8('Transaction description');
if (type == 'letter') {
if (type == 'letter' || type == 'email_journal' || type == 'gl_transaction') {
$('#record_links_add_filter_project_row').hide();
} else {
$('#record_links_add_filter_project_row').show();
}
if (type == 'email_journal' || type == 'gl_transaction') {
$('.record_links_add_filter_cv_row').hide();
} else {
$('.record_links_add_filter_cv_row').show();
}
$('#record_links_add_filter_title').html(title);
}
--></script>
templates/design40_webpages/record_links/add_list.html
<thead>
<tr>
<th>[% L.checkbox_tag('record_links_check_all') %]</th>
<th>[% IF vc == 'customer' %][% LxERP.t8("Customer") %][% ELSE %][% LxERP.t8("Vendor") %][% END %]</th>
[% IF vc %]
<th>[% IF vc == 'customer' %][% LxERP.t8("Customer") %][% ELSE %][% LxERP.t8("Vendor") %][% END %]</th>
[% END %]
<th>[% LxERP.t8("Number") %]</th>
[% IF date_column %]
<th>[% LxERP.t8("Date") %]</th>
......
[% FOREACH object = OBJECTS %]
<tr>
<td>[% L.checkbox_tag('link_id[]', value=object.id) %]</td>
<td>[% HTML.escape(object.$vc.name) %]</td>
[% IF vc %]
<td>[% HTML.escape(object.$vc.name) %]</td>
[% END %]
<td>[% HTML.escape(object.$number_column) %]</td>
[% IF date_column %]
<td>[% HTML.escape(object.$date_column.to_kivitendo) %]</td>

Auch abrufbar als: Unified diff