Revision 6d9d1fbf
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
templates/webpages/letter/edit.html | ||
---|---|---|
6 | 6 |
[%- SET WEBDAV = SELF.webdav_objects %] |
7 | 7 |
<h1>[% title | html %]</h1> |
8 | 8 |
|
9 |
<form action='controller.pl' method='POST'> |
|
9 |
<form action='controller.pl' method='POST' id='form'>
|
|
10 | 10 |
<input type="hidden" name="letter.id" value="[% letter.id | html %]"> |
11 | 11 |
<input type="hidden" name="draft.id" value="[% draft.id | html %]"> |
12 | 12 |
<input type="hidden" name="type" value="[% type | html %]"> |
... | ... | |
149 | 149 |
[%- LxERP.t8("Loading...") %] |
150 | 150 |
</div> |
151 | 151 |
</div> |
152 |
|
|
153 |
<input type="hidden" name="action" value="Letter/dispatch"> |
|
154 |
<input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]"> |
|
155 |
|
|
156 |
[%- IF letter.letternumber %] |
|
157 |
<input class="submit" type="submit" name="action_edit_email" value="[% 'E-mail' | $T8 %]"> |
|
158 |
<input class="submit" type="submit" name="action_print_letter" value="[% 'Print' | $T8 %]"> |
|
159 |
[% END %] |
|
160 |
|
|
161 |
<input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]"> |
|
162 |
[% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure you want to delete this letter?')) %] |
|
163 |
<input class="submit" type="submit" name="action_save_letter_draft" value="[% 'Save Draft' | $T8 %]"> |
|
164 |
|
|
165 | 152 |
</form> |
166 |
|
|
167 |
|
|
168 |
<script type='text/javascript'> |
|
169 |
$(function(){ |
|
170 |
$('#letter_customer_id').change(function(){ |
|
171 |
var data = $('form').serializeArray(); |
|
172 |
data.push({ name: 'action_update_contacts', value: 1 }); |
|
173 |
$.post('controller.pl', data, kivi.eval_json_result); |
|
174 |
}); |
|
175 |
$('#letter_vendor_id').change(function(){ |
|
176 |
var data = $('form').serializeArray(); |
|
177 |
data.push({ name: 'action_update_contacts', value: 1 }); |
|
178 |
$.post('controller.pl', data, kivi.eval_json_result); |
|
179 |
}) |
|
180 |
}) |
|
181 |
</script> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Briefen