Man kann nicht zu allen Browsern kompatibel sein. Aber man kann versuchen mit dem kleinsten gemeinsamen Nenner,
hier HTML, einen Kompromiss zu finden. Das erspart vielen Neulingen sinnlosen Ärger.
Vielleicht sollte man die default-Einstellung nicht hardcodieren sondern z.B. in lx-erp.conf einstellbar machen?
$form->{title} = "Lx-Office ERP " . $locale->text('Administration') . " / " . $locale->text('Add User');
+# Note: Menu Style 'v3' is not compatible to all browsers!
+# "menustyle" => "old" sets the HTML Menu to default.
my $myconfig = {
"vclimit" => 200,
"countrycode" => "de",
"numberformat" => "1.000,00",
"dateformat" => "dd.mm.yy",
"stylesheet" => "lx-office-erp.css",
- "menustyle" => "v3",
+ "menustyle" => "old",
};
edit_user_form($myconfig);
<th align="right">[% 'Setup Menu' | $T8 %]</th>
<td>
<select name="menustyle">
+ <option value="old"[% IF menustyle_old %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
<option value="v3"[% IF menustyle_v3 %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
<option value="v4"[% IF menustyle_v4 %] selected[% END %]>[% 'Top (CSS) new' | $T8 %]</option>
<option value="neu"[% IF menustyle_neu %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
<option value="xml"[% IF menustyle_xml %] selected[% END %]>[% 'Top (XUL; only for Mozilla Firefox)' | $T8 %]</option>
- <option value="old"[% IF menustyle_old %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
</select>
</td>
</tr>
<th align="right">[% 'Setup Menu' | $T8 %]</th>
<td>
<select name="menustyle">
+ <option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
<option value="v3"[% IF myconfig_menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
<option value="v4"[% IF myconfig_menustyle == 'v4' %] selected[% END %]>[% 'Top (CSS) new' | $T8 %]</option>
<option value="neu"[% IF myconfig_menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
<option value="xml"[% IF myconfig_menustyle == 'xml' %] selected[% END %]>[% 'Top (XUL; only for Mozilla Firefox)' | $T8 %]</option>
- <option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
</select>
</td>
</tr>