Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8f8ad10d

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID 8f8ad10dde4ae3d574e9838a2ada6960c8b462f8
  • Vorgänger e2aca11f
  • Nachfolger 0f2b7717

Neues Design 2019 Standard-Code templates/webpages/requirement_spec_item/_function_block_form.html

Unterschiede anzeigen:

templates/webpages/requirement_spec_item/_function_block_form.html
5 5
[% USE P %][% SET style="width: 500px" %]
6 6

  
7 7
[% DEFAULT id_base = 'edit_function_block_' _ SELF.item.id %]
8
[%- SET a_options = '' %]
9
[%- IF SELF.item.id %]
10
 [%- SET a_options = "to_show: '#" _ SELF.item.item_type _ "-content-top-" _ SELF.item.id _ "'" %]
11
[%- END %]
12
[%- IF SELF.item.item_type == 'sub-function-block' %]
13
 [%- SET a_options = a_options ? a_options _ ', ' : a_options %]
14
 [%- SET a_options = a_options _ "to_hide_if_empty: '#sub-function-block-container-" _ SELF.item.parent_id _ "'" %]
15
[%- END %]
8
[% SET a_options = '' %]
9
[% IF SELF.item.id %]
10
  [% SET a_options = "to_show: '#" _ SELF.item.item_type _ "-content-top-" _ SELF.item.id _ "'" %]
11
[% END %]
12
[% IF SELF.item.item_type == 'sub-function-block' %]
13
  [% SET a_options = a_options ? a_options _ ', ' : a_options %]
14
  [% SET a_options = a_options _ "to_hide_if_empty: '#sub-function-block-container-" _ SELF.item.parent_id _ "'" %]
15
[% END %]
16 16
<form method="post" id="[% id_base %]_form" class="function-block-form">
17 17
 [% L.hidden_tag('form_prefix',                    id_base,      id=id_base _ '_form_prefix') %]
18 18
 [% L.hidden_tag('id',                             SELF.item.id, id=id_base _ '_id') %]
......
23 23
  [% L.hidden_tag(id_base _ '.insert_after',       insert_after) %]
24 24
 [% END %]
25 25

  
26
 <div>
27
  <div style="width: 58%; float: left">
28
   <div>
29
[%- IF SELF.item.id -%]
30
    [% LxERP.t8("Description of #1", SELF.item.fb_number) %]
31
[%- ELSIF SELF.item.item_type == 'function-block' -%]
32
    [%- LxERP.t8("Add function block") %]
33
[%- ELSE -%]
34
    [%- LxERP.t8("Add sub function block") %]
35
[%- END -%]:<br>
36
    [% L.textarea_tag(id_base _ '.description_as_restricted_html', SELF.item.description_as_restricted_html, id=id_base _ '_description', rows=8, style="width: 100%", class='texteditor') %]
37
   </div>
26
<div class="rs-form">
27
<table class="tbl-horizontal" class="wi-verywide">
28
  <colgroup> <col class="wi-small"><col class="wi-verywide"> </colgroup> 
29
  <caption>
30
    [% IF SELF.item.id %]
31
      [% LxERP.t8("Description of #1", SELF.item.fb_number) %]
32
    [% ELSIF SELF.item.item_type == 'function-block' %]
33
        [% LxERP.t8("Add function block") %]
34
    [% ELSE %]
35
        [% LxERP.t8("Add sub function block") %]
36
    [% END %]
37
  </caption>
38
  <tbody>
39
    <tr>
40
      <th class="wi-small-verywide" colspan="2">[% L.textarea_tag(id_base _ '.description_as_restricted_html', SELF.item.description_as_restricted_html, id=id_base _ '_description', rows=8, cols=20, class='wi-wide', class='texteditor') %]</th>
41
    </tr>
42
    <tr>
43
      <th>[% LxERP.t8("Complexity") %]</th>
44
      <td>[% L.select_tag(id_base _ '.complexity_id', SELF.complexities, title_key='description', default=SELF.item.complexity_id, class='wi-wide') %]</td>
45
    </tr>
46
    <tr>
47
      <th>[% LxERP.t8("Risk") %]</th>
48
      <td>[% L.select_tag(id_base _ '.risk_id', SELF.risks, title_key='description', default=SELF.item.risk_id, class='wi-wide') %]</td>
49
    </tr>
50
    [% IF !SELF.item.children.size %]
51
      <tr>
52
        <th>[% LxERP.t8("Time estimate") %]</th>
53
        <td>[% P.man_days_tag(id_base _ '.time_estimation', SELF.item, class='wi-verysmall') %]</td>
54
      </tr>
55
    [% END %]
56
    <tr>
57
      <th>[% LxERP.t8("Dependencies") %]</th>
58
      <td>[% L.select_tag(id_base _ '.dependencies[]', DEPENDENCIES, default=SELECTED_DEPENDENCIES, with_optgroups=1, multiple=1, size=8 class='wi-wide') %]</td>
59
    </tr>
60
  </tbody>
61
</table>
38 62

  
39
   <div style="margin-top: 10px">
63
<div class="buttons">
40 64
    [% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save'), id=id_base _ '_submit') %]
41
    <a href="#" onclick="kivi.requirement_spec.cancel_edit_item_form('[% id_base %]', { [% a_options %] })">[%- LxERP.t8("Cancel") %]</a>
42
   </div>
43
  </div>
65
    <a href="#" onclick="kivi.requirement_spec.cancel_edit_item_form('[% id_base %]', { [% a_options %] })" class="button neutral">[% LxERP.t8("Cancel") %]</a>
66
</div>
67
</div><!-- /.wrapper.rs-fb-form -->
44 68

  
45
  <div style="width: 19%; float: left; margin-left: 20px">
46
   [%- LxERP.t8("Complexity") %]:<br>
47
   [%- L.select_tag(id_base _ '.complexity_id', SELF.complexities, title_key='description', default=SELF.item.complexity_id, style="width: 100%") %]<br>
48

  
49
   [%- LxERP.t8("Risk") %]:<br>
50
   [%- L.select_tag(id_base _ '.risk_id', SELF.risks, title_key='description', default=SELF.item.risk_id, style="width: 100%") %]<br>
51

  
52
[%- IF !SELF.item.children.size %]
53
   [%- LxERP.t8("Time estimate") %]:<br>
54
   [%- P.man_days_tag(id_base _ '.time_estimation', SELF.item) %]
55
[%- END %]
56
  </div>
57

  
58
  <div style="width: 19%; float: left; margin-left: 10px">
59
   [%- LxERP.t8("Dependencies") %]:<br>
60
   [%- L.select_tag(id_base _ '.dependencies[]', DEPENDENCIES, default=SELECTED_DEPENDENCIES, with_optgroups=1, multiple=1, size=8, style="width: 100%") %]
61
  </div>
62

  
63
  <div style="clear: both"></div>
64
 </div>
65

  
66
 <p>
67
 </p>
68 69
</form>

Auch abrufbar als: Unified diff