select_project in templates ausgelagert
[kivitendo-erp.git] / templates / webpages / arap / select_project.html
diff --git a/templates/webpages/arap/select_project.html b/templates/webpages/arap/select_project.html
new file mode 100644 (file)
index 0000000..f3fb66e
--- /dev/null
@@ -0,0 +1,39 @@
+[%- USE HTML %]
+[%- USE T8 %]
+[%- USE L  %]
+[%- USE LxERP %]
+<body>
+
+<h1>[% 'Select from one of the projects below' | $T8 %]</h1>
+
+<form method=post action="[% script %]">
+
+<table width=100%>
+ <tr class=listheading>
+  <th>&nbsp;</th>
+  <th>[% 'Number' | $T8 %]</th>
+  <th>[% 'Description' | $T8 %]</th>
+ </tr>
+[%- FOREACH row IN project_list %]
+ <tr class=listrow[% loop.count % 2 %]>
+  <td>[% L.radio_button_tag('ndx', value=loop.count, checked=loop.first) %]</td>
+  <td>[% row.projectnumber | html %]</td>
+  <td>[% row.description | html %]</td>
+  [% L.hidden_tag('new_id_' _ loop.count, row.id) %]
+  [% L.hidden_tag('new_projectnumber_' _ loop.count, row.projectnumber) %]
+ </tr>
+[%- END %]
+</table>
+
+<hr size=3 noshade>
+
+[% L.hidden_tag(row.key, row.value) FOREACH row = hiddens %]
+[% L.hidden_tag('lastndx', project_list.size) %]
+[% L.hidden_tag('nextsub', 'project_selected') %]
+[% L.hidden_tag('rownumber', rownumber) %]
+[% L.submit_tag('action', LxERP.t8('Continue')) %]
+
+</form>
+
+</body>
+</html>