]> wagnertech.de Git - mfinanz.git/commitdiff
Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 20 Nov 2012 13:11:30 +0000 (14:11 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 20 Nov 2012 13:11:30 +0000 (14:11 +0100)
SL/Template/Plugin/L.pm
css/kivitendo/menu.css
css/lx-office-erp/menu.css
templates/webpages/ct/form_header.html
templates/webpages/do/form_header.html
templates/webpages/menu/menunew.html

index c25941cbca40a89d7958a16a0201460b69c9ef7d..95d2254417047d9a46424e9a585dbfc2ae0d839c 100644 (file)
@@ -111,6 +111,8 @@ sub select_tag {
   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;
 
@@ -128,8 +130,8 @@ sub select_tag {
 
   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 {
@@ -180,7 +182,7 @@ sub select_tag {
     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);
index ca7b2a23e4b890a6fff241e3a958d972457b467e..1b004b79713bb8de9719d49292b80ccc46cd70c9 100644 (file)
@@ -181,7 +181,7 @@ li.sub {
 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; }
index 318b380120e4d8d7b2e874a34a98d8e5661926b2..42eb844f7c1da3ab845745de884eb288c08d9084 100644 (file)
@@ -190,7 +190,7 @@ 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; }
index 43f64b0e243a659db341e9892289e1a41bc2e236..2864f9e0932114d62064fb9cb1b3fde1701fe4c2 100644 (file)
      <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>
index ef415027f0f18480371b789f89f7669858212316..cd99f96196226938aab7dcfc380c89108c7dba16 100644 (file)
        <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>
 
index b54c9beb2942345a396c117397019cab2758f670..e92a83dfb58b0b4e755e5afe3b000ced8246589c 100644 (file)
@@ -15,7 +15,7 @@ $(clockon);
 
  <script type="text/javascript" src="js/dhtmlsuite/menu-for-applications.js"></script>
 
- <table class="menunew">
+ <table id='js-header' class="menunew">
   <tr>
    <td>
     &nbsp;