HTML aus der Funktion bin/ap.pl:form_footer in ein Template übertragen.
[kivitendo-erp.git] / templates / webpages / ar / form_footer.html
diff --git a/templates/webpages/ar/form_footer.html b/templates/webpages/ar/form_footer.html
new file mode 100644 (file)
index 0000000..6fa8b44
--- /dev/null
@@ -0,0 +1,52 @@
+[% USE LxERP %]
+[% USE T8 %]
+
+  [% IF ( follow_up_length && follow_up_due_length ) %]
+    [% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_up_length , follow_up_due_length) %]
+  [% END %]
+
+  <input type="hidden" name="gldate" value="[% gldate | html %]">
+  <input type="hidden" name="callback" value="[% callback | html %]">
+  <input type="hidden" name="draft_id" value="[% draft_id | html %]">
+  <input type="hidden" name="draft_description" value="[% draft_description | html %]">
+
+  <br>
+
+  [% IF ( !id && draft_id ) %]
+    <input type="checkbox" name="remove_draft" id="remove_draft" value="1" [% IF ( remove_draft ) %]checked[% END %]>
+    <label for="remove_draft">[% 'Remove draft when posting' | $T8 %]</label>
+  [% END %]
+
+  <br>
+
+  <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
+
+  [% IF ( show_storno_button ) %]
+    <input class="submit" type="submit" name="action" value="[% 'Storno' | $T8 %]">
+  [% END %]
+
+  [% IF ( id ) %]
+    [% IF ( radier ) %]
+      <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
+      <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
+    [% END %]
+
+    [% IF ( !is_closed ) %]
+      <input class="submit" type="submit" name="action" value="[% 'Use As New' | $T8 %]">
+    [% END %]
+
+    <input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
+    <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
+    <input type="button" class="submit" onclick="set_history_window([% id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
+  [% ELSE %]
+    [% IF ( !is_closed ) %]
+      <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
+      <input class="submit" type="submit" name="action" value="[% 'Save draft' | $T8 %]">
+    [% END %]
+  [% END %]
+
+  [% IF ( show_mark_as_paid_button ) %]
+    <input type="submit" class="submit" name="action" value="[% 'mark as paid' | $T8 %]">
+  [% END %]
+
+</form>