Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 444983ea

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 444983ea46e884d174b004dc49d00a78d34b8df0
  • Vorgänger 55035612
  • Nachfolger b9c13b70

Neues kivitendo Design Aenderungen in templates/webpages/shop*

Dateien shop_order/* shop_part/* shops/*

Unterschiede anzeigen:

templates/webpages/shops/form.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE T8 -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE P %]
5
[% USE T8 %]
2 6

  
3 7
[% SET style="width: 400px" %]
4 8
[% SET size=34 %]
......
6 10
<h1>[% HTML.escape(title) %]</h1>
7 11
<form id="form" action="controller.pl" method="post">
8 12

  
9
[%- INCLUDE 'common/flash.html' %]
13
[% INCLUDE 'common/flash.html' %]
10 14

  
11
[%- L.hidden_tag("id", SELF.shop.id) %]
15
[% L.hidden_tag("id", SELF.shop.id) %]
12 16

  
13
<table>
14
  <tr>
15
    <th align="right">[% 'Description' | $T8 %]</th>
16
    <td>[%- L.input_tag("shop.description", SELF.shop.description, size=size) %]</td>
17
  </tr>
18
  <tr>
19
    <th align="right">[% 'Shop type' | $T8 %]</th>
20
    <td>[% L.select_tag('shop.connector', SELF.connectors, value_key = 'id', title_key = 'description', with_empty = 0, default = SELF.shop.connector, default_value_key='id' ) %]</td>
21
  <tr>
22
  <tr>
23
    <th align="right">[% 'Price type' | $T8 %]</th>
24
    <td>[% L.select_tag('shop.pricetype', SELF.price_types, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.pricetype, default_value_key='id' ) %]</td>
25
  </tr>
26
  <tr>
27
    <th align="right">[% 'Price Source' | $T8 %]</th>
28
    <td>[% L.select_tag('shop.price_source', SELF.price_sources, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.price_source, default_value_key='id' ) %]</td>
29
  </tr>
30
  <tr>
31
    <th align="right">[% 'Bookinggroup/Tax' | $T8 %]</th>
32
    <td>[% L.select_tag('shop.taxzone_id', SELF.taxzone_id, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.taxzone_id, default_value_key='id' ) %]</td>
33
  </tr>
34
  <tr>
35
    <th align="right">[% 'Protocol' | $T8 %]</th>
36
    <td>[% L.select_tag('shop.protocol', SELF.protocols value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.protocol, default_value_key='id' ) %]</td>
37
  </tr>
38
  <tr>
39
    <th align="right">[% 'Server' | $T8 %]</th>
40
    <td>[%- L.input_tag("shop.server", SELF.shop.server, size=size) %]</td>
41
  </tr>
42
  <tr>
43
    <th align="right">[% 'Port' | $T8 %]</th>
44
    <td>[%- L.input_tag("shop.port", SELF.shop.port, size=5) %]</td>
45
  </tr>
46
  <tr>
47
    <th align="right">[% 'Path' | $T8 %]</th>
48
    <td>[%- L.input_tag("shop.path", SELF.shop.path, size=size) %]</td>
49
  </tr>
50
  <tr>
51
    <th align="right">[% 'Realm' | $T8 %]</th>
52
    <td>[%- L.input_tag("shop.realm", SELF.shop.realm, size=size) %]</td>
53
  </tr>
54
  <tr>
55
    <th align="right">[% 'User' | $T8 %]</th>
56
    <td>[%- L.input_tag("shop.login", SELF.shop.login, size=size) %]</td>
57
  </tr>
58
  <tr>
59
    <th align="right">[% 'Password' | $T8 %]</th>
60
    <td>[%- L.input_tag("shop.password", SELF.shop.password, size=size) %]</td>
61
  </tr>
62
  <tr>
63
    <th align="right">[% 'Last ordernumber' | $T8 %]</th>
64
    <td>[%- L.input_tag("shop.last_order_number", SELF.shop.last_order_number, size=12) %]</td>
65
  </tr>
66
  <tr>
67
    <th align="right">[% 'Orders to fetch' | $T8 %]</th>
68
    <td>[%- L.input_tag("shop.orders_to_fetch", SELF.shop.orders_to_fetch, size=12) %]</td>
69
  </tr>
70
  <tr>
71
    <th align="right">[% 'Transaction description' | $T8 %]</th>
72
    <td>[%- L.input_tag("shop.transaction_description", SELF.shop.transaction_description, size=size) %]</td>
73
  </tr>
74
  <tr>
75
    <th align="right">[% 'Obsolete' | $T8 %]</th>
76
    <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
77
  </tr>
17
<div class="wrapper">
18
<table class="tbl-horizontal">
19
  <caption>[% 'Shop bearbeiten' | $T8 %]</caption>
20
  <tbody>
21
    <tr>
22
      <th>[% 'Description' | $T8 %]</th>
23
      <td>[% L.input_tag("shop.description", SELF.shop.description, class='wi-wide') %]</td>
24
    </tr>
25
    <tr>
26
      <th>[% 'Shop type' | $T8 %]</th>
27
      <td>[% L.select_tag('shop.connector', SELF.connectors, value_key = 'id', title_key = 'description', with_empty = 0, default = SELF.shop.connector, default_value_key='id', class='wi-wide' ) %]</td>
28
      <tr>
29
        <tr>
30
          <th>[% 'Price type' | $T8 %]</th>
31
          <td>[% L.select_tag('shop.pricetype', SELF.price_types, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.pricetype, default_value_key='id', class='wi-small' ) %]</td>
32
        </tr>
33
        <tr>
34
          <th>[% 'Price Source' | $T8 %]</th>
35
          <td>[% L.select_tag('shop.price_source', SELF.price_sources, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.price_source, default_value_key='id', class='wi-wide' ) %]</td>
36
        </tr>
37
        <tr>
38
          <th>[% 'Bookinggroup/Tax' | $T8 %]</th>
39
          <td>[% L.select_tag('shop.taxzone_id', SELF.taxzone_id, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.taxzone_id, default_value_key='id', class='wi-wide' ) %]</td>
40
        </tr>
41
        <tr>
42
          <th>[% 'Protocol' | $T8 %]</th>
43
          <td>[% L.select_tag('shop.protocol', SELF.protocols value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.protocol, default_value_key='id', class='wi-small' ) %]</td>
44
        </tr>
45
        <tr>
46
          <th>[% 'Server' | $T8 %]</th>
47
          <td>[% L.input_tag("shop.server", SELF.shop.server, class='wi-wide') %]</td>
48
        </tr>
49
        <tr>
50
          <th>[% 'Port' | $T8 %]</th>
51
          <td>[% L.input_tag("shop.port", SELF.shop.port, class='wi-small') %]</td>
52
        </tr>
53
        <tr>
54
          <th>[% 'Path' | $T8 %]</th>
55
          <td>[% L.input_tag("shop.path", SELF.shop.path, class='wi-wide') %]</td>
56
        </tr>
57
        <tr>
58
          <th>[% 'Realm' | $T8 %]</th>
59
          <td>[% L.input_tag("shop.realm", SELF.shop.realm, class='wi-wide') %]</td>
60
        </tr>
61
        <tr>
62
          <th>[% 'User' | $T8 %]</th>
63
          <td>[% L.input_tag("shop.login", SELF.shop.login, class='wi-wide') %]</td>
64
        </tr>
65
        <tr>
66
          <th>[% 'Password' | $T8 %]</th>
67
          <td>[% L.input_tag("shop.password", SELF.shop.password, class='wi-wide') %]</td>
68
        </tr>
69
        <tr>
70
          <th>[% 'Last ordernumber' | $T8 %]</th>
71
          <td>[% L.input_tag("shop.last_order_number", SELF.shop.last_order_number, class='wi-small') %]</td>
72
        </tr>
73
        <tr>
74
          <th>[% 'Orders to fetch' | $T8 %]</th>
75
          <td>[% L.input_tag("shop.orders_to_fetch", SELF.shop.orders_to_fetch, class='wi-small') %]</td>
76
        </tr>
77
        <tr>
78
          <th>[% 'Transaction description' | $T8 %]</th>
79
          <td>[% L.input_tag("shop.transaction_description", SELF.shop.transaction_description, class='wi-wide') %]</td>
80
        </tr>
81
        <tr>
82
          <th>[% 'Obsolete' | $T8 %]</th>
83
          <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
84
        </tr>
85
  </tbody>
78 86
</table>
87
</div>
79 88

  
80
 <hr>
81 89

  
82
<script type="text/javascript">
83
<!--
84
function check_prerequisites() {
85
  if ($('#shop_description').val() === "") {
86
    alert(kivi.t8('The name is missing.'));
87
    return false;
88
  }
89
  if ($('#shop_url').val() === "") {
90
    alert(kivi.t8('The URL is missing.'));
91
    return false;
92
  }
93
  if ($('#shop_port').val() === "") {
94
    alert(kivi.t8('The port is missing.'));
95
    return false;
96
  }
90
<script type="text/javascript"><!--
91
  function check_prerequisites() {
92
    if ($('#shop_description').val() === "") {
93
      alert(kivi.t8('The name is missing.'));
94
      return false;
95
    }
96
    if ($('#shop_url').val() === "") {
97
      alert(kivi.t8('The URL is missing.'));
98
      return false;
99
    }
100
    if ($('#shop_port').val() === "") {
101
      alert(kivi.t8('The port is missing.'));
102
      return false;
103
    }
97 104

  
98
  return true;
99
}
100
-->
101
</script>
105
    return true;
106
  }
107
--></script>
102 108
</form>

Auch abrufbar als: Unified diff