Revision 7dfb5656
Von Cem Aydin vor etwa 2 Jahren hinzugefügt
templates/design40_webpages/requirement_spec_item/_function_block.html | ||
---|---|---|
[%- USE HTML -%]
|
||
[%- USE LxERP -%]
|
||
[%- USE P -%]
|
||
[%- USE L -%]
|
||
<div id="function-block-[% requirement_spec_item.id %]" class="function-block[%- IF requirement_spec_item.is_flagged -%] flagged[%- END -%]">
|
||
|
||
<div id="function-block-content-[%- requirement_spec_item.id -%]" class="function-block-content function-block-context-menu">
|
||
|
||
[% INCLUDE 'requirement_spec_item/_function_block_content_top.html' id_prefix='' %]
|
||
[% INCLUDE 'requirement_spec_item/_function_block_content_bottom.html' id_prefix='' %]
|
||
|
||
|
||
<div class="sub-function-block-container" id="sub-function-block-container-[%- requirement_spec_item.id -%]"[%- IF !requirement_spec_item.children.size -%] style="display: none"[%- END -%]>
|
||
<div class="sub-function-block-header" id="sub-function-block_header_[%- requirement_spec_item.id -%]">
|
||
[%- LxERP.t8("Sub function blocks") -%]
|
||
</div>
|
||
[%- FOREACH sub_function_block = requirement_spec_item.children_sorted -%]
|
||
[%- INCLUDE 'requirement_spec_item/_sub_function_block.html' requirement_spec_item=sub_function_block -%]
|
||
[%- END -%]
|
||
</div>
|
||
|
||
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE P %]
|
||
[% USE L %]
|
||
|
||
<div id="function-block-[%- requirement_spec_item.id -%]" class="function-block[%- IF requirement_spec_item.is_flagged -%] flagged[%- END -%]">
|
||
|
||
<div id="function-block-content-[%- requirement_spec_item.id -%]" class="function-block-content function-block-context-menu">
|
||
|
||
[% INCLUDE 'requirement_spec_item/_function_block_content_top.html' id_prefix='' %]
|
||
[% INCLUDE 'requirement_spec_item/_function_block_content_bottom.html' id_prefix='' %]
|
||
|
||
<div class="sub-function-block-container" id="sub-function-block-container-[%- requirement_spec_item.id -%]"[%- IF !requirement_spec_item.children.size -%] style="display: none"[%- END -%]>
|
||
<div class="sub-function-block-header" id="sub-function-block_header_[%- requirement_spec_item.id -%]">
|
||
[% LxERP.t8("Sub function blocks") -%]
|
||
</div>
|
||
[% FOREACH sub_function_block = requirement_spec_item.children_sorted %]
|
||
[% INCLUDE 'requirement_spec_item/_sub_function_block.html' requirement_spec_item=sub_function_block %]
|
||
[% END %]
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div><!-- div ?? -->
|
templates/design40_webpages/requirement_spec_item/_function_block_content_bottom.html | ||
---|---|---|
[% USE LxERP %]
|
||
[% USE P %]
|
||
|
||
<!-- PENDENT: ggf. DIV-Tabelle anwenden -->
|
||
<div id="[% id_prefix %]function-block-content-bottom-[% requirement_spec_item.id %]" class="function-block-properties list">
|
||
<div id="[%- id_prefix -%]function-block-content-bottom-[%- requirement_spec_item.id -%]" class="function-block-properties list">
|
||
|
||
[% IF requirement_spec_item.dependencies.size %]
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Dependencies") %]:</span>
|
||
<span class="value">[% requirement_spec_item.presenter.requirement_spec_item_dependency_list %]</span>
|
||
</div>
|
||
[% END %]
|
||
[% IF requirement_spec_item.dependencies.size %]
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Dependencies") %]:</span>
|
||
<span class="value">[% requirement_spec_item.presenter.requirement_spec_item_dependency_list %]</span>
|
||
</div>
|
||
[% END %]
|
||
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Complexity") %]:</span>
|
||
<span class="value">[% requirement_spec_item.complexity.description %]</span>
|
||
</div>
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Complexity") %]:</span>
|
||
<span class="value">[% requirement_spec_item.complexity.description %]</span>
|
||
</div>
|
||
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Risk") %]:</span>
|
||
<span class="value">[% requirement_spec_item.risk.description %]</span>
|
||
</div>
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Risk") %]:</span>
|
||
<span class="value">[% requirement_spec_item.risk.description %]</span>
|
||
</div>
|
||
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Time estimate") %]:</span>
|
||
<span class="value">[% P.format_man_days(requirement_spec_item.time_estimation, skip_zero=1) %]</span>
|
||
</div>
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Time estimate") %]:</span>
|
||
<span class="value">[% P.format_man_days(requirement_spec_item.time_estimation, skip_zero=1) %]</span>
|
||
</div>
|
||
|
||
</div><!-- /.function-block-properties -->
|
templates/design40_webpages/requirement_spec_item/_function_block_content_top.html | ||
---|---|---|
[% USE HTML %]
|
||
[% USE L %]
|
||
<div id="[% id_prefix %]function-block-content-top-[% requirement_spec_item.id %]" class="function-block-header">
|
||
<div class="function-block-number">[% HTML.escape(requirement_spec_item.fb_number) %]</div>
|
||
<div class="function-block-desc">[% requirement_spec_item.description_as_restricted_html %]</div>
|
||
|
||
<div id="[%- id_prefix -%]function-block-content-top-[%- requirement_spec_item.id -%]" class="function-block-header">
|
||
<div class="function-block-number">[% HTML.escape(requirement_spec_item.fb_number) %]</div>
|
||
<div class="function-block-desc">[% requirement_spec_item.description_as_restricted_html %]</div>
|
||
</div>
|
templates/design40_webpages/requirement_spec_item/_no_section.html | ||
---|---|---|
[%- USE LxERP -%]
|
||
[% USE LxERP %]
|
||
|
||
<div class="section-context-menu">
|
||
<h2>[%- LxERP.t8("No sections created yet") %]</h2>
|
||
<h2>[% LxERP.t8("No sections created yet") %]</h2>
|
||
|
||
<p>
|
||
[%- LxERP.t8("No sections have been created so far.") %]<br>
|
||
[% LxERP.t8("Create one from the context menu by right-clicking on this text.") %]
|
||
</p>
|
||
<p>
|
||
[% LxERP.t8("No sections have been created so far.") %]<br>
|
||
[% LxERP.t8("Create one from the context menu by right-clicking on this text.") %]
|
||
</p>
|
||
</div>
|
templates/design40_webpages/requirement_spec_item/_section.html | ||
---|---|---|
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]
|
||
<div id="section-[% requirement_spec_item.id %]" class="section[%- IF requirement_spec_item.is_flagged -%]flagged[%- END -%]">
|
||
<div class="section-header section-context-menu" id="section-header-[% requirement_spec_item.id %]">
|
||
[%- INCLUDE 'requirement_spec_item/_section_header.html' %]
|
||
</div>
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
|
||
<div id="section-list-empty" class="section-context-menu"[% IF requirement_spec_item.children.size %] style="display: none"[% END %]>
|
||
[%- LxERP.t8("No function blocks have been created yet.") %]
|
||
[% LxERP.t8("Create one from the context menu by right-clicking on this text.") %]
|
||
</div>
|
||
<div id="section-[%- requirement_spec_item.id -%]" class="section[%- IF requirement_spec_item.is_flagged -%] flagged[%- END -%]">
|
||
<div class="section-header section-context-menu" id="section-header-[%- requirement_spec_item.id -%]">
|
||
[% INCLUDE 'requirement_spec_item/_section_header.html' %]
|
||
</div>
|
||
|
||
<div id="section-list" class="section">
|
||
[%- FOREACH function_block = requirement_spec_item.children_sorted -%]
|
||
[%- INCLUDE 'requirement_spec_item/_function_block.html' requirement_spec_item=function_block -%]
|
||
[%- END -%]
|
||
</div>
|
||
<div id="section-list-empty" class="section-context-menu"[%- IF requirement_spec_item.children.size -%] style="display: none"[%- END -%]>
|
||
[% LxERP.t8("No function blocks have been created yet.") %]
|
||
[% LxERP.t8("Create one from the context menu by right-clicking on this text.") %]
|
||
</div>
|
||
|
||
<div id="section-list" class="section">
|
||
[% FOREACH function_block = requirement_spec_item.children_sorted %]
|
||
[% INCLUDE 'requirement_spec_item/_function_block.html' requirement_spec_item=function_block %]
|
||
[% END %]
|
||
</div>
|
||
</div>
|
templates/design40_webpages/requirement_spec_item/_section_form.html | ||
---|---|---|
[%- USE HTML %][%- USE L %][%- USE LxERP %]
|
||
[%- DEFAULT id_base="edit_section" %]
|
||
[%- SET style="width: 500px" %]
|
||
[% USE HTML %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
|
||
[% DEFAULT id_base="edit_section" %]
|
||
[% SET style="width: 500px" %]
|
||
|
||
<form id="[% id_base %]_form">
|
||
|
||
[% 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') %]
|
||
|
||
[% 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 %]
|
||
[% IF insert_after %]
|
||
[% L.hidden_tag(id_base _ '.insert_after', insert_after) %]
|
||
[% END %]
|
||
|
||
<table class="tbl-horizontal">
|
||
[%- IF SELF.item.id %]
|
||
[%- SET hidden = '#section-header-' _ SELF.item.id %]
|
||
<caption>[%- LxERP.t8("Edit section #1", SELF.item.fb_number) %]</caption>
|
||
[%- ELSE %]
|
||
[%- SET hidden = '#column-content > *' %]
|
||
<caption>[%- LxERP.t8("Add section") %]</caption>
|
||
[%- END %]
|
||
<tbody>
|
||
<table class="tbl-horizontal">
|
||
[% IF SELF.item.id %]
|
||
[% SET hidden = '#section-header-' _ SELF.item.id %]
|
||
<caption>[% LxERP.t8("Edit section #1", SELF.item.fb_number) %]</caption>
|
||
[% ELSE %]
|
||
[% SET hidden = '#column-content > *' %]
|
||
<caption>[% LxERP.t8("Add section") %]</caption>
|
||
[% END %]
|
||
<tbody>
|
||
<tr>
|
||
<th>[% LxERP.t8("Title") %]:</th>
|
||
<td>[% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %]</td>
|
||
</tr>
|
||
[% IF SELF.predefined_texts.size %]
|
||
<tr>
|
||
<th>[% LxERP.t8("Pre-defined Texts") %]:</th>
|
||
<td>
|
||
[% L.select_tag(id_base _ '_predefined_text_block', SELF.predefined_texts, title_key='description', style=style) %] <a href="#" onclick='insert_selected_predefined_text()'>[% LxERP.t8("Insert") %]</a>
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[%- LxERP.t8("Title") %]:</th>
|
||
<td>[% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %]</td>
|
||
<th>[% LxERP.t8("Description") %]:</th>
|
||
<td>
|
||
[% 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') %]<br>
|
||
</td>
|
||
</tr>
|
||
|
||
[%- IF SELF.predefined_texts.size %]
|
||
<tr>
|
||
<th>[%- LxERP.t8("Pre-defined Texts") %]:</th>
|
||
<td>[%- L.select_tag(id_base _ '_predefined_text_block', SELF.predefined_texts, title_key='description', style=style) %] <a href="#" onclick='insert_selected_predefined_text()'>[%- LxERP.t8("Insert") %]</a>
|
||
<td>[% LxERP.t8("Price Factor") %]:</td>
|
||
<td>
|
||
[% L.input_tag(id_base _ ".sellprice_factor_as_number", SELF.item.sellprice_factor_as_number, size="6") %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
|
||
|
||
<tr>
|
||
<th>[%- LxERP.t8("Description") %]:</th>
|
||
<td>
|
||
[% 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') %]<br>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>[% LxERP.t8("Price Factor") %]:</td>
|
||
<td>[% L.input_tag(id_base _ ".sellprice_factor_as_number", SELF.item.sellprice_factor_as_number, size="6") %]
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>[% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save')) %]
|
||
<a href="#" onclick='kivi.requirement_spec.cancel_edit_item_form("[% id_base %]", { to_show: "[% hidden %]" })' class="button">[%- LxERP.t8("Cancel") %]</a></td>
|
||
</tr>
|
||
|
||
|
||
<td> </td>
|
||
<td>
|
||
[% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save')) %]
|
||
<a href="#" onclick='kivi.requirement_spec.cancel_edit_item_form("[% id_base %]", { to_show: "[% hidden %]" })' class="button">[% LxERP.t8("Cancel") %]</a>
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
</tbody>
|
||
</table>
|
||
|
||
[%- IF SELF.predefined_texts.size %]
|
||
<script type="text/javascript">
|
||
<!--
|
||
[% INCLUDE 'requirement_spec_text_block/_predefined_text_inserter.js' title_ctrl_id='_title' text_ctrl_id='_description' %]
|
||
-->
|
||
</script>
|
||
[%- END %]
|
||
[% IF SELF.predefined_texts.size %]
|
||
<script type="text/javascript">
|
||
[% INCLUDE 'requirement_spec_text_block/_predefined_text_inserter.js' title_ctrl_id='_title' text_ctrl_id='_description' %]
|
||
</script>
|
||
[% END %]
|
||
</form>
|
templates/design40_webpages/requirement_spec_item/_section_header.html | ||
---|---|---|
[%- USE HTML -%][%- USE L -%][%- USE LxERP -%]
|
||
[% USE HTML %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
|
||
<h3>
|
||
<span class="label">[%- HTML.escape(requirement_spec_item.fb_number) %]:</span>
|
||
[% IF requirement_spec_item.title %]
|
||
[% HTML.escape(requirement_spec_item.title) %]
|
||
[% ELSE %]
|
||
<div class="dimmed-text">
|
||
[%- LxERP.t8("No text has been entered yet.") %]
|
||
</div>
|
||
[% END %]
|
||
<span class="label">[% HTML.escape(requirement_spec_item.fb_number) %]:</span>
|
||
[% IF requirement_spec_item.title %]
|
||
[% HTML.escape(requirement_spec_item.title) %]
|
||
[% ELSE %]
|
||
<div class="dimmed-text">
|
||
[% LxERP.t8("No text has been entered yet.") %]
|
||
</div>
|
||
[% END %]
|
||
</h3>
|
||
|
||
<div class="section-description" id="section-description">
|
||
<div>
|
||
[% IF requirement_spec_item.description %]
|
||
<span class="label section-description-heading">[%- LxERP.t8("Preamble") %]:</span><br>
|
||
[%- requirement_spec_item.description_as_restricted_html -%]
|
||
[%- ELSE %]
|
||
<span class="dimmed-text">[%- LxERP.t8("No text has been entered yet.") %]</span>
|
||
[%- END %]
|
||
[% IF requirement_spec_item.description %]
|
||
<span class="label section-description-heading">[% LxERP.t8("Preamble") %]:</span><br>
|
||
[% requirement_spec_item.description_as_restricted_html %]
|
||
[% ELSE %]
|
||
<span class="dimmed-text">[% LxERP.t8("No text has been entered yet.") %]</span>
|
||
[% END %]
|
||
</div>
|
||
|
||
[% IF requirement_spec_item.sellprice_factor %]
|
||
<div>
|
||
<span class="label">[%- LxERP.t8("Price Factor") -%]:</span> [%- LxERP.format_amount(requirement_spec_item.sellprice_factor, -2) -%]
|
||
</div>
|
||
<div>
|
||
<span class="label">[% LxERP.t8("Price Factor") %]:</span> [% LxERP.format_amount(requirement_spec_item.sellprice_factor, -2) %]
|
||
</div>
|
||
[% END %]
|
||
|
||
</div>
|
Auch abrufbar als: Unified diff
design40: Templates requirement_spec_item/ vereinheitlicht/bereinigt
- Formatierung vereinheitlicht
- Einrückung angepasst
- HTML Kommentare aus script tag entfernt