Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c4b82157

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID c4b8215740d186205599564c3fef7e0c00f3f2e9
  • Vorgänger 1d8cd5cd
  • Nachfolger 9cd9a517

ActionBar: Verwendung bei Mahnungskonfiguration

Unterschiede anzeigen:

bin/mozilla/dn.pl
84 84
  $form->{title}      = $locale->text('Edit Dunning Process Config');
85 85
  $form->{callback} ||= build_std_url("action=edit_config");
86 86

  
87
  setup_dn_edit_config_action_bar();
88

  
87 89
  $form->header();
88 90
  print $form->parse_html_template("dunning/edit_config");
89 91

  
......
629 631
  }
630 632
}
631 633

  
634
sub setup_dn_edit_config_action_bar {
635
  my %params = @_;
636

  
637
  for my $bar ($::request->layout->get('actionbar')) {
638
    $bar->add(
639
      action => [
640
        t8('Save'),
641
        submit    => [ '#form', { action => "save" } ],
642
        accesskey => 'enter',
643
      ],
644
    );
645
  }
646
}
647

  
632 648
# end of main
templates/webpages/dunning/edit_config.html
5 5
 <script type="text/javascript" src="js/common.js"></script>
6 6
 <script type="text/javascript" src="js/dunning.js"></script>
7 7

  
8
 <form method="post" action="dn.pl" name="Form">
8
 <form method="post" action="dn.pl" name="Form" id="form">
9 9
  <table>
10 10

  
11 11
   <tr>
......
121 121
   </tr>
122 122
  </table>
123 123

  
124
  <hr size="3" noshade>
125

  
126 124
  <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
127

  
128
  <input class="submit" type="submit" name="action" value="[% 'Save' | $T8 %]">
129

  
130 125
 </form>
131

  

Auch abrufbar als: Unified diff