projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pflichtenheftdetails: bei RETURN per AJAX speichern
[kivitendo-erp.git]
/
templates
/
webpages
/
requirement_spec_text_block
/
_form.html
diff --git
a/templates/webpages/requirement_spec_text_block/_form.html
b/templates/webpages/requirement_spec_text_block/_form.html
index
40f4307
..
425a584
100644
(file)
--- a/
templates/webpages/requirement_spec_text_block/_form.html
+++ b/
templates/webpages/requirement_spec_text_block/_form.html
@@
-10,9
+10,13
@@
[%- END %]
</h2>
[%- END %]
</h2>
- [% L.hidden_tag(id_base _ '_id', SELF.text_block.id) %]
+ [% L.hidden_tag('form_prefix', id_base, id=id_base _ '_form_prefix') %]
+ [% L.hidden_tag('id', SELF.text_block.id, id=id_base _ '_id') %]
[% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.text_block.requirement_spec_id) %]
[% L.hidden_tag(id_base _ '.output_position', SELF.text_block.output_position) %]
[% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.text_block.requirement_spec_id) %]
[% L.hidden_tag(id_base _ '.output_position', SELF.text_block.output_position) %]
+ [% IF insert_after %]
+ [% L.hidden_tag(id_base _ '.insert_after', insert_after) %]
+ [% END %]
<table>
<tr>
<table>
<tr>
@@
-37,8
+41,8
@@
</table>
<p>
</table>
<p>
- [%
L.button_tag('submit_edit_text_block_form("' _ id_base _ '")
', LxERP.t8('Save')) %]
- <a href="#" onclick="cancel_edit_text_block_form('[% id_base %]')">[%- LxERP.t8("Cancel") %]</a>
+ [%
- L.ajax_submit_tag('controller.pl?action=RequirementSpecTextBlock/ajax_' _ (SELF.text_block.id ? 'update' : 'create'), '#' _ id_base _ '_form
', LxERP.t8('Save')) %]
+ <a href="#" onclick="
kivi.requirement_spec.
cancel_edit_text_block_form('[% id_base %]')">[%- LxERP.t8("Cancel") %]</a>
</p>
[%- IF SELF.predefined_texts.size %]
</p>
[%- IF SELF.predefined_texts.size %]
@@
-63,9
+67,9
@@
function insert_selected_predefined_text() {
var title_ctrl = $('#[% id_base %]_title');
var title_ctrl = $('#[% id_base %]_title');
- if ( ((
title_ctrl.val()
|| '') != '')
- && (
(pt.title || '') !
= '')
-
&& confirm('[%- LxERP.t8("Do you want to overwrite your current title?") %]'
))
+ if ( ((
pt.title
|| '') != '')
+ && (
((title_ctrl.val() || '') =
= '')
+
|| confirm('[%- LxERP.t8("Do you want to overwrite your current title?") %]')
))
title_ctrl.val(pt.title);
if ((pt.text || '') != '') {
title_ctrl.val(pt.title);
if ((pt.text || '') != '') {