Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5878b90c

Von Werner Hahn vor mehr als 6 Jahren hinzugefügt

  • ID 5878b90c0b0b1caa84de692c39fdac9b01a9b103
  • Vorgänger 3c7d9283
  • Nachfolger 56b2b81c

Shopmodul: ActionBar, automatische Prüfung der Shopverbindung beim
speichern
Zusätzliche Felder in der Shopconfig für Pfad, Realm und Protokoll

Unterschiede anzeigen:

templates/webpages/shops/form.html
6 6

  
7 7
<h1>[% HTML.escape(title) %]</h1>
8 8
[% #Dumper.dump_html(SELF.shop) %]
9
<form action="controller.pl" method="post">
9
<form id="form" action="controller.pl" method="post">
10 10

  
11 11
[%- INCLUDE 'common/flash.html' %]
12 12

  
......
34 34
    <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>
35 35
  </tr>
36 36
  <tr>
37
    <th align="right">[% 'URL' | $T8 %]</th>
38
    <td>[%- L.input_tag("shop.url", SELF.shop.url, size=size) %]</td>
37
    <th align="right">[% 'Protocol' | $T8 %]</th>
38
    <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>
39
  </tr>
40
  <tr>
41
    <th align="right">[% 'Server' | $T8 %]</th>
42
    <td>[%- L.input_tag("shop.server", SELF.shop.server, size=size) %]</td>
39 43
  </tr>
40 44
  <tr>
41 45
    <th align="right">[% 'Port' | $T8 %]</th>
42 46
    <td>[%- L.input_tag("shop.port", SELF.shop.port, size=5) %]</td>
43
   <tr>
47
  </tr>
48
  <tr>
49
    <th align="right">[% 'Path' | $T8 %]</th>
50
    <td>[%- L.input_tag("shop.path", SELF.shop.path, size=size) %]</td>
51
  </tr>
52
  <tr>
53
    <th align="right">[% 'Realm' | $T8 %]</th>
54
    <td>[%- L.input_tag("shop.realm", SELF.shop.realm, size=size) %]</td>
55
  </tr>
56
  <tr>
44 57
    <th align="right">[% 'User' | $T8 %]</th>
45
    <td>[%- L.input_tag("shop.login", SELF.shop.login, size=12) %]</td>
58
    <td>[%- L.input_tag("shop.login", SELF.shop.login, size=size) %]</td>
46 59
  </tr>
47 60
  <tr>
48 61
    <th align="right">[% 'Password' | $T8 %]</th>
49
    <td>[%- L.input_tag("shop.password", SELF.shop.password, size=12) %]</td>
62
    <td>[%- L.input_tag("shop.password", SELF.shop.password, size=size) %]</td>
50 63
  </tr>
51 64
  <tr>
52 65
    <th align="right">[% 'Last ordernumber' | $T8 %]</th>
......
62 75
  </tr>
63 76
</table>
64 77

  
65
 <p>
66
  [% L.hidden_tag("action", "Shop/dispatch") %]
67
  [% L.submit_tag("action_" _  (SELF.shop.id ? "update" : "create"), LxERP.t8('Save'), onclick="return check_prerequisites();") %]
68
  [%- IF SELF.shop.id -%]
69
    [% L.submit_tag("action_delete", LxERP.t8('Delete')) %]
70
  [%- END %]
71
  <a href="[% SELF.url_for(action='list') %]">[%- LxERP.t8("Cancel") %]</a>
72
 </p>
73

  
74 78
 <hr>
75
 <table>
76
  <tr>
77
    <th align="right">[% 'Description' | $T8 %]</th>
78
    <th>Last update</th>
79
    <th>[% 'Available qty' | $T8 %]</th>
80
  </tr>
81
 [%- FOREACH shop_part = SELF.shop.updatable_parts %]
82
  <tr>
83
   <td>[% P.part(shop_part.part) %]</td>
84
   <td>[% shop_part.last_update.to_kivitendo %]</td>
85
   <td>[% shop_part.part.get_stock %]</td>
86
  </tr>
87
 [%- END %]
88
 </table>
89

  
90 79

  
91 80
<script type="text/javascript">
92 81
<!--

Auch abrufbar als: Unified diff