Kontaktpersonenfeld von Freitext auf Datum umstelen
[kivitendo-erp.git] / templates / webpages / dbupgrade / contacts_convert_cp_birthday_to_date_form.html
1 [%- USE HTML %]
2 [%- USE L %]
3 [%- USE LxERP %]
4
5 <h1>[%- LxERP.t8('Conversion of "birthday" contact person attribute') %]</h1>
6
7 <p>
8  [%- LxERP.t8('The contact person attribute "birthday" is converted from a free-form text field into a date field.') %]
9  [%- LxERP.t8('This requires you to manually correct entries for which an automatic conversion failed and to check those for which it succeeded.') %]
10 </p>
11
12 [% BLOCK birthday_table %]
13   <table>
14
15     <tr>
16       <th>[%- LxERP.t8('Database ID') %]</th>
17       <th>[%- LxERP.t8('Name') %]</th>
18       <th>[%- LxERP.t8('Given Name') %]</th>
19       <th>[%- LxERP.t8('Birthday (before conversion)') %]</th>
20       <th>[%- LxERP.t8('Birthday (after conversion)') %]</th>
21     </tr>
22
23     [% FOREACH row IN data %]
24       <tr class="listrow[% loop.count % 2 %]">
25         <input type="hidden" name="cp_id_[% row.row_index %]" value="[% row.cp_id %]">
26
27         <td>[% row.cp_id %]</td>
28         <td>[% row.cp_givenname | html %]</td>
29         <td>[% row.cp_name | html %]</td>
30         <td>[% row.cp_birthday_old | html %]</td>
31         <td>[% L.date_tag('cp_birthday_'_ row.row_index, row.cp_birthday) %]</td>
32       </tr>
33     [% END %]
34
35   </table>
36 [% END %]
37
38 <form action="[% script %]" method="POST">
39   <h2>[%- LxERP.t8('Entries for which automatic conversion failed:') %]</h2>
40   [% PROCESS birthday_table data = data %]
41
42   <h2>[%- LxERP.t8('Entries for which automatic conversion succeeded:') %]</h2>
43   [% PROCESS birthday_table data = auto_data %]
44
45   <input type="hidden" name="row_length" value="[% row_length %]">
46   <input type="hidden" name="action" value="LoginScreen/login">
47   <input type="submit" name="form_submitted" value="save">
48 </form>