diff --git a/resources/views/themes/base/admin/settings.blade.php b/resources/views/themes/base/admin/settings.blade.php index 73f0cca..f8ad169 100644 --- a/resources/views/themes/base/admin/settings.blade.php +++ b/resources/views/themes/base/admin/settings.blade.php @@ -14,194 +14,268 @@

@yield('title')

@lang('admin.settings_intro')

- {!! Form::model($config, ['route' => 'admin.saveSettings', 'method' => 'POST']) !!} +
+ {{ csrf_field() }} +
+ {{-- Nav tabs --}} + -
- {{-- Nav tabs --}} - + {{-- Tab panes --}} +
+ {{-- General --}} +
+
+ + - {{-- Tab panes --}} -
- {{-- General --}} -
-
- {!! Form::label('app_name', 'Gallery name:', ['class' => 'control-label']) !!} - {!! Form::text('app_name', old('app_name'), ['class' => 'form-control']) !!} -
+ @if ($errors->has('app_name')) + + @endif +
-
-
-
- {!! Form::label('date_format', 'Date format:', ['class' => 'control-label']) !!} - {!! Form::select('date_format', $date_formats, old('date_format'), ['class' => 'form-control']) !!} +
+
+
+ + + + @if ($errors->has('date_format')) + + @endif +
-
-
-
-
- {!! Form::label('theme', 'Theme:', ['class' => 'control-label']) !!} - {!! Form::select('theme', $theme_names, old('theme'), ['class' => 'form-control']) !!} +
+
+
+ + + + @if ($errors->has('theme')) + + @endif +
+ +
+
+ "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.

+ +
+ +
+
+ +
+
+ @lang('admin.visitor_analytics_heading') +

@lang('admin.visitor_analytics_p')

+

@lang('admin.visitor_analytics_p2')

+ + +
-
-
- "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.

+ {{-- E-mail --}} +
+
+ + -
- + @if ($errors->has('sender_name')) + + @endif
-
-
-
- @lang('admin.visitor_analytics_heading') -

@lang('admin.visitor_analytics_p')

-

@lang('admin.visitor_analytics_p2')

+
+ + - {!! Form::textarea('analytics_code', old('analytics_code'), ['class' => 'form-control', 'rows' => 10]) !!} -
-
+ @if ($errors->has('sender_address')) + + @endif +
- {{-- E-mail --}} -
-
- {!! Form::label('sender_name', 'Sender name:', ['class' => 'control-label']) !!} - {!! Form::text('sender_name', old('sender_name'), ['class' => 'form-control']) !!} -
+
+ SMTP Server +

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

-
- {!! 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 --}} -
-
- +
+ + + + @if ($errors->has('smtp_username')) + + @endif +
+ +
+ + + + @if ($errors->has('smtp_password')) + + @endif +
+ +
+ +
+ +
+ + +
+ + + +
+
+
-
- -
- -
- -
- -
- @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') + +
+ + + + @if ($errors->has('recaptcha_site_key')) + + @endif +
+ +
+ + + + @if ($errors->has('recaptcha_secret_key')) + + @endif +
+
+ +
+ @lang('admin.settings_image_protection') + +
+ +
+ +
+ +
+
+
+
+ +
+ @lang('forms.cancel_action') +
- -
- @lang('forms.cancel_action') - -
-
- - {!! Form::close() !!} +