From 1946734b5881cdcbf2b8f97f2dd40412f24972d0 Mon Sep 17 00:00:00 2001 From: Andy Heathershaw Date: Thu, 6 Oct 2016 15:27:51 +0100 Subject: [PATCH] resolves #15: switched the order of the dashboard widgets for xs devices. Made the system info table more responsive on xs devices. --- public/themes/bootstrap3/theme.css | 5 + .../views/themes/base/admin/index.blade.php | 10 +- .../themes/base/admin/settings.blade.php | 285 +++++++++--------- .../partials/admin_sysinfo_widget.blade.php | 2 +- .../themes/base/partials/navbar.blade.php | 4 +- 5 files changed, 154 insertions(+), 152 deletions(-) diff --git a/public/themes/bootstrap3/theme.css b/public/themes/bootstrap3/theme.css index a0965d5..94c8842 100644 --- a/public/themes/bootstrap3/theme.css +++ b/public/themes/bootstrap3/theme.css @@ -70,6 +70,11 @@ ol.breadcrumb { font-weight: bold; } +#system-info { + table-layout: fixed; + word-wrap: break-word; +} + #system-info .meta-label { width: 30%; diff --git a/resources/views/themes/base/admin/index.blade.php b/resources/views/themes/base/admin/index.blade.php index cfa4468..0ebc16c 100644 --- a/resources/views/themes/base/admin/index.blade.php +++ b/resources/views/themes/base/admin/index.blade.php @@ -15,15 +15,15 @@ @section('content')
-
- @include (Theme::viewName('partials.admin_sysinfo_widget')) -
- -
+
@include (Theme::viewName('partials.admin_actions_widget')) @include (Theme::viewName('partials.admin_manage_widget')) @include (Theme::viewName('partials.admin_stats_widget'))
+ +
+ @include (Theme::viewName('partials.admin_sysinfo_widget')) +
@endsection \ No newline at end of file diff --git a/resources/views/themes/base/admin/settings.blade.php b/resources/views/themes/base/admin/settings.blade.php index 7b08fa8..0f99686 100644 --- a/resources/views/themes/base/admin/settings.blade.php +++ b/resources/views/themes/base/admin/settings.blade.php @@ -22,182 +22,181 @@ {!! Form::model($config, ['route' => 'admin.saveSettings', 'method' => 'POST']) !!} -
- {{-- Nav tabs --}} - +
+ {{-- Nav tabs --}} + - {{-- Tab panes --}} -
- {{-- General --}} -
-
- {!! Form::label('app_name', 'Gallery name:', ['class' => 'control-label']) !!} - {!! Form::text('app_name', old('app_name'), ['class' => 'form-control']) !!} -
- -
-
-
- {!! Form::label('date_format', 'Date format:', ['class' => 'control-label']) !!} - {!! Form::select('date_format', $date_formats, old('date_format'), ['class' => 'form-control']) !!} -
-
-
- -
-
-
- {!! Form::label('theme', 'Theme:', ['class' => 'control-label']) !!} - {!! Form::select('theme', $theme_names, old('theme'), ['class' => 'form-control']) !!} -
-
-
- -
-
- "Powered by" footer link -

To help spread the word about Blue Twilight, I'd really appreciate it if you left the "Powered by" notice in your gallery's footer.

-

This is not compulsory, however, and you may remove it by checking the box below.

- -
- -
-
+ {{-- Tab panes --}} +
+ {{-- General --}} +
+
+ {!! Form::label('app_name', 'Gallery name:', ['class' => 'control-label']) !!} + {!! Form::text('app_name', old('app_name'), ['class' => 'form-control']) !!}
- {{-- E-mail --}} -
-
- {!! Form::label('sender_name', 'Sender name:', ['class' => 'control-label']) !!} - {!! Form::text('sender_name', old('sender_name'), ['class' => 'form-control']) !!} +
+
+
+ {!! Form::label('date_format', 'Date format:', ['class' => 'control-label']) !!} + {!! Form::select('date_format', $date_formats, old('date_format'), ['class' => 'form-control']) !!} +
+
-
- {!! Form::label('sender_address', 'Sender address:', ['class' => 'control-label']) !!} - {!! Form::text('sender_address', old('sender_address'), ['class' => 'form-control']) !!} +
+
+
+ {!! Form::label('theme', 'Theme:', ['class' => 'control-label']) !!} + {!! Form::select('theme', $theme_names, old('theme'), ['class' => 'form-control']) !!} +
+
-
+
+
+ "Powered by" footer link +

To help spread the word about Blue Twilight, I'd really appreciate it if you left the "Powered by" notice in your gallery's footer.

+

This is not compulsory, however, and you may remove it by checking the box below.

-

Configure your SMTP server using the settings below. If your server does not require authentication, leave the Username and Password fields empty.

- -
- {!! Form::label('smtp_server', 'Hostname:', ['class' => 'control-label']) !!} - {!! Form::text('smtp_server', old('smtp_server'), ['class' => 'form-control']) !!} -
- -
- {!! Form::label('smtp_port', 'Port:', ['class' => 'control-label']) !!} - {!! Form::text('smtp_port', old('smtp_port'), ['class' => 'form-control']) !!} -
- -
- {!! Form::label('smtp_username', 'Username:', ['class' => 'control-label']) !!} - {!! Form::text('smtp_username', old('smtp_username'), ['class' => 'form-control']) !!} -
- -
- {!! Form::label('smtp_password', 'Password:', ['class' => 'control-label']) !!} - {!! Form::password('smtp_password', ['class' => 'form-control']) !!} -
- -
+
+
+
-
- + {{-- E-mail --}} +
+
+ {!! Form::label('sender_name', 'Sender name:', ['class' => 'control-label']) !!} + {!! Form::text('sender_name', old('sender_name'), ['class' => 'form-control']) !!} +
-
- +
+ {!! Form::label('sender_address', 'Sender address:', ['class' => 'control-label']) !!} + {!! Form::text('sender_address', old('sender_address'), ['class' => 'form-control']) !!} +
- +
+ +

Configure your SMTP server using the settings below. If your server does not require authentication, leave the Username and Password fields empty.

+ +
+ {!! Form::label('smtp_server', 'Hostname:', ['class' => 'control-label']) !!} + {!! Form::text('smtp_server', old('smtp_server'), ['class' => 'form-control']) !!} +
+ +
+ {!! Form::label('smtp_port', 'Port:', ['class' => 'control-label']) !!} + {!! Form::text('smtp_port', old('smtp_port'), ['class' => 'form-control']) !!} +
+ +
+ {!! Form::label('smtp_username', 'Username:', ['class' => 'control-label']) !!} + {!! Form::text('smtp_username', old('smtp_username'), ['class' => 'form-control']) !!} +
+ +
+ {!! Form::label('smtp_password', 'Password:', ['class' => 'control-label']) !!} + {!! Form::password('smtp_password', ['class' => 'form-control']) !!} +
+ +
+ +
+ +
+ + +
+ + +
+
+ + {{-- Security --}} +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ @lang('admin.settings_recaptcha') + +
+ {!! Form::label('recaptcha_site_key', 'Site key:', ['class' => 'control-label']) !!} + {!! Form::text('recaptcha_site_key', old('recaptcha_site_key'), ['class' => 'form-control']) !!} +
+ +
+ {!! Form::label('recaptcha_secret_key', 'Secret key:', ['class' => 'control-label']) !!} + {!! Form::text('recaptcha_secret_key', old('recaptcha_secret_key'), ['class' => 'form-control']) !!} +
+
+ +
+ @lang('admin.settings_image_protection') - {{-- Security --}} -
- -
- -
- -
- @lang('admin.settings_recaptcha') - -
- {!! Form::label('recaptcha_site_key', 'Site key:', ['class' => 'control-label']) !!} - {!! Form::text('recaptcha_site_key', old('recaptcha_site_key'), ['class' => 'form-control']) !!} -
- -
- {!! Form::label('recaptcha_secret_key', 'Secret key:', ['class' => 'control-label']) !!} - {!! Form::text('recaptcha_secret_key', old('recaptcha_secret_key'), ['class' => 'form-control']) !!} -
-
- -
- @lang('admin.settings_image_protection') - -
- -
- -
- -
-
-
+
-
-
+
@lang('forms.cancel_action') {!! Form::submit(trans('admin.settings_save_action'), ['class' => 'btn btn-success']) !!}
+
{!! Form::close() !!}
diff --git a/resources/views/themes/base/partials/admin_sysinfo_widget.blade.php b/resources/views/themes/base/partials/admin_sysinfo_widget.blade.php index ba11d73..167f473 100644 --- a/resources/views/themes/base/partials/admin_sysinfo_widget.blade.php +++ b/resources/views/themes/base/partials/admin_sysinfo_widget.blade.php @@ -1,7 +1,7 @@
@lang('admin.sysinfo_panel')
- +
diff --git a/resources/views/themes/base/partials/navbar.blade.php b/resources/views/themes/base/partials/navbar.blade.php index 3b06e71..7e8c0fd 100644 --- a/resources/views/themes/base/partials/navbar.blade.php +++ b/resources/views/themes/base/partials/navbar.blade.php @@ -26,9 +26,7 @@ @endif @can('admin-access') -
  • @lang('navigation.navbar.admin')
  • - +
  • @lang('navigation.navbar.admin')
  • @endcan
    @lang('admin.sysinfo_widget.app_version')