X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec_item%2F_section_form.html;h=93d75bed82f13064b0006548be4cbb555f92c48c;hb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44;hp=c2ae0da8b3e408f8106520808c02e2b1011b2749;hpb=c1569bc195865fa5c25c6945bbad78c872fa2046;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 c2ae0da8b..93d75bed8 100644 --- a/templates/webpages/requirement_spec_item/_section_form.html +++ b/templates/webpages/requirement_spec_item/_section_form.html @@ -1,25 +1,53 @@ [%- USE HTML %][%- USE L %][%- USE LxERP %] -[%- SET id_base="section-form" %] -
-

[%- LxERP.t8("Edit section #1", SELF.item.fb_number) %]

+[%- DEFAULT id_base="edit_section" %] +[%- SET style="width: 500px" %] +
+ [%- IF SELF.item.id %] + [%- SET hidden = '#section-header-' _ SELF.item.id %] +

[%- LxERP.t8("Edit section #1", SELF.item.fb_number) %]

- - [% L.hidden_tag("requirement_spec_id", SELF.item.requirement_spec_id, id=(id_base _ "-requirement-spec-id")) %] - [% L.hidden_tag("id", SELF.item.id, id=(id_base _ "-requirement-spec-item-id")) %] + [%- ELSE %] + [%- SET hidden = '#column-content > *' %] +

[%- LxERP.t8("Add section") %]

-

- [%- LxERP.t8("Title") %]:
- [% L.input_tag("title", SELF.item.title, id=(id_base _ "-title")) %] -

+ [%- END %] -

- [%- LxERP.t8("Description") %]:
- [% L.textarea_tag("description", SELF.item.description, id=(id_base _ "-description"), rows=8, cols=80) %] -

+ [% 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 %] +

+ [%- LxERP.t8("Title") %]:
+ [% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %] +

+ + [%- IF SELF.predefined_texts.size %]

- [% L.button_tag("submit_section_form()", LxERP.t8("Save")) %] - [% LxERP.t8("Cancel") %] + [%- LxERP.t8("Pre-defined Texts") %]:
+ [%- L.select_tag(id_base _ '_predefined_text_block', SELF.predefined_texts, title_key='description', style=style) %] + [%- LxERP.t8("Insert") %]

-
-
+ [%- END %] + +

+ [%- LxERP.t8("Description") %]:
+ [% 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.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 %] +