Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f18f5e43

Von Cem Aydin vor fast 2 Jahren hinzugefügt

  • ID f18f5e43312928e021210b484ea34e6e3efc56bf
  • Vorgänger 6b819819
  • Nachfolger a55624d1

design40: Templates requirement_spec_part/ vereinheitlicht/bereinigt

- Formatierung vereinheitlicht
- Einrückung angepasst

Unterschiede anzeigen:

templates/design40_webpages/requirement_spec_part/_edit.html
1
[%- USE LxERP -%][%- USE L -%][%- USE P -%]
1
[% USE LxERP %]
2
[% USE L %]
3
[% USE P %]
4

  
2 5
[% SET parts = SELF.requirement_spec.parts_sorted %]
3 6

  
4 7
<div id="additional_parts_form_container" class="edit-additional-parts-context-menu">
5 8

  
6
 <h2>[% LxERP.t8("Edit additional articles") %]</h2>
7

  
8
 <div>
9
  [% LxERP.t8("Add part") %]:
10
  [% P.part.picker('additional_parts_add_part_id', '', style="width: 300px") %]
11
  [% L.button_tag('kivi.requirement_spec.add_additional_part()', LxERP.t8('Add part')) %]
12
 </div>
9
  <h2>[% LxERP.t8("Edit additional articles") %]</h2>
13 10

  
14
 <form method="post" id="edit_additional_parts_form">
15
  <div id="edit_additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
16
   [% LxERP.t8("No articles have been added yet.") %]
11
  <div>
12
    [% LxERP.t8("Add part") %]:
13
    [% P.part.picker('additional_parts_add_part_id', '', style="width: 300px") %]
14
    [% L.button_tag('kivi.requirement_spec.add_additional_part()', LxERP.t8('Add part')) %]
17 15
  </div>
18 16

  
19
  <table id="edit_additional_parts_list" class="tbl-list"[% IF !parts.size %] style="display: none;"[% END %]>
20
   <thead>
21
    <tr>
22
     <th></th>
23
     <th>[%- LxERP.t8("Part Number") %]</th>
24
     <th>[%- LxERP.t8("Description") %]</th>
25
     <th>[%- LxERP.t8("Qty") %]</th>
26
    </tr>
27
   </thead>
28

  
29
   <tbody>
30
    [%- FOREACH part = parts %]
31
     [%- INCLUDE 'requirement_spec_part/_part.html' part=part %]
32
    [%- END %]
33
   </tbody>
34
  </table>
35

  
36
   [% L.button_tag("kivi.requirement_spec.standard_additional_parts_ajax_call('save')", LxERP.t8("Save")) %]
17
  <form method="post" id="edit_additional_parts_form">
18
    <div id="edit_additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
19
      [% LxERP.t8("No articles have been added yet.") %]
20
    </div>
21

  
22
    <table id="edit_additional_parts_list" class="tbl-list"[% IF !parts.size %] style="display: none;"[% END %]>
23
      <thead>
24
        <tr>
25
          <th></th>
26
          <th>[% LxERP.t8("Part Number") %]</th>
27
          <th>[% LxERP.t8("Description") %]</th>
28
          <th>[% LxERP.t8("Qty") %]</th>
29
        </tr>
30
      </thead>
31

  
32
      <tbody>
33
        [% FOREACH part = parts %]
34
          [% INCLUDE 'requirement_spec_part/_part.html' part=part %]
35
        [% END %]
36
      </tbody>
37
    </table>
38

  
39
    [% L.button_tag("kivi.requirement_spec.standard_additional_parts_ajax_call('save')", LxERP.t8("Save")) %]
37 40
  </form>
38 41
</div>
templates/design40_webpages/requirement_spec_part/_part.html
1
[%- USE HTML -%][%- USE L -%][%- USE LxERP -%]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
4

  
2 5
<tr class="edit-additional-parts-row-context-menu">
3
 <td class="center">
4
  [% L.hidden_tag("additional_parts[+].part_id", part.part.id) %]
5
  [% L.hidden_tag("additional_parts[].id", part.id) %]
6
  [% L.img_tag(src="image/updown.png", alt=LxERP.t8("reorder item"), class="dragdrop") %]
7
 </td>
8
 <td>[% HTML.escape(part.part.partnumber) %]</td>
9
 <td>[% L.input_tag("additional_parts[].description", part.description, size="30") %]</td>
10
 <td>
11
  [% L.input_tag("additional_parts[].qty_as_number", part.qty_as_number, size="10") %]
12
  [% L.select_tag("additional_parts[].unit_id", part.unit.convertible_units, title_key="name", default=part.unit.id) %]
13
 </td>
6
  <td class="center">
7
    [% L.hidden_tag("additional_parts[+].part_id", part.part.id) %]
8
    [% L.hidden_tag("additional_parts[].id", part.id) %]
9
    [% L.img_tag(src="image/updown.png", alt=LxERP.t8("reorder item"), class="dragdrop") %]
10
  </td>
11
  <td>[% HTML.escape(part.part.partnumber) %]</td>
12
  <td>[% L.input_tag("additional_parts[].description", part.description, size="30") %]</td>
13
  <td>
14
    [% L.input_tag("additional_parts[].qty_as_number", part.qty_as_number, size="10") %]
15
    [% L.select_tag("additional_parts[].unit_id", part.unit.convertible_units, title_key="name", default=part.unit.id) %]
16
  </td>
14 17
</tr>
templates/design40_webpages/requirement_spec_part/show.html
1
[%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE HTML -%]
1
[% USE LxERP %]
2
[% USE L %]
3
[% USE P %]
4
[% USE HTML %]
5

  
2 6
[% SET parts = SELF.requirement_spec.parts_sorted %]
3 7

  
4 8
<div id="additional_parts_list_container" class="additional-parts-context-menu"[% IF initially_hidden %] style="display: none;"[% END %]>
5 9

  
6
 <h2>[% LxERP.t8("Additional articles") %]</h2>
10
  <h2>[% LxERP.t8("Additional articles") %]</h2>
7 11

  
8
 <div id="additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
9
  [% LxERP.t8("No articles have been added yet.") %]
10
 </div>
12
  <div id="additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
13
    [% LxERP.t8("No articles have been added yet.") %]
14
  </div>
11 15

  
12
 <table id="additional_parts_list"[% IF !parts.size %] style="display:none;"[% END %] class="tbl-list">
13
  <thead>
14
   <tr>
15
    <th>[%- LxERP.t8("Part Number") %]</th>
16
    <th>[%- LxERP.t8("Description") %]</th>
17
    <th>[%- LxERP.t8("Qty") %]</th>
18
   </tr>
19
  </thead>
16
  <table id="additional_parts_list"[% IF !parts.size %] style="display:none;"[% END %] class="tbl-list">
17
    <thead>
18
      <tr>
19
        <th>[% LxERP.t8("Part Number") %]</th>
20
        <th>[% LxERP.t8("Description") %]</th>
21
        <th>[% LxERP.t8("Qty") %]</th>
22
      </tr>
23
    </thead>
20 24

  
21
  <tbody>
22
   [% FOREACH part = parts %]
23
    <tr>
24
     <td>[% HTML.escape(part.part.partnumber) %]</td>
25
     <td>[% HTML.escape(part.description) %]</td>
26
     <td class="numeric">[% HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</td>
27
    </tr>
28
   [% END %]
29
  </tbody>
30
 </table>
25
    <tbody>
26
      [% FOREACH part = parts %]
27
        <tr>
28
          <td>[% HTML.escape(part.part.partnumber) %]</td>
29
          <td>[% HTML.escape(part.description) %]</td>
30
          <td class="numeric">[% HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</td>
31
        </tr>
32
      [% END %]
33
    </tbody>
34
  </table>
31 35
</div>

Auch abrufbar als: Unified diff