my $title_sub = delete($attributes{title_sub});
my $default_sub = delete($attributes{default_sub});
+ my $with_empty = delete($attributes{with_empty});
+ my $empty_title = delete($attributes{empty_title});
my %selected;
my @options;
- if ( delete($attributes{with_empty}) ) {
- push(@options, [undef, $attributes{empty_title} || '']);
+ if ( $with_empty ) {
+ push(@options, [undef, $empty_title || '']);
}
my $normalize_entry = sub {
my $title;
if ( $value_title_sub ) {
- ($value, $title) = $value_title_sub->($entry);
+ ($value, $title) = @{ $value_title_sub->($entry) };
} else {
$value = $normalize_entry->('value', $entry, $value_sub, $value_key);
body { margin: 0 }
@media print {
- #menuv3, #html-menu, #frame-header, #js-menu { /* items with this class won't print */
+ #menuv3, #html-menu, #frame-header, #main_menu_div, #js-header { /* items with this class won't print */
display: none;
}
#content.html-menu { margin-left: 0; }
@media print {
- #menuv3, #html-menu, #frame-header, #js-menu { /* items with this class won't print */
+ #menuv3, #html-menu, #frame-header, #main_menu_div, #js-header { /* items with this class won't print */
display: none;
}
#content.html-menu { margin-left: 0; }
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
<td colspan="3">
- [% L.select_tag('delivery_id', SHIPTO_ALL, title_sub = \shipto_label, with_empty = 1,
+ [% L.select_tag('delivery_id', SHIPTO_ALL, value_key = 'shipto_id', title_sub = \shipto_label, with_empty = 1,
onchange = "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Reqdate' | $T8 %]</th>
<td nowrap>
- <input name="reqdate" id="reqdate" size="11" title="[% HTML.escape(myconfig_dateformat) %]" value="[% HTML.escape(reqdate) %]"
- onBlur="check_right_date_format(this)"[% RO %]>
- <input type="button" name="b_reqdate" id="reqdate_trigger" value="?">
+ [% L.date_tag('reqdate', reqdate, readonly => delivered) %]
</td>
</tr>
<script type="text/javascript" src="js/dhtmlsuite/menu-for-applications.js"></script>
- <table class="menunew">
+ <table id='js-header' class="menunew">
<tr>
<td>