Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b4f72528

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

  • ID b4f72528ec0f4d74f8f0f0771c0c923541940ecc
  • Vorgänger 97064165
  • Nachfolger 48c18721

date_tags in is/form_header

Unterschiede anzeigen:

templates/webpages/is/form_header.html
172 172
        </tr>
173 173
        <tr>
174 174
          <th align="right">[% 'Credit Note Date' | $T8 %]</th>
175
          <td nowrap>
176
            <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
177
            <input type="button" name="invdate_button" id="trigger1" value="[% 'button' | $T8 %]">
178
          </td>
175
          <td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
179 176
        </tr>
180 177
[%- ELSE %]
181 178
        <tr>
......
184 181
        </tr>
185 182
        <tr>
186 183
          <th align="right">[% 'Invoice Date' | $T8 %]</th>
187
          <td nowrap>
188
            <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
189
            <input type="button" name="invdate_button" id="trigger1" value="[% 'button' | $T8 %]">
190
          </td>
184
          <td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
191 185
        </tr>
192 186
        <tr>
193 187
          <th align="right">[% 'Due Date' | $T8 %]</th>
194
          <td width="13">
195
            <input name="duedate" id="duedate" size="11" title="[% dateformat %]" value="[% duedate %]" onBlur="check_right_date_format(this)">
196
            <input type="button" name="duedate_button" id="trigger2" value="[% 'button' | $T8 %]">
197
          </td>
188
          <td>[% L.date_tag('duedate', duedate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
198 189
        </tr>
199 190
        <tr>
200 191
        <th align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th>
......
202 193
        </tr>
203 194
        <tr>
204 195
          <th align="right">[% 'Delivery Date' | $T8 %]</th>
205
            <td width="13">
206
              <input name="deliverydate" id="deliverydate" size="11" title="[% dateformat %]" value="[% deliverydate %]" onBlur="check_right_date_format(this)">
207
              <input type="button" name="deliverydate_button" id="trigger3" value="[% 'button' | $T8 %]">
208
            </td>
196
          <td>[% L.date_tag('deliverydate', deliverydate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
209 197
        </tr>
210 198
[%- END %]
211 199

  
......
215 203
        </tr>
216 204
        <tr>
217 205
          <th align="right" nowrap>[% 'Order Date' | $T8 %]</th>
218
          <td><input name="orddate" id="orddate" size="11" title="[% dateformat %]" value="[% orddate %]" onBlur="check_right_date_format(this)">
219
          <input type="button" name="b_orddate" id="trigger_orddate" value="?"></td>
206
          <td>[% L.date_tag('orddate', orddate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
220 207
        </tr>
221 208
        <tr>
222 209
          <th align="right" nowrap>[% 'Quotation Number' | $T8 %]</th>
......
224 211
        </tr>
225 212
        <tr>
226 213
          <th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th>
227
          <td><input name="quodate" id="quodate" size="11" title="[% dateformat %]" value="[% quodate %]" onBlur="check_right_date_format(this)">
228
           <input type="button" name="b_quodate" id="trigger_quodate" value="?"></td>
214
          <td>[% L.date_tag('quodate', quodate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
229 215
        </tr>
230 216
        <tr>
231 217
          <th align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
......
252 238
  <script type="text/javascript" src="js/show_history.js"></script>
253 239
  <script type="text/javascript">
254 240
   <!--
255
     Calendar.setup({ inputField : "invdate",      ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
256
[% IF !is_type_credit_note %]
257
     Calendar.setup({ inputField : "duedate",      ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
258
     Calendar.setup({ inputField : "deliverydate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
259
[% END %]
260
     Calendar.setup({ inputField : "orddate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_orddate" });
261
     Calendar.setup({ inputField : "quodate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_quodate" });
262 241
     $('document').ready(function(){
263 242
[% IF resubmit && is_format_html %]
264 243
       window.open('about:blank','Beleg');

Auch abrufbar als: Unified diff