Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4d20057d

Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt

  • ID 4d20057d671c35239bf95af4221b2987e3fdc064
  • Vorgänger 19ee23d4
  • Nachfolger 5c859d64

Wiederkehrende Rechnungen: Template als Popup-Dialog verwenden können.

Dazu wird die Variable popup_dialog ausgewertet und es können
js-Rückkehrfunktionen für Abbruch und Übernehmen übergeben werden.

Unterschiede anzeigen:

templates/webpages/oe/edit_periodic_invoices_config.html
2 2
[% USE LxERP %]
3 3
[% USE L %]
4 4
[% SET style="width: 400px" %]
5

  
6
[%- IF !popup_dialog -%]
5 7
<h1>[% title %]</h1>
8
[%- END -%]
6 9

  
7 10
 <form name="Form" action="oe.pl" method="post">
8 11

  
......
135 138
  <p>(3): [% LxERP.t8("Multiple addresses can be entered separated by commas.") %]</p>
136 139
  <p>(4): [% LxERP.t8("If left empty the default sender from the kivitendo configuration will be used (key 'email_from' in section 'periodic_invoices'; current value: #1).", HTML.escape(LXCONFIG.periodic_invoices.email_from)) %]</p>
137 140

  
138
  [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
141
  [%- IF popup_dialog -%]
142
    [% L.button_tag(popup_js_assign_function, LxERP.t8('Assign')) %]
143
    [% L.button_tag(popup_js_close_function, LxERP.t8('Cancel')) %]
139 144

  
140
  <p>
141
   [% L.submit_tag('', LxERP.t8('Assign')) %]
142
   [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
143
  </p>
145
  [%- ELSE -%]
146
    [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
147

  
148
    <p>
149
     [% L.submit_tag('', LxERP.t8('Assign')) %]
150
     [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
151
    </p>
152
  [%- END -%]
144 153
 </form>
145 154

  
146 155
 <script type="text/javascript">

Auch abrufbar als: Unified diff