Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 922f961c

Von G. Richardson vor mehr als 6 Jahren hinzugefügt

  • ID 922f961cb091c49dbc02693faf50382ceb9cd5a2
  • Vorgänger 1d1f3140

Änderungen HP Design

Unterschiede anzeigen:

bin/mozilla/oe.pl
320 320
        t8('Update'),
321 321
        submit    => [ '#form', { action => "update" } ],
322 322
        id        => 'update_button',
323
        checks   => [ 'kivi.validate_form' ],
323
        class     => 'inline',
324
        checks    => [ 'kivi.validate_form' ],
324 325
        accesskey => 'enter',
325 326
      ],
326 327

  
......
653 654
    $TMPL_VAR->{transport_cost_reminder_article} = SL::DB::Part->new(id => $::instance_conf->get_transport_cost_reminder_article_number_id)->load;
654 655
  }
655 656

  
657
  # following 4 lines came from form_footer, comments/notes are now in upper part of the page
658
  my $introws = max 5, $form->numtextrows($form->{intnotes}, 35, 8);
659

  
660
  my $TMPL_VAR = $::request->cache('tmpl_var', {});
661

  
662
  $TMPL_VAR->{notes}    = qq|<textarea name="notes" class="texteditor" wrap="soft" style="width: 300px; height: 150px">| . H($form->{notes}) . qq|</textarea>|;
663
  $TMPL_VAR->{intnotes} = qq|<textarea name=intnotes rows="$introws" cols="35">| . H($form->{intnotes}) . qq|</textarea>|;
664

  
665
  $TMPL_VAR->{ALL_DELIVERY_TERMS} = SL::DB::Manager::DeliveryTerm->get_all_sorted(); # moved from sub form_footer
666

  
667

  
668

  
656 669
  print $form->parse_html_template("oe/form_header", {
657 670
    %$TMPL_VAR,
658 671
    %type_check_vars,
......
672 685

  
673 686
  $form->{invtotal} = $form->{invsubtotal};
674 687

  
675
  my $introws = max 5, $form->numtextrows($form->{intnotes}, 35, 8);
688
  #my $introws = max 5, $form->numtextrows($form->{intnotes}, 35, 8);
676 689

  
677 690
  my $TMPL_VAR = $::request->cache('tmpl_var', {});
678 691

  
679
  $TMPL_VAR->{notes}    = qq|<textarea name="notes" class="texteditor" wrap="soft" style="width: 350px; height: 150px">| . H($form->{notes}) . qq|</textarea>|;
680
  $TMPL_VAR->{intnotes} = qq|<textarea name=intnotes rows="$introws" cols="35">| . H($form->{intnotes}) . qq|</textarea>|;
692
  #$TMPL_VAR->{notes}    = qq|<textarea name="notes" class="texteditor" wrap="soft" style="width: 350px; height: 150px">| . H($form->{notes}) . qq|</textarea>|;
693
  #$TMPL_VAR->{intnotes} = qq|<textarea name=intnotes rows="$introws" cols="35">| . H($form->{intnotes}) . qq|</textarea>|;
681 694

  
682 695
  if( $form->{customer_id} && !$form->{taxincluded_changed_by_user} ) {
683 696
    my $customer = SL::DB::Customer->new(id => $form->{customer_id})->load();

Auch abrufbar als: Unified diff