X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec_item%2F_section_form.html;h=93d75bed82f13064b0006548be4cbb555f92c48c;hb=d6138be82164a47633942ae567d17c44372c3139;hp=0a1fc7fc1eeb51da9b0c5bdc9306133028b4d029;hpb=b0ac485034697396a72f36f9bf48f0171b9b1692;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec_item/_section_form.html b/templates/webpages/requirement_spec_item/_section_form.html index 0a1fc7fc1..93d75bed8 100644 --- a/templates/webpages/requirement_spec_item/_section_form.html +++ b/templates/webpages/requirement_spec_item/_section_form.html @@ -12,8 +12,10 @@ [%- END %] - [% L.hidden_tag(id_base _ '_id', SELF.item.id) %] + [% L.hidden_tag('form_prefix', id_base id=id_base _ '_form_prefix') %] + [% L.hidden_tag('id', SELF.item.id, id=id_base _ '_id') %] [% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.item.requirement_spec_id) %] + [% L.hidden_tag(id_base _ '.item_type', 'section') %] [% IF insert_after %] [% L.hidden_tag(id_base _ '.insert_after', insert_after) %] [% END %] @@ -23,13 +25,29 @@ [% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %]
+ [%- IF SELF.predefined_texts.size %] +
+ [%- LxERP.t8("Pre-defined Texts") %]:
+ [%- L.select_tag(id_base _ '_predefined_text_block', SELF.predefined_texts, title_key='description', style=style) %]
+ [%- LxERP.t8("Insert") %]
+
[%- LxERP.t8("Description") %]:
- [% L.textarea_tag(id_base _ '.description', SELF.item.description, rows=8, cols=80, style=style) %]
+ [% L.textarea_tag(id_base _ '.description_as_restricted_html', SELF.item.description_as_restricted_html, id=id_base _ '_description', rows=8, cols=80, style=style, class='texteditor') %]
- [% L.button_tag('submit_edit_item_form("' _ id_base _ '")', LxERP.t8('Save')) %] - [%- LxERP.t8("Cancel") %] + [% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save')) %] + [%- LxERP.t8("Cancel") %]
+ +[%- IF SELF.predefined_texts.size %] + +[%- END %]