Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1467b6f2

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 1467b6f2a7ba23f91a5844fc793133fc4229f3b4
  • Vorgänger 4da90c25
  • Nachfolger 3d66b397

Neues kivitendo Design restliche Aenderungen in templates/webpages/requirement_spec_*

Dateien requirement_spec_item/* requirement_spec_order/* requirement_spec_part/*
requirement_spec_text_block/* requirement_spec_version/*

Unterschiede anzeigen:

templates/webpages/requirement_spec_item/_function_block_form.html
1
[%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE JavaScript -%][%- USE P -%][% SET style="width: 500px" %]
1
[% USE LxERP %]
2
[% USE L %]
3
[% USE HTML %]
4
[% USE JavaScript %]
5
[% USE P %][% SET style="width: 500px" %]
6

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

  
21
 <div>
22
  <div style="width: 58%; float: left">
23
   <div>
24
[%- IF SELF.item.id -%]
25
    [% LxERP.t8("Description of #1", SELF.item.fb_number) %]
26
[%- ELSIF SELF.item.item_type == 'function-block' -%]
27
    [%- LxERP.t8("Add function block") %]
28
[%- ELSE -%]
29
    [%- LxERP.t8("Add sub function block") %]
30
[%- END -%]:<br>
31
    [% 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') %]
32
   </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>
33 62

  
34
   <div style="margin-top: 10px">
63
<div class="buttons">
35 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') %]
36
    <a href="#" onclick="kivi.requirement_spec.cancel_edit_item_form('[% id_base %]', { [% a_options %] })">[%- LxERP.t8("Cancel") %]</a>
37
   </div>
38
  </div>
39

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

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

  
47
[%- IF !SELF.item.children.size %]
48
   [%- LxERP.t8("Time estimate") %]:<br>
49
   [%- P.man_days_tag(id_base _ '.time_estimation', SELF.item) %]
50
[%- END %]
51
  </div>
52

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

  
58
  <div style="clear: both"></div>
59
 </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 -->
60 68

  
61
 <p>
62
 </p>
63 69
</form>

Auch abrufbar als: Unified diff