Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6c6a8d01

Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt

  • ID 6c6a8d01a04b14824dd695d71a0ec6a432778f55
  • Vorgänger 15672788
  • Nachfolger f251540d

Erzwungener Layout-Stil: Benutzereinstellung

Desktop, Mobil, automatisch oder aus Mandantenkonfig

Unterschiede anzeigen:

SL/AM.pm
SL::Helper::UserPreferences::DisplayPreferences->new()->get_longdescription_dialog_size_percentage();
}
sub layout_style {
SL::Helper::UserPreferences::DisplayPreferences->new()->get_layout_style();
}
sub save_preferences {
$main::lxdebug->enter_sub();
......
if (exists $form->{longdescription_dialog_size_percentage}) {
SL::Helper::UserPreferences::DisplayPreferences->new()->store_longdescription_dialog_size_percentage($form->{longdescription_dialog_size_percentage})
}
if (exists $form->{layout_style}) {
SL::Helper::UserPreferences::DisplayPreferences->new()->store_layout_style($form->{layout_style})
}
$main::lxdebug->leave_sub();
SL/Helper/UserPreferences/DisplayPreferences.pm
return;
}
if ( !($style eq 'desktop' || $style eq 'mobile') ) {
if ( !($style eq 'desktop' || $style eq 'mobile' || $style eq 'auto') ) {
die "unknown layout style '$style'";
}
bin/mozilla/am.pl
$form->{positions_show_update_button} = AM->positions_show_update_button();
$form->{time_recording_use_duration} = AM->time_recording_use_duration();
$form->{longdescription_dialog_size_percentage} = AM->longdescription_dialog_size_percentage();
$form->{layout_style} = AM->layout_style();
$myconfig{show_form_details} = 1 unless (defined($myconfig{show_form_details}));
$form->{CAN_CHANGE_PASSWORD} = $main::auth->can_change_password();
templates/design40_webpages/am/config.html
<th>[% 'Language' | $T8 %]</th>
<td>[% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name', class='wi-lightwide') %]</td>
</tr>
<tr>
<th>[% 'Forced Layout Style' | $T8 %]</th>
<td>
[% L.select_tag('layout_style', [['', LxERP.t8('Use settings from client configuration')], ['auto', LxERP.t8('Automatic')], ['mobile', LxERP.t8('mobile version')], ['desktop', LxERP.t8('desktop version')]], default=layout_style, with_empty=0, class='wi-lightwide') %]
</td>
</tr>
<tr>
<th>[% 'Stylesheet' | $T8 %]</th>
<td>[% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name', class='wi-lightwide') %]</td>
templates/design40_webpages/client_config/_features.html
<tr><th class="caption">[% 'Forced Layout Style' | $T8 %]</th></tr>
<tr>
<th>[% 'Force a layout style' | $T8 %]</th>
<td>[% L.select_tag('defaults.layout_style', [['', LxERP.t8('Automatic')], ['mobile', LxERP.t8('mobile version')], ['desktop', LxERP.t8('desktop version')]], default=SELF.defaults.layout_style, with_empty=0, style="width: 200px") %]</td>
<td>[% L.select_tag('defaults.layout_style', [['', LxERP.t8('Automatic')], ['mobile', LxERP.t8('mobile version')], ['desktop', LxERP.t8('desktop version')]], default=SELF.defaults.layout_style, with_empty=0) %]</td>
<td class="long-desc">[% 'The layout style normally is choosen by the user agent string the browser sends. Here you can force the desktop or mobile version. Users can override this setting in their user preferences.' | $T8 %]</td>
</tr>
</tbody>
templates/webpages/am/config.html
</td>
</tr>
<tr>
<th align="right">[% 'Forced Layout Style' | $T8 %]</th>
<td>
[% L.select_tag('layout_style', [['', LxERP.t8('Use settings from client configuration')], ['auto', LxERP.t8('Automatic')], ['mobile', LxERP.t8('mobile version')], ['desktop', LxERP.t8('desktop version')]], default=layout_style, with_empty=0) %]
</td>
</tr>
<tr>
<th align="right">[% 'Stylesheet' | $T8 %]</th>
<td>

Auch abrufbar als: Unified diff