Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6b819819

Von Cem Aydin vor fast 2 Jahren hinzugefügt

  • ID 6b81981923ba8325cc7ba1c3ec8f4dae20ea759a
  • Vorgänger 2172794d
  • Nachfolger f18f5e43

design40: Templates requirement_spec_order/ vereinheitlicht/bereinigt

- Formatierung vereinheitlicht
- Einrückung angepasst
- align right durch class ersetzt

Unterschiede anzeigen:

templates/design40_webpages/requirement_spec_order/_assignment_form.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE P %]
5

  
2 6
[% SET style="width: 400px" %]
3 7

  
4 8
<form id="quotations_and_orders_form">
5
 <table class="tbl-horizontal">
6
  <tbody>
7
  [% IF for_new %]
8
  <tr>
9
   <th>[% LxERP.t8("Record type to create") %]:</th>
10
   <td>[% L.select_tag('quotation', [ [ 1, LxERP.t8('Sales quotation') ], [ 0, LxERP.t8('Sales Order') ] ], style=style, no_id=1) %]</td>
11
  </tr>
12

  
13
  <tr>
14
   <th>[% LxERP.t8("Customer") %]:</th>
15
   <td>[% L.select_tag('customer_id', SELF.all_customers, default=SELF.requirement_spec.customer_id, title_key='name', style=style, no_id=1) %]</td>
16
  </tr>
17
  [% END %]
18

  
19
  <tr>
20
   <th>[% LxERP.t8("Assign the following article to all sections") %]:</th>
21
   <td data-unit="[% HTML.escape(SELF.section_order_part.unit) %]">
22
    [% P.part.picker('quotations_and_orders_dummy', SELF.section_order_part.id, id='quotations_and_orders_order_id', style=style) %]
23
    [% L.button_tag('kivi.requirement_spec.assign_order_part_id_to_all()', LxERP.t8('Assign article')) %]
24
   </td>
25
  </tr>
26
</tbody>
27
 </table>
28

  
29
 <table class="tbl-list">
30
  <thead>
31
   <tr>
32
    <th class="right">[% LxERP.t8("Number") %]</th>
33
    <th>[% LxERP.t8("Title") %]</th>
34
    <th>[% LxERP.t8("Description") %]</th>
35
    <th>[% LxERP.t8("Article") %]</th>
36
    <th>[% LxERP.t8("Unit") %]</th>
37
    <th>[% LxERP.t8("Position type in quotation/order") %]</th>
38
   </tr>
39
  </thead>
9
  <table class="tbl-horizontal">
10
    <tbody>
11
      [% IF for_new %]
12
        <tr>
13
          <th>[% LxERP.t8("Record type to create") %]:</th>
14
          <td>[% L.select_tag('quotation', [ [ 1, LxERP.t8('Sales quotation') ], [ 0, LxERP.t8('Sales Order') ] ], style=style, no_id=1) %]</td>
15
        </tr>
16
        <tr>
17
          <th>[% LxERP.t8("Customer") %]:</th>
18
          <td>[% L.select_tag('customer_id', SELF.all_customers, default=SELF.requirement_spec.customer_id, title_key='name', style=style, no_id=1) %]</td>
19
        </tr>
20
      [% END %]
21
      <tr>
22
        <th>[% LxERP.t8("Assign the following article to all sections") %]:</th>
23
        <td data-unit="[% HTML.escape(SELF.section_order_part.unit) %]">
24
          [% P.part.picker('quotations_and_orders_dummy', SELF.section_order_part.id, id='quotations_and_orders_order_id', style=style) %]
25
          [% L.button_tag('kivi.requirement_spec.assign_order_part_id_to_all()', LxERP.t8('Assign article')) %]
26
        </td>
27
      </tr>
28
    </tbody>
29
  </table>
40 30

  
41
  <tbody>
42
   [% FOREACH section = SELF.requirement_spec.sections_sorted %]
43
   <tr>
44
    [% L.hidden_tag("sections[+].id", section.id, no_id=1) %]
45
    <td class="numeric">[% HTML.escape(section.fb_number) %]</td>
46
    <td>[% HTML.escape(section.title) %]</td>
47
    <td>[% HTML.escape(P.truncate(section.description_as_stripped_html)) %]</td>
48
    <td>[% P.part.picker('sections[].order_part_id', section.order_part_id, id='quotations_and_orders_sections_order_pard_id_' _ loop.count, style=style) %]</td>
49
    <td data-unit-column=1>[% HTML.escape(section.order_part.unit) %]</td>
50
    <td data-position-type-column=1>
51
     [% IF section.order_part_id && section.order_part.unit_obj.is_time_based %]
52
      [% LxERP.t8("time and effort based position") %]
53
     [% ELSIF section.order_part_id %]
54
      [% LxERP.t8("flat-rate position") %]
55
     [% END %]
56
    </td>
57
   </tr>
58
   [% END %]
59
  </tbody>
60
 </table>
31
  <table class="tbl-list">
32
    <thead>
33
      <tr>
34
        <th class="right">[% LxERP.t8("Number") %]</th>
35
        <th>[% LxERP.t8("Title") %]</th>
36
        <th>[% LxERP.t8("Description") %]</th>
37
        <th>[% LxERP.t8("Article") %]</th>
38
        <th>[% LxERP.t8("Unit") %]</th>
39
        <th>[% LxERP.t8("Position type in quotation/order") %]</th>
40
      </tr>
41
    </thead>
42
    <tbody>
43
      [% FOREACH section = SELF.requirement_spec.sections_sorted %]
44
        <tr>
45
          [% L.hidden_tag("sections[+].id", section.id, no_id=1) %]
46
          <td class="numeric">[% HTML.escape(section.fb_number) %]</td>
47
          <td>[% HTML.escape(section.title) %]</td>
48
          <td>[% HTML.escape(P.truncate(section.description_as_stripped_html)) %]</td>
49
          <td>[% P.part.picker('sections[].order_part_id', section.order_part_id, id='quotations_and_orders_sections_order_pard_id_' _ loop.count, style=style) %]</td>
50
          <td data-unit-column=1>[% HTML.escape(section.order_part.unit) %]</td>
51
          <td data-position-type-column=1>
52
            [% IF section.order_part_id && section.order_part.unit_obj.is_time_based %]
53
              [% LxERP.t8("time and effort based position") %]
54
            [% ELSIF section.order_part_id %]
55
              [% LxERP.t8("flat-rate position") %]
56
            [% END %]
57
          </td>
58
        </tr>
59
      [% END %]
60
    </tbody>
61
  </table>
61 62

  
62
 <p>
63
  [% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('" _ (for_new ? 'create' : 'save_assignment') _ "')", for_new ? LxERP.t8('Create') : LxERP.t8('Save')) %]
64
 </p>
63
  <p>
64
    [% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('" _ (for_new ? 'create' : 'save_assignment') _ "')", for_new ? LxERP.t8('Create') : LxERP.t8('Save')) %]
65
  </p>
65 66
</form>
templates/design40_webpages/requirement_spec_order/list.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
2
<div id="quotations_and_orders" class="quotations-and-orders-context-menu">
3
 <h2>[% LxERP.t8("Assignment of articles to sections") %]</h2>
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE P %]
4 5

  
5
 [% SET sections = SELF.requirement_spec.sections_sorted %]
6
 [% IF !sections.size %]
7
 <div>
8
  [% LxERP.t8("No sections have been created yet.") %]
9
 </div>
10
 [% ELSE %]
11
 <table id="quotations_and_orders_sections" class="tbl-list">
12
  <thead>
13
   <tr>
14
    <th>[% LxERP.t8("Number") %]</th>
15
    <th>[% LxERP.t8("Title") %]</th>
16
    <th>[% LxERP.t8("Description") %]</th>
17
    <th>[% LxERP.t8("Article") %]</th>
18
    <th>[% LxERP.t8("Unit") %]</th>
19
    <th>[% LxERP.t8("Position type in quotation/order") %]</th>
20
   </tr>
21
  </thead>
6
<div id="quotations_and_orders" class="quotations-and-orders-context-menu">
7
  <h2>[% LxERP.t8("Assignment of articles to sections") %]</h2>
22 8

  
23
  <tbody>
24
   [% FOREACH section = sections %]
25
    <tr>
26
     <td>[% HTML.escape(section.fb_number) %]</td>
27
     <td>[% HTML.escape(section.title) %]</td>
28
     <td>[% HTML.escape(P.truncate(section.description_as_stripped_html)) %]</td>
29
     <td>
30
      [% IF section.order_part %]
31
       [% HTML.escape(section.order_part.partnumber) %] [% HTML.escape(section.order_part.description) %]
32
      [% ELSE %]
33
       [% LxERP.t8("no article assigned yet") %]
34
      [% END %]
35
     </td>
36
     <td>[% HTML.escape(section.order_part.unit) %]</td>
37
     <td>
38
      [% IF section.order_part_id && section.order_part.unit_obj.is_time_based %]
39
       [% LxERP.t8("time and effort based position") %]
40
      [% ELSIF section.order_part_id %]
41
       [% LxERP.t8("flat-rate position") %]
42
      [% END %]
43
     </td>
44
    </tr>
45
   [% END %]
46
  </tbody>
47
 </table>
48
 [% END %]
9
  [% SET sections = SELF.requirement_spec.sections_sorted %]
10
  [% IF !sections.size %]
11
    <div>
12
      [% LxERP.t8("No sections have been created yet.") %]
13
    </div>
14
  [% ELSE %]
15
    <table id="quotations_and_orders_sections" class="tbl-list">
16
      <thead>
17
      <tr>
18
        <th>[% LxERP.t8("Number") %]</th>
19
        <th>[% LxERP.t8("Title") %]</th>
20
        <th>[% LxERP.t8("Description") %]</th>
21
        <th>[% LxERP.t8("Article") %]</th>
22
        <th>[% LxERP.t8("Unit") %]</th>
23
        <th>[% LxERP.t8("Position type in quotation/order") %]</th>
24
      </tr>
25
      </thead>
49 26

  
50
 <h2>[% LxERP.t8("Quotations and orders") %]</h2>
27
      <tbody>
28
        [% FOREACH section = sections %]
29
          <tr>
30
          <td>[% HTML.escape(section.fb_number) %]</td>
31
          <td>[% HTML.escape(section.title) %]</td>
32
          <td>[% HTML.escape(P.truncate(section.description_as_stripped_html)) %]</td>
33
          <td>
34
            [% IF section.order_part %]
35
            [% HTML.escape(section.order_part.partnumber) %] [% HTML.escape(section.order_part.description) %]
36
            [% ELSE %]
37
            [% LxERP.t8("no article assigned yet") %]
38
            [% END %]
39
          </td>
40
          <td>[% HTML.escape(section.order_part.unit) %]</td>
41
          <td>
42
            [% IF section.order_part_id && section.order_part.unit_obj.is_time_based %]
43
            [% LxERP.t8("time and effort based position") %]
44
            [% ELSIF section.order_part_id %]
45
            [% LxERP.t8("flat-rate position") %]
46
            [% END %]
47
          </td>
48
          </tr>
49
        [% END %]
50
      </tbody>
51
    </table>
52
  [% END %]
51 53

  
52
 [% SET orders = SELF.requirement_spec.orders_sorted %]
53
 [% IF !orders.size %]
54
  <div>[% LxERP.t8("No quotations or orders have been created yet.") %]</div>
55
 [% ELSE %]
54
  <h2>[% LxERP.t8("Quotations and orders") %]</h2>
56 55

  
57
  <table class="tbl-list">
58
   <thead>
59
    <tr>
60
     <th>[% LxERP.t8("Type") %]</th>
61
     <th>[% LxERP.t8("Requirement Spec Version") %]</th>
62
     <th class="right">[% LxERP.t8("Record number") %]</th>
63
     <th>[% LxERP.t8("Transaction description") %]</th>
64
     <th>[% LxERP.t8("Quotation/Order Date") %]</th>
65
     <th>[% LxERP.t8("Creation Date") %]</th>
66
    </tr>
67
   </thead>
56
  [% SET orders = SELF.requirement_spec.orders_sorted %]
57
  [% IF !orders.size %]
58
    <div>[% LxERP.t8("No quotations or orders have been created yet.") %]</div>
59
  [% ELSE %]
60
    <table class="tbl-list">
61
      <thead>
62
        <tr>
63
        <th>[% LxERP.t8("Type") %]</th>
64
        <th>[% LxERP.t8("Requirement Spec Version") %]</th>
65
        <th class="right">[% LxERP.t8("Record number") %]</th>
66
        <th>[% LxERP.t8("Transaction description") %]</th>
67
        <th>[% LxERP.t8("Quotation/Order Date") %]</th>
68
        <th>[% LxERP.t8("Creation Date") %]</th>
69
        </tr>
70
      </thead>
68 71

  
69
   <tbody>
70
    [% FOREACH rs_order = orders %]
71
    <tr class="quotations-and-orders-order-context-menu">
72
     [% L.hidden_tag('order_id', rs_order.id, no_id=1) %]
73
     <td>[% rs_order.order.type == 'sales_quotation' ? LxERP.t8('Sales quotation') : LxERP.t8('Sales Order') %]</td>
74
     <td>
75
      [% IF rs_order.version %]
76
       [% HTML.escape(rs_order.version.version_number) %]
77
      [% ELSE %]
78
       [% LxERP.t8("working copy") %]
79
      [% END %]
80
     </td>
81
     <td class="numeric">
82
      [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
83
        <a href="controller.pl?action=Order/edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
84
      [%- ELSE -%]
85
        <a href="oe.pl?action=edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
86
      [%- END -%]
87
       [% HTML.escape(rs_order.order.quotation ? rs_order.order.quonumber : rs_order.order.ordnumber) %]
88
      </a>
89
     </td>
90
     <td>[% HTML.escape(rs_order.order.transaction_description) %]</td>
91
     <td>[% rs_order.order.transdate.to_kivitendo(precision='day') %]</td>
92
     <td>[% rs_order.itime.to_kivitendo(precision='day') %]</td>
93
    </tr>
94
    [%- END %]
95
   </tbody>
96
  </table>
97
 [% END %]
72
      <tbody>
73
        [% FOREACH rs_order = orders %]
74
          <tr class="quotations-and-orders-order-context-menu">
75
            [% L.hidden_tag('order_id', rs_order.id, no_id=1) %]
76
            <td>[% rs_order.order.type == 'sales_quotation' ? LxERP.t8('Sales quotation') : LxERP.t8('Sales Order') %]</td>
77
            <td>
78
              [% IF rs_order.version %]
79
                [% HTML.escape(rs_order.version.version_number) %]
80
              [% ELSE %]
81
                [% LxERP.t8("working copy") %]
82
              [% END %]
83
            </td>
84
            <td class="numeric">
85
              [% IF INSTANCE_CONF.get_feature_experimental_order %]
86
                <a href="controller.pl?action=Order/edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
87
              [% ELSE %]
88
                <a href="oe.pl?action=edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
89
              [% END %]
90
              [% HTML.escape(rs_order.order.quotation ? rs_order.order.quonumber : rs_order.order.ordnumber) %]
91
              </a>
92
            </td>
93
            <td>[% HTML.escape(rs_order.order.transaction_description) %]</td>
94
            <td>[% rs_order.order.transdate.to_kivitendo(precision='day') %]</td>
95
            <td>[% rs_order.itime.to_kivitendo(precision='day') %]</td>
96
          </tr>
97
        [% END %]
98
      </tbody>
99
    </table>
100
  [% END %]
98 101
</div>
templates/design40_webpages/requirement_spec_order/update.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE P %]
5

  
2 6
[% SET style = "width: 400px" %]
3 7
[% SET order = SELF.rs_order.order %]
4 8

  
5 9
<div id="quotations_and_orders_update" class="quotations-and-orders-update-context-menu">
6 10

  
7
 <h2>
8
  [% IF order.quotation %]
9
   [% LxERP.t8("Update sales quotation #1", order.quonumber) %]
10
  [% ELSE %]
11
   [% LxERP.t8("Update sales order #1", order.ordnumber) %]
12
  [% END %]
13
 </h2>
14

  
15
 <form id="quotations_and_orders_form">
16
  <h3>[% LxERP.t8("Updating items with sections") %]</h3>
17

  
18
  [% L.hidden_tag("rs_order_id", SELF.rs_order.id, no_id=1) %]
19

  
20
  <table class="tbl-list">
21
   <thead>
22
    <tr>
23
     <th>[% LxERP.t8("Part Number") %]</th>
24
     <th>[% LxERP.t8("Description") %]</th>
25
     <th align="right">[% LxERP.t8("Qty") %]</th>
26
     <th align="right">[% LxERP.t8("Sellprice") %]</th>
27
     <th>[% LxERP.t8("Update with section") %]</th>
28
    </tr>
29
   </thead>
30

  
31
   <tbody>
32
    [% FOREACH item = orderitems %]
33
    <tr>
34
     [% L.hidden_tag("orderitems[+].id", item.item.id, no_id=1) %]
35
     <td>[% HTML.escape(item.item.part.partnumber) %]</td>
36
     <td>[% HTML.escape(item.item.description_as_stripped_html) %]</td>
37
     <td align="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
38
     <td align="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
39
     <td>[% L.select_tag('orderitems[].section_id', sections, default=item.section.id, title_sub=\make_section_title, style=style, no_id=1, with_empty=1, empty_title=LxERP.t8('Do not modify this position')) %]</td>
40
    </tr>
11
  <h2>
12
    [% IF order.quotation %]
13
      [% LxERP.t8("Update sales quotation #1", order.quonumber) %]
14
    [% ELSE %]
15
      [% LxERP.t8("Update sales order #1", order.ordnumber) %]
41 16
    [% END %]
42
   </tbody>
43
  </table>
17
  </h2>
18

  
19
  <form id="quotations_and_orders_form">
20
    <h3>[% LxERP.t8("Updating items with sections") %]</h3>
21

  
22
    [% L.hidden_tag("rs_order_id", SELF.rs_order.id, no_id=1) %]
23

  
24
    <table class="tbl-list">
25
      <thead>
26
        <tr>
27
          <th>[% LxERP.t8("Part Number") %]</th>
28
          <th>[% LxERP.t8("Description") %]</th>
29
          <th class="right">[% LxERP.t8("Qty") %]</th>
30
          <th class="right">[% LxERP.t8("Sellprice") %]</th>
31
          <th>[% LxERP.t8("Update with section") %]</th>
32
        </tr>
33
      </thead>
34

  
35
      <tbody>
36
        [% FOREACH item = orderitems %]
37
          <tr>
38
            [% L.hidden_tag("orderitems[+].id", item.item.id, no_id=1) %]
39
            <td>[% HTML.escape(item.item.part.partnumber) %]</td>
40
            <td>[% HTML.escape(item.item.description_as_stripped_html) %]</td>
41
            <td class="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
42
            <td class="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
43
            <td>[% L.select_tag('orderitems[].section_id', sections, default=item.section.id, title_sub=\make_section_title, style=style, no_id=1, with_empty=1, empty_title=LxERP.t8('Do not modify this position')) %]</td>
44
          </tr>
45
        [% END %]
46
      </tbody>
47
    </table>
44 48

  
45
  <p>
46
   [% LxERP.t8("Sections that are not assigned to any of the items above will be added as new positions.") %]
47
  </p>
49
    <p>
50
      [% LxERP.t8("Sections that are not assigned to any of the items above will be added as new positions.") %]
51
    </p>
48 52

  
49
  <h3>[% LxERP.t8("Updating items with additional parts") %]</h3>
53
    <h3>[% LxERP.t8("Updating items with additional parts") %]</h3>
50 54

  
51
  <p>
52
   [% LxERP.t8("You cannot modify individual assigments from additional articles to line items.") %]
53
   [% LxERP.t8("They will be updated, new ones for additional parts without a line item added automatically.") %]
54
  </p>
55
    <p>
56
      [% LxERP.t8("You cannot modify individual assigments from additional articles to line items.") %]
57
      [% LxERP.t8("They will be updated, new ones for additional parts without a line item added automatically.") %]
58
    </p>
55 59

  
56
  <p>
57
   [% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('do_update')", LxERP.t8('Update')) %]
58
  </p>
59
 </form>
60
    <p>
61
      [% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('do_update')", LxERP.t8('Update')) %]
62
    </p>
63
  </form>
60 64
</div>

Auch abrufbar als: Unified diff