epic-ts
[kivitendo-erp.git] / templates / webpages / ar / form_footer.html
1 [% USE LxERP %]
2 [% USE T8 %]
3
4   [% IF ( follow_up_length && follow_up_due_length ) %]
5     [% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_up_length , follow_up_due_length) %]
6   [% END %]
7
8   <input type="hidden" name="gldate" value="[% gldate | html %]">
9   <input type="hidden" name="callback" value="[% callback | html %]">
10   <input type="hidden" name="draft_id" value="[% draft_id | html %]">
11   <input type="hidden" name="draft_description" value="[% draft_description | html %]">
12
13   <br>
14
15   [% IF ( !id && draft_id ) %]
16     <input type="checkbox" name="remove_draft" id="remove_draft" value="1" [% IF ( remove_draft ) %]checked[% END %]>
17     <label for="remove_draft">[% 'Remove draft when posting' | $T8 %]</label>
18   [% END %]
19
20   <br>
21
22   <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
23
24   [% IF ( show_storno_button ) %]
25     <input class="submit" type="submit" name="action" value="[% 'Storno' | $T8 %]">
26   [% END %]
27
28   [% IF ( id ) %]
29     [% IF ( radier ) %]
30       <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
31       <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
32     [% END %]
33
34     [% IF ( !is_closed ) %]
35       <input class="submit" type="submit" name="action" value="[% 'Use As New' | $T8 %]">
36     [% END %]
37
38     <input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
39     <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
40     <input type="button" class="submit" onclick="set_history_window([% id %], 'glid');" name="history" id="history" value="[% 'history' | $T8 %]">
41   [% ELSE %]
42     [% IF ( !is_closed ) %]
43       <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
44       <input class="submit" type="submit" name="action" value="[% 'Save draft' | $T8 %]">
45     [% END %]
46   [% END %]
47
48   [% IF ( show_mark_as_paid_button ) %]
49     <input type="submit" class="submit" name="action" value="[% 'mark as paid' | $T8 %]">
50   [% END %]
51
52 </form>