Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0f7f50f2

Von Werner Hahn vor mehr als 7 Jahren hinzugefügt

  • ID 0f7f50f20694668ca330e2b8f77e88aa2ec85239
  • Vorgänger 99ffc625
  • Nachfolger ea9af152

Shopmodul: Pflichtfeld Pfad beim Anlegen des Shops. Dropdown ohne
Leerzeile im Formular.

Unterschiede anzeigen:

SL/DB/Shop.pm
18 18
  my @errors;
19 19

  
20 20
  push @errors, $::locale->text('The description is missing.') unless $self->{description};
21
  push @errors, $::locale->text('The path is missing.') unless $self->{path};
21 22

  
22 23
  return @errors;
23 24
}
templates/webpages/shops/form.html
19 19
  </tr>
20 20
  <tr>
21 21
    <th align="right">[% 'Shop type' | $T8 %]</th>
22
    <td>[% L.select_tag('shop.connector', SELF.connectors, value_key = 'id', title_key = 'description', with_empty = 1, default = SELF.shop.connector, default_value_key='id' ) %]</td>
22
    <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>
23 23
  <tr>
24 24
  <tr>
25 25
    <th align="right">[% 'Price type' | $T8 %]</th>
26
    <td>[% L.select_tag('shop.pricetype', SELF.price_types, value_key = 'id', title_key = 'name', with_empty = 1, default = SELF.shop.pricetype, default_value_key='id' ) %]</td>
26
    <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>
27 27
  </tr>
28 28
  <tr>
29 29
    <th align="right">[% 'Price Source' | $T8 %]</th>

Auch abrufbar als: Unified diff