Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision df789b96

Von Sven Schöling vor fast 8 Jahren hinzugefügt

  • ID df789b965d14afa99b623d3a4a5817ababbf1737
  • Vorgänger 886954dd
  • Nachfolger edb27703

oe: buttons im footer entfernt

Unterschiede anzeigen:

bin/mozilla/oe.pl
643 643
     %TMPL_VAR,
644 644
     tpca_reminder   => $tpca_reminder,
645 645
     print_options   => print_options(inline => 1),
646
     label_edit      => $locale->text("Edit the $form->{type}"),
647
     label_workflow  => $locale->text("Workflow $form->{type}"),
648 646
     is_sales        => scalar ($form->{type} =~ /^sales_/),              # these vars are exported, so that the template
649 647
     is_order        => scalar ($form->{type} =~ /_order$/),              # may determine what to show
650 648
     is_sales_quo    => scalar ($form->{type} =~ /sales_quotation$/),
templates/webpages/oe/form_footer.html
133 133

  
134 134
<p>[% print_options %]</p>
135 135

  
136
[% label_edit %]<br>
137
<input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
138
<input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
139
<input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
140
<input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
141

  
142
[% IF not tpca_reminder %]
143
  <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]"[% IF warn_save_active_periodic_invoice %] data-warn-save-active-periodic-invoice="1"[% END %] data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
144
  <input class="submit" type="submit" name="action_save_and_close" value="[% 'Save and Close' | $T8 %]"[% IF warn_save_active_periodic_invoice %] data-warn-save-active-periodic-invoice="1"[% END %] data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
145
[% ELSE %]
146
  [% IF warn_save_active_periodic_invoice  %] [% warn_save_active_periodic_invoice=1 %] [% END %]
147
    [% L.submit_tag('action_save', LxERP.t8('Save'), confirm=LxERP.t8('Missing transport cost: #1  Are you sure?', tpca_reminder), 'data-require-transaction-description'=INSTANCE_CONF.get_require_transaction_description_ps, 'data-warn-save-active-periodic-invoice'=warn_save_active_periodic_invoice) %]
148
    [% L.submit_tag('action_save_and_close', LxERP.t8('Save and close'), confirm=LxERP.t8('Missing transport cost: #1  Are you sure?', tpca_reminder), 'data-require-transaction-description'=INSTANCE_CONF.get_require_transaction_description_ps, 'data-warn-save-active-periodic-invoice'=warn_save_active_periodic_invoice) %]
149
[% END %]
150

  
151
[%- IF id AND INSTANCE_CONF.get_doc_storage %]
152
  <input type="button" class="submit"onclick="kivi.File.downloadOrderitemsFiles('[% type %]',[% id %]);" name="action_download_files" value="[% 'Download all Attachments' | $T8 %]">
153
[%- END %]
154
[%- IF id %]
155
  <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
156
  <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %], 'id')" name="history" id="history" value="[% 'history' | $T8 %]">
157

  
158
  <br>[% label_workflow %]<br>
159
  <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
160

  
161
  [%- UNLESS (is_sales_ord && !INSTANCE_CONF.get_sales_order_show_delete) || (is_pur_ord && !INSTANCE_CONF.get_purchase_order_show_delete) %]
162
    [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %]
163
  [%- END %]
164

  
165
  [%- IF is_sales_quo %]
166
    <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
167
  [%- END %]
168

  
169
  [%- IF is_req_quo %]
170
    <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
171
  [%- END %]
172

  
173
  [%- IF is_sales_ord || is_pur_ord %]
174
    <input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
175
  [%- END %]
176

  
177
  [%- IF allow_invoice %]
178
  <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
179
  [%- END %]
180

  
181
  [%- IF is_sales_ord || is_pur_ord %]
182
    <br>[% heading %] [% 'to be used as template for' | $T8 %]<br>
183
    [%- IF is_sales_ord %]
184
      <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
185
     <input class="submit" type="submit" name="action_quotation" value="[% 'Quotation' | $T8 %]">
186
    [%- ELSE %]
187
    [%- IF is_pur_ord %]
188
      <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
189
     <input class="submit" type="submit" name="action_request_for_quotation" value="[% 'Request for Quotation' | $T8 %]">
190
    [%- END %]
191
    [%- END %]
192
  [%- END %]
193
[%- END %]
194 136
<input type="hidden" name="action" value="dispatcher">
195 137
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
196 138
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
......
202 144
[% END %]
203 145

  
204 146
</form>
205
<script type='text/javascript'>
206
 $(kivi.SalesPurchase.init_on_submit_checks);
207
</script>

Auch abrufbar als: Unified diff