Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 817f7300

Von Moritz Bunkus vor etwa 14 Jahren hinzugefügt

  • ID 817f7300b8c4fd8b23efc26e2f60b66f73287bb8
  • Vorgänger 59fd42b8
  • Nachfolger 6522c45a

Rückübersetzung Button "Speichern und Schließen" durch Umstellung auf dispatcher vermeiden

Conflicts:

bin/mozilla/oe.pl
templates/webpages/oe/form_footer.html

Unterschiede anzeigen:

bin/mozilla/oe.pl
1935 1935
  return $content;
1936 1936
}
1937 1937

  
1938
sub dispatcher {
1939
  my $form     = $main::form;
1940
  my $locale   = $main::locale;
1941

  
1942
  foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order purchase_order quotation
1943
                         request_for_quotation sales_order sales_order save save_and_close save_as_new ship_to update)) {
1944
    if ($form->{"action_${action}"}) {
1945
      call_sub($action);
1946
      return;
1947
    }
1948
  }
1949

  
1950
  $form->error($locale->text('No action defined.'));
1951
}
templates/webpages/oe/form_footer.html
114 114
</table>
115 115

  
116 116
[% label_edit %]<br>
117
<input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
118
<input class="submit" type="submit" name="action" value="[% 'Ship to' | $T8 %]">
119
<input class="submit" type="submit" name="action" value="[% 'Print' | $T8 %]">
120
<input class="submit" type="submit" name="action" value="[% 'E-mail' | $T8 %]">
121
<input class="submit" type="submit" name="action" value="[% 'Save' | $T8 %]">
122
<input class="submit" type="submit" name="action" value="[% 'Save and Close' | $T8 %]">
117
<input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
118
<input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
119
<input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
120
<input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
121
<input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
122
<input class="submit" type="submit" name="action_save_and_close" value="[% 'Save and Close' | $T8 %]">
123 123

  
124 124
[%- IF id %]
125 125
  <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
126 126
  <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="[% 'history' | $T8 %]">
127 127

  
128 128
  <br>[% label_workflow %]<br>
129
  <input class="submit" type="submit" name="action" value="[% 'Save as new' | $T8 %]">
130
  <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
129
  <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
130
  <input class="submit" type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
131 131

  
132 132
  [%- IF is_sales_quo %]
133
    <input class="submit" type="submit" name="action" value="[% 'Sales Order' | $T8 %]">
133
    <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
134 134
  [%- END %]
135 135

  
136 136
  [%- IF is_req_quo %]
137
    <input class="submit" type="submit" name="action" value="[% 'Purchase Order' | $T8 %]">
137
    <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
138 138
  [%- END %]
139 139

  
140 140
  [%- IF is_sales_ord || is_pur_ord %]
141
    <input class="submit" type="submit" name="action" value="[% 'Delivery Order' | $T8 %]">
141
    <input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
142 142
  [%- END %]
143 143

  
144
  <input class="submit" type="submit" name="action" value="[% 'Invoice' | $T8 %]">
144
  <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
145 145

  
146 146
  [%- IF is_sales_ord || is_pur_ord %]
147 147
    <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
148 148
    [%- IF is_sales_ord %]
149
      <input class="submit" type="submit" name="action" value="[% 'Purchase Order' | $T8 %]">
150
     <input class="submit" type="submit" name="action" value="[% 'Quotation' | $T8 %]">
149
      <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
150
     <input class="submit" type="submit" name="action_quotation" value="[% 'Quotation' | $T8 %]">
151 151
    [%- ELSE %]
152 152
    [%- IF is_pur_ord %]
153
      <input class="submit" type="submit" name="action" value="[% 'Sales Order' | $T8 %]">
154
     <input class="submit" type="submit" name="action" value="[% 'Request for Quotation' | $T8 %]">
153
      <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
154
     <input class="submit" type="submit" name="action_request_for_quotation" value="[% 'Request for Quotation' | $T8 %]">
155 155
    [%- END %]
156 156
    [%- END %]
157 157
  [%- END %]
158 158
[%- END %]
159
<input type="hidden" name="action" value="dispatcher">
159 160
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
160 161
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
161 162
<input type="hidden" name="callback" value="[% callback %]">

Auch abrufbar als: Unified diff