Revision 5b64d6fc
Von Moritz Bunkus vor mehr als 15 Jahren hinzugefügt
bin/mozilla/amcvar.pl | ||
---|---|---|
36 | 36 |
use SL::Form; |
37 | 37 |
|
38 | 38 |
use Data::Dumper; |
39 |
use List::MoreUtils qw(any); |
|
39 | 40 |
|
40 | 41 |
1; |
41 | 42 |
|
... | ... | |
54 | 55 |
|
55 | 56 |
our @types = qw(text textfield number date bool select); # timestamp |
56 | 57 |
|
58 |
our @modules = ({ module => 'CT', description => $locale->text('Customers and vendors') }, |
|
59 |
{ module => 'IC', description => $locale->text('Parts, services and assemblies') }, |
|
60 |
{ module => 'Projects', description => $locale->text('Projects') }, |
|
61 |
); |
|
62 |
|
|
57 | 63 |
sub add { |
58 | 64 |
add_cvar_config(); |
59 | 65 |
} |
... | ... | |
62 | 68 |
edit_cvar_config(); |
63 | 69 |
} |
64 | 70 |
|
71 |
sub _is_valid_module { |
|
72 |
my $module = shift; |
|
73 |
|
|
74 |
return any { $_->{module} eq $module } @modules; |
|
75 |
} |
|
76 |
|
|
65 | 77 |
sub list_cvar_configs { |
66 | 78 |
$lxdebug->enter_sub(); |
67 | 79 |
|
68 | 80 |
$auth->assert('config'); |
69 | 81 |
|
70 |
$form->{module} ||= $form->{cvar_module}; |
|
82 |
$form->{module} = $form->{module} || $form->{cvar_module} || 'CT'; |
|
83 |
$form->{module} = 'CT' unless _is_valid_module($form->{module}); |
|
71 | 84 |
|
72 |
my @configs = grep { $_->{module} eq $form->{module} } @{ CVar->get_configs() };
|
|
85 |
my @configs = @{ CVar->get_configs(module => $form->{module}) };
|
|
73 | 86 |
|
74 | 87 |
my $previous_config; |
75 | 88 |
|
... | ... | |
86 | 99 |
|
87 | 100 |
$form->{title} = $locale->text('List of custom variables'); |
88 | 101 |
$form->header(); |
89 |
print $form->parse_html_template('amcvar/list_cvar_configs', { 'CONFIGS' => \@configs }); |
|
102 |
print $form->parse_html_template('amcvar/list_cvar_configs', { CONFIGS => \@configs, |
|
103 |
MODULES => \@modules }); |
|
104 |
|
|
105 |
$main::lxdebug->dump(0, "modules", \@modules); |
|
90 | 106 |
|
91 | 107 |
$lxdebug->leave_sub(); |
92 | 108 |
} |
... | ... | |
96 | 112 |
|
97 | 113 |
$auth->assert('config'); |
98 | 114 |
|
99 |
$form->{module} ||= $form->{cvar_module};
|
|
115 |
$form->{module} = $form->{module} || $form->{cvar_module} || 'CT';
|
|
100 | 116 |
|
101 | 117 |
$form->{edit} = 0; |
102 | 118 |
display_cvar_config_form(); |
... | ... | |
176 | 192 |
$form->{title} = $form->{edit} ? $locale->text("Edit custom variable") : $locale->text("Add custom variable"); |
177 | 193 |
|
178 | 194 |
$form->header(); |
179 |
print $form->parse_html_template("amcvar/display_cvar_config_form", { 'TYPES' => \@types }); |
|
195 |
print $form->parse_html_template("amcvar/display_cvar_config_form", { TYPES => \@types, |
|
196 |
MODULES => \@modules }); |
|
180 | 197 |
|
181 | 198 |
$lxdebug->leave_sub(); |
182 | 199 |
} |
... | ... | |
191 | 208 |
$lxdebug->leave_sub(); |
192 | 209 |
} |
193 | 210 |
|
211 |
sub dispatcher { |
|
212 |
foreach my $action (qw(list_cvar_configs add_cvar_config)) { |
|
213 |
if ($form->{"action_${action}"}) { |
|
214 |
call_sub($action); |
|
215 |
return; |
|
216 |
} |
|
217 |
} |
|
218 |
|
|
219 |
$form->error($locale->text('No action defined.')); |
|
220 |
} |
|
221 |
|
|
194 | 222 |
1; |
locale/de/all | ||
---|---|---|
102 | 102 |
'Active?' => 'Aktiviert?', |
103 | 103 |
'Add' => 'Erfassen', |
104 | 104 |
'Add ' => 'Hinzuf?gen', |
105 |
'Add (Customers and Vendors)' => 'Erfassen (Kunden und Lieferanten)', |
|
106 |
'Add (Parts, services, assemblies)' => 'Erfassen (Waren, Dienstleistungen, Erzeugnisse)', |
|
107 |
'Add (Projects)' => 'Erfassen (Projekte)', |
|
108 | 105 |
'Add AP Transaction' => 'Kreditorenbuchung', |
109 | 106 |
'Add AR Transaction' => 'Debitorenbuchung', |
110 | 107 |
'Add Account' => 'Konto erfassen', |
... | ... | |
427 | 424 |
'Current unit' => 'Aktuelle Einheit', |
428 | 425 |
'Current value:' => 'Aktueller Wert:', |
429 | 426 |
'Custom Variables' => 'Benutzerdefinierte Variablen', |
427 |
'Custom variables for module' => 'Benutzerdefinierte Variablen f?r Modul', |
|
430 | 428 |
'Customer' => 'Kunde', |
431 | 429 |
'Customer Number' => 'Kundennummer', |
432 | 430 |
'Customer Order Number' => 'Bestellnummer des Kunden', |
... | ... | |
890 | 888 |
'Limit part selection' => 'Artikelauswahl eingrenzen', |
891 | 889 |
'Line Total' => 'Zeilensumme', |
892 | 890 |
'Line endings' => 'Zeilenumbrüche', |
893 |
'List (Customers and Vendors)' => 'Auflisten (Kunden und Lieferanten)', |
|
894 |
'List (Parts, services, assemblies)' => 'Auflisten (Waren, Dienstleistungen, Erzeugnisse)', |
|
895 |
'List (Projects)' => 'Auflisten (Projekte)', |
|
891 |
'List' => 'Anzeigen', |
|
896 | 892 |
'List Accounting Groups' => 'Buchungsgruppen anzeigen', |
897 | 893 |
'List Accounts' => 'Konten anzeigen', |
898 | 894 |
'List Businesses' => 'Kunden-/Lieferantentypen anzeigen', |
locale/de/amcvar | ||
---|---|---|
48 | 48 |
'Credit Note' => 'Gutschrift', |
49 | 49 |
'Customer Number' => 'Kundennummer', |
50 | 50 |
'Customer details' => 'Kundendetails', |
51 |
'Customers and vendors' => 'Kunden und Lieferanten', |
|
51 | 52 |
'DATEV Export' => 'DATEV-Export', |
52 | 53 |
'DELETED' => 'Gel?scht', |
53 | 54 |
'DR' => 'S', |
... | ... | |
85 | 86 |
'No %s was found matching the search parameters.' => 'Es wurde kein %s gefunden, auf den die Suchparameter zutreffen.', |
86 | 87 |
'No Customer was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Endkunde gefunden', |
87 | 88 |
'No Vendor was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein H?ndler gefunden', |
89 |
'No action defined.' => 'Keine Aktion definiert.', |
|
88 | 90 |
'No customer has been selected yet.' => 'Es wurde noch kein Kunde ausgew?hlt.', |
89 | 91 |
'No or an unknown authenticantion module specified in "config/authentication.pl".' => 'Es wurde kein oder ein unbekanntes Authentifizierungsmodul in "config/authentication.pl" angegeben.', |
90 | 92 |
'No part was found matching the search parameters.' => 'Es wurde kein Artikel gefunden, auf den die Suchparameter zutreffen.', |
... | ... | |
98 | 100 |
'Packing List' => 'Lieferschein', |
99 | 101 |
'Part Number' => 'Artikelnummer', |
100 | 102 |
'Part description' => 'Artikelbeschreibung', |
103 |
'Parts, services and assemblies' => 'Waren, Dienstleistungen und Erzeugnisse', |
|
101 | 104 |
'Pick List' => 'Sammelliste', |
102 | 105 |
'Please enter values' => 'Bitte Werte eingeben', |
103 | 106 |
'Preview' => 'Druckvorschau', |
104 | 107 |
'Proforma Invoice' => 'Proformarechnung', |
108 |
'Projects' => 'Projekte', |
|
105 | 109 |
'Purchase Order' => 'Lieferantenauftrag', |
106 | 110 |
'Quotation' => 'Angebot', |
107 | 111 |
'RFQ' => 'Anfrage', |
... | ... | |
173 | 177 |
'H' => 'H', |
174 | 178 |
'NTI' => 'NTI', |
175 | 179 |
'Q' => 'Q', |
180 |
'_is_valid_module' => '_is_valid_module', |
|
176 | 181 |
'add' => 'add', |
177 | 182 |
'add_cvar_config' => 'add_cvar_config', |
178 | 183 |
'ap_transaction' => 'ap_transaction', |
... | ... | |
183 | 188 |
'cov_selection_internal' => 'cov_selection_internal', |
184 | 189 |
'delete' => 'delete', |
185 | 190 |
'delivery_customer_selection' => 'delivery_customer_selection', |
191 |
'dispatcher' => 'dispatcher', |
|
186 | 192 |
'display_cvar_config_form' => 'display_cvar_config_form', |
187 | 193 |
'edit' => 'edit', |
188 | 194 |
'edit_cvar_config' => 'edit_cvar_config', |
... | ... | |
209 | 215 |
'l?schen' => 'delete', |
210 | 216 |
'neue_ware' => 'new_part', |
211 | 217 |
'speichern' => 'save', |
218 |
'zeigen' => 'show', |
|
212 | 219 |
}; |
213 | 220 |
|
214 | 221 |
1; |
locale/de/menu | ||
---|---|---|
7 | 7 |
'AR' => 'Verkauf', |
8 | 8 |
'AR Aging' => 'Offene Forderungen', |
9 | 9 |
'Accounting Menu' => 'Kontoverwaltung', |
10 |
'Add (Customers and Vendors)' => 'Erfassen (Kunden und Lieferanten)', |
|
11 |
'Add (Parts, services, assemblies)' => 'Erfassen (Waren, Dienstleistungen, Erzeugnisse)', |
|
12 |
'Add (Projects)' => 'Erfassen (Projekte)', |
|
10 |
'Add' => 'Erfassen', |
|
13 | 11 |
'Add AP Transaction' => 'Kreditorenbuchung', |
14 | 12 |
'Add AR Transaction' => 'Debitorenbuchung', |
15 | 13 |
'Add Account' => 'Konto erfassen', |
... | ... | |
119 | 117 |
'Languages' => 'Sprachen', |
120 | 118 |
'Lead' => 'Kundenquelle', |
121 | 119 |
'Licenses' => 'Lizenzen', |
122 |
'List (Customers and Vendors)' => 'Auflisten (Kunden und Lieferanten)', |
|
123 |
'List (Parts, services, assemblies)' => 'Auflisten (Waren, Dienstleistungen, Erzeugnisse)', |
|
124 |
'List (Projects)' => 'Auflisten (Projekte)', |
|
120 |
'List' => 'Anzeigen', |
|
125 | 121 |
'List Accounting Groups' => 'Buchungsgruppen anzeigen', |
126 | 122 |
'List Accounts' => 'Konten anzeigen', |
127 | 123 |
'List Businesses' => 'Kunden-/Lieferantentypen anzeigen', |
locale/de/menunew | ||
---|---|---|
6 | 6 |
'AP Aging' => 'Offene Verbindlichkeiten', |
7 | 7 |
'AR' => 'Verkauf', |
8 | 8 |
'AR Aging' => 'Offene Forderungen', |
9 |
'Add (Customers and Vendors)' => 'Erfassen (Kunden und Lieferanten)', |
|
10 |
'Add (Parts, services, assemblies)' => 'Erfassen (Waren, Dienstleistungen, Erzeugnisse)', |
|
11 |
'Add (Projects)' => 'Erfassen (Projekte)', |
|
9 |
'Add' => 'Erfassen', |
|
12 | 10 |
'Add AP Transaction' => 'Kreditorenbuchung', |
13 | 11 |
'Add AR Transaction' => 'Debitorenbuchung', |
14 | 12 |
'Add Account' => 'Konto erfassen', |
... | ... | |
118 | 116 |
'Languages' => 'Sprachen', |
119 | 117 |
'Lead' => 'Kundenquelle', |
120 | 118 |
'Licenses' => 'Lizenzen', |
121 |
'List (Customers and Vendors)' => 'Auflisten (Kunden und Lieferanten)', |
|
122 |
'List (Parts, services, assemblies)' => 'Auflisten (Waren, Dienstleistungen, Erzeugnisse)', |
|
123 |
'List (Projects)' => 'Auflisten (Projekte)', |
|
119 |
'List' => 'Anzeigen', |
|
124 | 120 |
'List Accounting Groups' => 'Buchungsgruppen anzeigen', |
125 | 121 |
'List Accounts' => 'Konten anzeigen', |
126 | 122 |
'List Businesses' => 'Kunden-/Lieferantentypen anzeigen', |
menu.ini | ||
---|---|---|
681 | 681 |
target=acc_menu |
682 | 682 |
submenu=1 |
683 | 683 |
|
684 |
[System--Custom Variables--Add (Customers and Vendors)]
|
|
684 |
[System--Custom Variables--Add] |
|
685 | 685 |
module=amcvar.pl |
686 | 686 |
action=add_cvar_config |
687 |
cvar_module=CT |
|
688 | 687 |
|
689 |
[System--Custom Variables--List (Customers and Vendors)]
|
|
688 |
[System--Custom Variables--List] |
|
690 | 689 |
module=amcvar.pl |
691 | 690 |
action=list_cvar_configs |
692 |
cvar_module=CT |
|
693 |
|
|
694 |
[System--Custom Variables--Add (Parts, services, assemblies)] |
|
695 |
module=amcvar.pl |
|
696 |
action=add_cvar_config |
|
697 |
cvar_module=IC |
|
698 |
|
|
699 |
[System--Custom Variables--List (Parts, services, assemblies)] |
|
700 |
module=amcvar.pl |
|
701 |
action=list_cvar_configs |
|
702 |
cvar_module=IC |
|
703 |
|
|
704 |
[System--Custom Variables--Add (Projects)] |
|
705 |
module=amcvar.pl |
|
706 |
action=add_cvar_config |
|
707 |
cvar_module=Projects |
|
708 |
|
|
709 |
[System--Custom Variables--List (Projects)] |
|
710 |
module=amcvar.pl |
|
711 |
action=list_cvar_configs |
|
712 |
cvar_module=Projects |
|
713 | 691 |
|
714 | 692 |
[System--Warehouses] |
715 | 693 |
module=menu.pl |
templates/webpages/amcvar/display_cvar_config_form_de.html | ||
---|---|---|
15 | 15 |
<tr> |
16 | 16 |
<td align="right">Modul</td> |
17 | 17 |
<td> |
18 |
[%- IF module == 'CT' %] |
|
19 |
Kunden und Lieferanten |
|
20 |
[%- ELSIF module == 'Projects' %] |
|
21 |
Projekte |
|
22 |
[%- ELSIF module == 'IC' %] |
|
23 |
Waren, Dienstleistungen und Erzeugnisse |
|
24 |
[%- END %] |
|
18 |
[%- INCLUDE generic/multibox.html |
|
19 |
name = 'module', |
|
20 |
id_key = 'module', |
|
21 |
label_key = 'description', |
|
22 |
DATA = MODULES %] |
|
25 | 23 |
</td> |
26 | 24 |
</tr> |
27 | 25 |
|
... | ... | |
91 | 89 |
</table> |
92 | 90 |
</p> |
93 | 91 |
|
94 |
<input type="hidden" name="module" value="[% HTML.escape(module) %]"> |
|
95 |
<input type="hidden" name="id" value="[% HTML.escape(id) %]"> |
|
92 |
<input type="hidden" name="id" value="[% HTML.escape(id) %]"> |
|
96 | 93 |
|
97 | 94 |
<p> |
98 | 95 |
<input type="submit" name="action" value="Speichern"> |
templates/webpages/amcvar/display_cvar_config_form_master.html | ||
---|---|---|
15 | 15 |
<tr> |
16 | 16 |
<td align="right"><translate>Module</translate></td> |
17 | 17 |
<td> |
18 |
[%- IF module == 'CT' %] |
|
19 |
<translate>Customers and vendors</translate> |
|
20 |
[%- ELSIF module == 'Projects' %] |
|
21 |
<translate>Projects</translate> |
|
22 |
[%- ELSIF module == 'IC' %] |
|
23 |
<translate>Parts, services and assemblies</translate> |
|
24 |
[%- END %] |
|
18 |
[%- INCLUDE generic/multibox.html |
|
19 |
name = 'module', |
|
20 |
id_key = 'module', |
|
21 |
label_key = 'description', |
|
22 |
DATA = MODULES %] |
|
25 | 23 |
</td> |
26 | 24 |
</tr> |
27 | 25 |
|
... | ... | |
91 | 89 |
</table> |
92 | 90 |
</p> |
93 | 91 |
|
94 |
<input type="hidden" name="module" value="[% HTML.escape(module) %]"> |
|
95 |
<input type="hidden" name="id" value="[% HTML.escape(id) %]"> |
|
92 |
<input type="hidden" name="id" value="[% HTML.escape(id) %]"> |
|
96 | 93 |
|
97 | 94 |
<p> |
98 | 95 |
<input type="submit" name="action" value="<translate>Save</translate>"> |
templates/webpages/amcvar/list_cvar_configs_de.html | ||
---|---|---|
4 | 4 |
|
5 | 5 |
<div class="listtop">[% title %]</div> |
6 | 6 |
|
7 |
<p> |
|
8 |
<table width="100%"> |
|
9 |
<tr> |
|
10 |
<td class="listheading" width="0%"></td> |
|
11 |
<td class="listheading" width="0%"></td> |
|
12 |
<td class="listheading" width="20%">Name</td> |
|
13 |
<td class="listheading" width="20%">Beschreibung</td> |
|
14 |
<td class="listheading" width="20%">Typ</td> |
|
15 |
<td class="listheading" width="20%">Durchsuchbar</td> |
|
16 |
<td class="listheading" width="20%">In Berichten anzeigbar</td> |
|
17 |
[%- IF module == 'IC' %] |
|
18 |
<td class="listheading" width="20%">Bearbeitbar</td> |
|
19 |
[%- END %] |
|
20 |
</tr> |
|
7 |
<form method="post" action="amcvar.pl"> |
|
8 |
<input type="hidden" name="action" value="dispatcher"> |
|
9 |
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"> |
|
21 | 10 |
|
22 |
[%- FOREACH cfg = CONFIGS %] |
|
23 |
<tr class="listrow[% loop.count % 2 %]"> |
|
24 |
<td> |
|
25 |
[%- IF cfg.previous_id %] |
|
26 |
<a href="amcvar.pl?action=swap_cvar_configs&module=[% HTML.url(module) %]&id1=[% HTML.url(cfg.previous_id) %]&id2=[% HTML.url(cfg.id) %]"> |
|
27 |
<img border="0" src="image/up.png"></a> |
|
28 |
[%- END %] |
|
29 |
</td> |
|
11 |
<p> |
|
12 |
Benutzerdefinierte Variablen f?r Modul |
|
13 |
[%- INCLUDE generic/multibox.html |
|
14 |
name = 'module', |
|
15 |
id_key = 'module', |
|
16 |
label_key = 'description', |
|
17 |
DATA = MODULES %] |
|
18 |
<input type="submit" class="submit" name="action_list_cvar_configs" value="Zeigen"> |
|
19 |
</p> |
|
30 | 20 |
|
31 |
<td> |
|
32 |
[%- IF cfg.next_id %] |
|
33 |
<a href="amcvar.pl?action=swap_cvar_configs&module=[% HTML.url(module) %]&id1=[% HTML.url(cfg.next_id) %]&id2=[% HTML.url(cfg.id) %]"> |
|
34 |
<img border="0" src="image/down.png"></a> |
|
21 |
<p> |
|
22 |
<table width="100%"> |
|
23 |
<tr> |
|
24 |
<td class="listheading" width="0%"></td> |
|
25 |
<td class="listheading" width="0%"></td> |
|
26 |
<td class="listheading" width="20%">Name</td> |
|
27 |
<td class="listheading" width="20%">Beschreibung</td> |
|
28 |
<td class="listheading" width="20%">Typ</td> |
|
29 |
<td class="listheading" width="20%">Durchsuchbar</td> |
|
30 |
<td class="listheading" width="20%">In Berichten anzeigbar</td> |
|
31 |
[%- IF module == 'IC' %] |
|
32 |
<td class="listheading" width="20%">Bearbeitbar</td> |
|
35 | 33 |
[%- END %] |
36 |
</td>
|
|
34 |
</tr>
|
|
37 | 35 |
|
38 |
<td> |
|
39 |
<a href="amcvar.pl?action=edit_cvar_config&module=[% HTML.url(module) %]&id=[% HTML.url(cfg.id) %]&callback=[% HTML.url(callback) %]"> |
|
40 |
[% HTML.escape(cfg.name) %] |
|
41 |
</a> |
|
42 |
</td> |
|
36 |
[%- FOREACH cfg = CONFIGS %] |
|
37 |
<tr class="listrow[% loop.count % 2 %]"> |
|
38 |
<td> |
|
39 |
[%- IF cfg.previous_id %] |
|
40 |
<a href="amcvar.pl?action=swap_cvar_configs&module=[% HTML.url(module) %]&id1=[% HTML.url(cfg.previous_id) %]&id2=[% HTML.url(cfg.id) %]"> |
|
41 |
<img border="0" src="image/up.png"></a> |
|
42 |
[%- END %] |
|
43 |
</td> |
|
43 | 44 |
|
44 |
<td>[% HTML.escape(cfg.description) %]</td> |
|
45 |
<td>[% HTML.escape(cfg.type_tr) %]</td> |
|
45 |
<td> |
|
46 |
[%- IF cfg.next_id %] |
|
47 |
<a href="amcvar.pl?action=swap_cvar_configs&module=[% HTML.url(module) %]&id1=[% HTML.url(cfg.next_id) %]&id2=[% HTML.url(cfg.id) %]"> |
|
48 |
<img border="0" src="image/down.png"></a> |
|
49 |
[%- END %] |
|
50 |
</td> |
|
46 | 51 |
|
47 |
<td> |
|
48 |
[%- IF cfg.searchable %] |
|
49 |
Ja |
|
50 |
[%- ELSE %] |
|
51 |
Nein |
|
52 |
[%- END %] |
|
53 |
</td> |
|
52 |
<td> |
|
53 |
<a href="amcvar.pl?action=edit_cvar_config&module=[% HTML.url(module) %]&id=[% HTML.url(cfg.id) %]&callback=[% HTML.url(callback) %]"> |
|
54 |
[% HTML.escape(cfg.name) %] |
|
55 |
</a> |
|
56 |
</td> |
|
54 | 57 |
|
55 |
<td> |
|
56 |
[%- IF cfg.included_by_default %] |
|
57 |
Ja, standardmäßig an |
|
58 |
[%- ELSIF cfg.includeable %] |
|
59 |
Ja |
|
60 |
[%- ELSE %] |
|
61 |
Nein |
|
62 |
[%- END %] |
|
63 |
</td> |
|
58 |
<td>[% HTML.escape(cfg.description) %]</td> |
|
59 |
<td>[% HTML.escape(cfg.type_tr) %]</td> |
|
64 | 60 |
|
65 |
[%- IF module == 'IC' %] |
|
66 |
<td> |
|
67 |
[%- IF cfg.flag_editable %] |
|
68 |
Ja |
|
69 |
[%- ELSE %] |
|
70 |
Nein |
|
61 |
<td> |
|
62 |
[%- IF cfg.searchable %] |
|
63 |
Ja |
|
64 |
[%- ELSE %] |
|
65 |
Nein |
|
66 |
[%- END %] |
|
67 |
</td> |
|
68 |
|
|
69 |
<td> |
|
70 |
[%- IF cfg.included_by_default %] |
|
71 |
Ja, standardmäßig an |
|
72 |
[%- ELSIF cfg.includeable %] |
|
73 |
Ja |
|
74 |
[%- ELSE %] |
|
75 |
Nein |
|
76 |
[%- END %] |
|
77 |
</td> |
|
78 |
|
|
79 |
[%- IF module == 'IC' %] |
|
80 |
<td> |
|
81 |
[%- IF cfg.flag_editable %] |
|
82 |
Ja |
|
83 |
[%- ELSE %] |
|
84 |
Nein |
|
85 |
[%- END %] |
|
86 |
</td> |
|
71 | 87 |
[%- END %] |
72 |
</td>
|
|
88 |
</tr>
|
|
73 | 89 |
[%- END %] |
74 |
</tr> |
|
75 |
[%- END %] |
|
76 |
</table> |
|
77 |
</p> |
|
78 |
|
|
79 |
<hr height="3"> |
|
90 |
</table> |
|
91 |
</p> |
|
80 | 92 |
|
81 |
<p> |
|
82 |
<form method="post" action="amcvar.pl"> |
|
83 |
<input type="hidden" name="add_nextsub" value="add_cvar_config"> |
|
84 |
<input type="hidden" name="module" value="[% HTML.escape(module) %]"> |
|
85 |
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"> |
|
93 |
<hr height="3"> |
|
86 | 94 |
|
87 |
<input type="submit" class="submit" name="action" value="Erfassen"> |
|
88 |
</form> |
|
89 |
</p> |
|
95 |
<p> |
|
96 |
<input type="submit" class="submit" name="action_add_cvar_config" value="Erfassen"> |
|
97 |
</p> |
|
98 |
</form> |
|
90 | 99 |
|
91 | 100 |
</body> |
92 | 101 |
</html> |
templates/webpages/amcvar/list_cvar_configs_master.html | ||
---|---|---|
4 | 4 |
|
5 | 5 |
<div class="listtop">[% title %]</div> |
6 | 6 |
|
7 |
<p> |
|
8 |
<table width="100%"> |
|
9 |
<tr> |
|
10 |
<td class="listheading" width="0%"></td> |
|
11 |
<td class="listheading" width="0%"></td> |
|
12 |
<td class="listheading" width="20%"><translate>Name</translate></td> |
|
13 |
<td class="listheading" width="20%"><translate>Description</translate></td> |
|
14 |
<td class="listheading" width="20%"><translate>Type</translate></td> |
|
15 |
<td class="listheading" width="20%"><translate>Searchable</translate></td> |
|
16 |
<td class="listheading" width="20%"><translate>Includeable in reports</translate></td> |
|
17 |
[%- IF module == 'IC' %] |
|
18 |
<td class="listheading" width="20%"><translate>Editable</translate></td> |
|
19 |
[%- END %] |
|
20 |
</tr> |
|
7 |
<form method="post" action="amcvar.pl"> |
|
8 |
<input type="hidden" name="action" value="dispatcher"> |
|
9 |
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"> |
|
21 | 10 |
|
22 |
[%- FOREACH cfg = CONFIGS %] |
|
23 |
<tr class="listrow[% loop.count % 2 %]"> |
|
24 |
<td> |
|
25 |
[%- IF cfg.previous_id %] |
|
26 |
<a href="amcvar.pl?action=swap_cvar_configs&module=[% HTML.url(module) %]&id1=[% HTML.url(cfg.previous_id) %]&id2=[% HTML.url(cfg.id) %]"> |
|
27 |
<img border="0" src="image/up.png"></a> |
|
28 |
[%- END %] |
|
29 |
</td> |
|
11 |
<p> |
|
12 |
<translate>Custom variables for module</translate> |
|
13 |
[%- INCLUDE generic/multibox.html |
|
14 |
name = 'module', |
|
15 |
id_key = 'module', |
|
16 |
label_key = 'description', |
|
17 |
DATA = MODULES %] |
|
18 |
<input type="submit" class="submit" name="action_list_cvar_configs" value="<translate>Show</translate>"> |
|
19 |
</p> |
|
30 | 20 |
|
31 |
<td> |
|
32 |
[%- IF cfg.next_id %] |
|
33 |
<a href="amcvar.pl?action=swap_cvar_configs&module=[% HTML.url(module) %]&id1=[% HTML.url(cfg.next_id) %]&id2=[% HTML.url(cfg.id) %]"> |
|
34 |
<img border="0" src="image/down.png"></a> |
|
21 |
<p> |
|
22 |
<table width="100%"> |
|
23 |
<tr> |
|
24 |
<td class="listheading" width="0%"></td> |
|
25 |
<td class="listheading" width="0%"></td> |
|
26 |
<td class="listheading" width="20%"><translate>Name</translate></td> |
|
27 |
<td class="listheading" width="20%"><translate>Description</translate></td> |
|
28 |
<td class="listheading" width="20%"><translate>Type</translate></td> |
|
29 |
<td class="listheading" width="20%"><translate>Searchable</translate></td> |
|
30 |
<td class="listheading" width="20%"><translate>Includeable in reports</translate></td> |
|
31 |
[%- IF module == 'IC' %] |
|
32 |
<td class="listheading" width="20%"><translate>Editable</translate></td> |
|
35 | 33 |
[%- END %] |
36 |
</td>
|
|
34 |
</tr>
|
|
37 | 35 |
|
38 |
<td> |
|
39 |
<a href="amcvar.pl?action=edit_cvar_config&module=[% HTML.url(module) %]&id=[% HTML.url(cfg.id) %]&callback=[% HTML.url(callback) %]"> |
|
40 |
[% HTML.escape(cfg.name) %] |
|
41 |
</a> |
|
42 |
</td> |
|
36 |
[%- FOREACH cfg = CONFIGS %] |
|
37 |
<tr class="listrow[% loop.count % 2 %]"> |
|
38 |
<td> |
|
39 |
[%- IF cfg.previous_id %] |
|
40 |
<a href="amcvar.pl?action=swap_cvar_configs&module=[% HTML.url(module) %]&id1=[% HTML.url(cfg.previous_id) %]&id2=[% HTML.url(cfg.id) %]"> |
|
41 |
<img border="0" src="image/up.png"></a> |
|
42 |
[%- END %] |
|
43 |
</td> |
|
43 | 44 |
|
44 |
<td>[% HTML.escape(cfg.description) %]</td> |
|
45 |
<td>[% HTML.escape(cfg.type_tr) %]</td> |
|
45 |
<td> |
|
46 |
[%- IF cfg.next_id %] |
|
47 |
<a href="amcvar.pl?action=swap_cvar_configs&module=[% HTML.url(module) %]&id1=[% HTML.url(cfg.next_id) %]&id2=[% HTML.url(cfg.id) %]"> |
|
48 |
<img border="0" src="image/down.png"></a> |
|
49 |
[%- END %] |
|
50 |
</td> |
|
46 | 51 |
|
47 |
<td> |
|
48 |
[%- IF cfg.searchable %] |
|
49 |
<translate>Yes</translate> |
|
50 |
[%- ELSE %] |
|
51 |
<translate>No</translate> |
|
52 |
[%- END %] |
|
53 |
</td> |
|
52 |
<td> |
|
53 |
<a href="amcvar.pl?action=edit_cvar_config&module=[% HTML.url(module) %]&id=[% HTML.url(cfg.id) %]&callback=[% HTML.url(callback) %]"> |
|
54 |
[% HTML.escape(cfg.name) %] |
|
55 |
</a> |
|
56 |
</td> |
|
54 | 57 |
|
55 |
<td> |
|
56 |
[%- IF cfg.included_by_default %] |
|
57 |
<translate>Yes, included by default</translate> |
|
58 |
[%- ELSIF cfg.includeable %] |
|
59 |
<translate>Yes</translate> |
|
60 |
[%- ELSE %] |
|
61 |
<translate>No</translate> |
|
62 |
[%- END %] |
|
63 |
</td> |
|
58 |
<td>[% HTML.escape(cfg.description) %]</td> |
|
59 |
<td>[% HTML.escape(cfg.type_tr) %]</td> |
|
64 | 60 |
|
65 |
[%- IF module == 'IC' %] |
|
66 |
<td> |
|
67 |
[%- IF cfg.flag_editable %] |
|
68 |
<translate>Yes</translate> |
|
69 |
[%- ELSE %] |
|
70 |
<translate>No</translate> |
|
61 |
<td> |
|
62 |
[%- IF cfg.searchable %] |
|
63 |
<translate>Yes</translate> |
|
64 |
[%- ELSE %] |
|
65 |
<translate>No</translate> |
|
66 |
[%- END %] |
|
67 |
</td> |
|
68 |
|
|
69 |
<td> |
|
70 |
[%- IF cfg.included_by_default %] |
|
71 |
<translate>Yes, included by default</translate> |
|
72 |
[%- ELSIF cfg.includeable %] |
|
73 |
<translate>Yes</translate> |
|
74 |
[%- ELSE %] |
|
75 |
<translate>No</translate> |
|
76 |
[%- END %] |
|
77 |
</td> |
|
78 |
|
|
79 |
[%- IF module == 'IC' %] |
|
80 |
<td> |
|
81 |
[%- IF cfg.flag_editable %] |
|
82 |
<translate>Yes</translate> |
|
83 |
[%- ELSE %] |
|
84 |
<translate>No</translate> |
|
85 |
[%- END %] |
|
86 |
</td> |
|
71 | 87 |
[%- END %] |
72 |
</td>
|
|
88 |
</tr>
|
|
73 | 89 |
[%- END %] |
74 |
</tr> |
|
75 |
[%- END %] |
|
76 |
</table> |
|
77 |
</p> |
|
78 |
|
|
79 |
<hr height="3"> |
|
90 |
</table> |
|
91 |
</p> |
|
80 | 92 |
|
81 |
<p> |
|
82 |
<form method="post" action="amcvar.pl"> |
|
83 |
<input type="hidden" name="add_nextsub" value="add_cvar_config"> |
|
84 |
<input type="hidden" name="module" value="[% HTML.escape(module) %]"> |
|
85 |
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"> |
|
93 |
<hr height="3"> |
|
86 | 94 |
|
87 |
<input type="submit" class="submit" name="action" value="<translate>Add</translate>"> |
|
88 |
</form> |
|
89 |
</p> |
|
95 |
<p> |
|
96 |
<input type="submit" class="submit" name="action_add_cvar_config" value="<translate>Add</translate>"> |
|
97 |
</p> |
|
98 |
</form> |
|
90 | 99 |
|
91 | 100 |
</body> |
92 | 101 |
</html> |
Auch abrufbar als: Unified diff
Umstellung der Verwaltung der benutzerdefinierten Variablen zum Sparen von Menüeinträgen.