#13: Lots more adjustments to layouts for Bootstrap 4 and general tidying of HTML code on the Gallery side of things

This commit is contained in:
Andy Heathershaw 2017-09-01 14:52:06 +01:00
parent 21ee5df5e2
commit 78608eebbc
13 changed files with 234 additions and 206 deletions

View File

@ -10,6 +10,9 @@ return [
'back_to_album' => 'Back to :name', 'back_to_album' => 'Back to :name',
'index_no_results_heading' => 'Start something amazing', 'index_no_results_heading' => 'Start something amazing',
'index_no_results_text' => 'This gallery is currently empty. If you are the owner of this gallery, you can create new albums and upload photos using the :admin_link.', 'index_no_results_text' => 'This gallery is currently empty. If you are the owner of this gallery, you can create new albums and upload photos using the :admin_link.',
'manage_album_link' => 'Manage',
'manage_album_link_2' => 'Manage Album',
'open_album_link' => 'Open Album',
'other_albums_description' => 'You may also be interested in the following albums.', 'other_albums_description' => 'You may also be interested in the following albums.',
'other_albums_heading' => 'More Albums in :album_name' 'other_albums_heading' => 'More Albums in :album_name'
]; ];

View File

@ -19,12 +19,12 @@
<form action="{{ route('albums.store') }}" method="POST"> <form action="{{ route('albums.store') }}" method="POST">
{{ csrf_field() }} {{ csrf_field() }}
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="album-name">@lang('forms.name_label')</label> <label class="form-control-label" for="album-name">@lang('forms.name_label')</label>
<input type="text" class="form-control" id="album-name" name="name" value="{{ old('name') }}"> <input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" id="album-name" name="name" value="{{ old('name') }}">
@if ($errors->has('name')) @if ($errors->has('name'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('name') }}</strong> <strong>{{ $errors->first('name') }}</strong>
</div> </div>
@endif @endif

View File

@ -21,12 +21,12 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="user-name">@lang('forms.name_label')</label> <label class="form-control-label" for="user-name">@lang('forms.name_label')</label>
<input type="text" class="form-control" id="user-name" name="name" value="{{ old('name') }}"> <input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" id="user-name" name="name" value="{{ old('name') }}">
@if ($errors->has('name')) @if ($errors->has('name'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('name') }}</strong> <strong>{{ $errors->first('name') }}</strong>
</div> </div>
@endif @endif
@ -34,12 +34,12 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('email') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="user-email">@lang('forms.email_label')</label> <label class="form-control-label" for="user-email">@lang('forms.email_label')</label>
<input type="text" class="form-control" id="user-email" name="email" value="{{ old('email') }}"> <input type="text" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" id="user-email" name="email" value="{{ old('email') }}">
@if ($errors->has('email')) @if ($errors->has('email'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('email') }}</strong> <strong>{{ $errors->first('email') }}</strong>
</div> </div>
@endif @endif
@ -49,12 +49,12 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('password') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="user-password">@lang('forms.password_label')</label> <label class="form-control-label" for="user-password">@lang('forms.password_label')</label>
<input type="password" class="form-control" id="user-password" name="password" value="{{ old('password') }}"> <input type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" id="user-password" name="password" value="{{ old('password') }}">
@if ($errors->has('password')) @if ($errors->has('password'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('password') }}</strong> <strong>{{ $errors->first('password') }}</strong>
</div> </div>
@endif @endif
@ -62,12 +62,12 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="user-password-confirm">@lang('forms.password_confirm_label')</label> <label class="form-control-label" for="user-password-confirm">@lang('forms.password_confirm_label')</label>
<input type="password" class="form-control" id="user-password-confirm" name="password_confirmation" value="{{ old('password_confirmation') }}"> <input type="password" class="form-control{{ $errors->has('password_confirmation') ? ' is-invalid' : '' }}" id="user-password-confirm" name="password_confirmation" value="{{ old('password_confirmation') }}">
@if ($errors->has('password_confirmation')) @if ($errors->has('password_confirmation'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('password_confirmation') }}</strong> <strong>{{ $errors->first('password_confirmation') }}</strong>
</div> </div>
@endif @endif
@ -75,10 +75,11 @@
</div> </div>
</div> </div>
<div class="form-check"> <div>
<label class="form-check-label"> <label class="custom-control custom-checkbox">
<input class="form-check-input" type="checkbox" name="is_admin"> <input type="checkbox" class="custom-control-input" name="is_admin" @if (old('is_admin'))checked="checked"@endif>
@lang('forms.admin_user_label') <span class="custom-control-indicator"></span>
<span class="custom-control-description">@lang('forms.admin_user_label')</span>
</label> </label>
</div> </div>

View File

@ -22,23 +22,23 @@
{{ csrf_field() }} {{ csrf_field() }}
{{ method_field('PUT') }} {{ method_field('PUT') }}
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}"> <div class="form-group">
<label for="album-name" class="control-label">@lang('forms.name_label')</label> <label for="album-name" class="control-label">@lang('forms.name_label')</label>
<input type="text" id="album-name" class="form-control" name="name" value="{{ old('name') }}" /> <input type="text" id="album-name" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" name="name" value="{{ old('name') }}" />
@if ($errors->has('name')) @if ($errors->has('name'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('name') }}</strong> <strong>{{ $errors->first('name') }}</strong>
</div> </div>
@endif @endif
</div> </div>
<div class="form-group{{ $errors->has('description') ? ' has-danger' : '' }}"> <div class="form-group">
<label for="album-description" class="control-label" name="name">@lang('forms.description_label')</label> <label for="album-description" class="control-label" name="name">@lang('forms.description_label')</label>
<textarea class="form-control" id="album-description" rows="5" name="description">{{ old('description') }}</textarea> <textarea class="form-control{{ $errors->has('description') ? ' is-invalid' : '' }}" id="album-description" rows="5" name="description">{{ old('description') }}</textarea>
@if ($errors->has('description')) @if ($errors->has('description'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('description') }}</strong> <strong>{{ $errors->first('description') }}</strong>
</div> </div>
@endif @endif

View File

@ -32,13 +32,13 @@
{{-- Details --}} {{-- Details --}}
<div role="tabpanel" class="tab-pane active" id="details-tab"> <div role="tabpanel" class="tab-pane active" id="details-tab">
<div class="row"> <div class="row">
<div class="col-md-6 offset-md-3"> <div class="col-md-6 ml-md-auto mr-md-auto">
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="group-name">@lang('forms.name_label')</label> <label class="form-control-label" for="group-name">@lang('forms.name_label')</label>
<input type="text" class="form-control" id="group-name" name="name" value="{{ old('name') }}"> <input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" id="group-name" name="name" value="{{ old('name') }}">
@if ($errors->has('name')) @if ($errors->has('name'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('name') }}</strong> <strong>{{ $errors->first('name') }}</strong>
</div> </div>
@endif @endif

View File

@ -33,12 +33,12 @@
<div role="tabpanel" class="tab-pane active" id="details-tab"> <div role="tabpanel" class="tab-pane active" id="details-tab">
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="user-name">@lang('forms.name_label')</label> <label class="form-control-label" for="user-name">@lang('forms.name_label')</label>
<input type="text" class="form-control" id="user-name" name="name" value="{{ old('name') }}"> <input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" id="user-name" name="name" value="{{ old('name') }}">
@if ($errors->has('name')) @if ($errors->has('name'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('name') }}</strong> <strong>{{ $errors->first('name') }}</strong>
</div> </div>
@endif @endif
@ -46,12 +46,12 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('email') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="user-email">@lang('forms.email_label')</label> <label class="form-control-label" for="user-email">@lang('forms.email_label')</label>
<input type="text" class="form-control" id="user-email" name="email" value="{{ old('email') }}"> <input type="text" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" id="user-email" name="email" value="{{ old('email') }}">
@if ($errors->has('email')) @if ($errors->has('email'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('email') }}</strong> <strong>{{ $errors->first('email') }}</strong>
</div> </div>
@endif @endif
@ -61,12 +61,12 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('password') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="user-password">@lang('forms.password_label')</label> <label class="form-control-label" for="user-password">@lang('forms.password_label')</label>
<input type="password" class="form-control" id="user-password" name="password" value="{{ old('password') }}"> <input type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" id="user-password" name="password" value="{{ old('password') }}">
@if ($errors->has('password')) @if ($errors->has('password'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('password') }}</strong> <strong>{{ $errors->first('password') }}</strong>
</div> </div>
@endif @endif
@ -74,12 +74,12 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="user-password-confirm">@lang('forms.password_confirm_label')</label> <label class="form-control-label" for="user-password-confirm">@lang('forms.password_confirm_label')</label>
<input type="password" class="form-control" id="user-password-confirm" name="password_confirmation" value="{{ old('password_confirmation') }}"> <input type="password" class="form-control{{ $errors->has('password_confirmation') ? ' is-invalid' : '' }}" id="user-password-confirm" name="password_confirmation" value="{{ old('password_confirmation') }}">
@if ($errors->has('password_confirmation')) @if ($errors->has('password_confirmation'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('password_confirmation') }}</strong> <strong>{{ $errors->first('password_confirmation') }}</strong>
</div> </div>
@endif @endif
@ -87,18 +87,20 @@
</div> </div>
</div> </div>
<div class="form-check"> <div>
<label class="form-check-label"> <label class="custom-control custom-checkbox">
<input class="form-check-input" type="checkbox" name="is_admin"@if ($user->is_admin) checked="checked"@endif> <input type="checkbox" class="custom-control-input" name="is_admin"@if (old('is_admin', $user->is_admin)) checked="checked"@endif>
@lang('forms.admin_user_label') <span class="custom-control-indicator"></span>
<span class="custom-control-description">@lang('forms.admin_user_label')</span>
</label> </label>
</div> </div>
@if (!$user->is_activated) @if (!$user->is_activated)
<div class="form-check"> <div>
<label class="form-check-label"> <label class="custom-control custom-checkbox">
<input class="form-check-input" type="checkbox" name="is_activated"> <input type="checkbox" class="custom-control-input" name="is_activated"@if (old('is_activated', $user->is_activated)) checked="checked"@endif>
<strong>@lang('forms.activate_user_label')</strong> <span class="custom-control-indicator"></span>
<span class="custom-control-description">@lang('forms.activate_user_label')</span>
</label> </label>
</div> </div>
@endif @endif
@ -110,10 +112,11 @@
<p style="margin-bottom: 20px;">@lang('admin.user_groups_list_select', ['name' => $user->name])</p> <p style="margin-bottom: 20px;">@lang('admin.user_groups_list_select', ['name' => $user->name])</p>
@foreach ($groups as $group) @foreach ($groups as $group)
<div class="form-check"> <div>
<label class="form-check-label"> <label class="custom-control custom-checkbox">
<input class="form-check-input" type="checkbox" name="user_group_id[]" value="{{ $group->id }}"@if (in_array($group->id, $users_groups)) checked="checked"@endif> <input type="checkbox" class="custom-control-input" name="user_group_id[]" value="{{ $group->id }}" @if (in_array($group->id, $users_groups)) checked="checked"@endif>
{{ $group->name }} <span class="custom-control-indicator"></span>
<span class="custom-control-description">{{ $group->name }}</span>
</label> </label>
</div> </div>
@endforeach @endforeach

View File

@ -29,12 +29,12 @@
<div class="tab-content"> <div class="tab-content">
{{-- General --}} {{-- General --}}
<div role="tabpanel" class="tab-pane active" id="general-tab"> <div role="tabpanel" class="tab-pane active" id="general-tab">
<div class="form-group{{ $errors->has('app_name') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="gallery-name">Gallery name:</label> <label class="form-control-label" for="gallery-name">Gallery name:</label>
<input type="text" class="form-control" id="gallery-name" name="app_name" value="{{ old('app_name', $config['app_name']) }}"> <input type="text" class="form-control{{ $errors->has('app_name') ? ' is-invalid' : '' }}" id="gallery-name" name="app_name" value="{{ old('app_name', $config['app_name']) }}">
@if ($errors->has('app_name')) @if ($errors->has('app_name'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('app_name') }}</strong> <strong>{{ $errors->first('app_name') }}</strong>
</div> </div>
@endif @endif
@ -51,7 +51,7 @@
</select> </select>
@if ($errors->has('date_format')) @if ($errors->has('date_format'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('date_format') }}</strong> <strong>{{ $errors->first('date_format') }}</strong>
</div> </div>
@endif @endif
@ -70,7 +70,7 @@
</select> </select>
@if ($errors->has('theme')) @if ($errors->has('theme'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('theme') }}</strong> <strong>{{ $errors->first('theme') }}</strong>
</div> </div>
@endif @endif
@ -96,23 +96,23 @@
{{-- E-mail --}} {{-- E-mail --}}
<div role="tabpanel" class="tab-pane" id="email-tab"> <div role="tabpanel" class="tab-pane" id="email-tab">
<div class="form-group{{ $errors->has('sender_name') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="email-sender-name">Sender name:</label> <label class="form-control-label" for="email-sender-name">Sender name:</label>
<input type="text" class="form-control" id="email-sender-name" name="sender_name" value="{{ old('sender_name', $config['sender_name']) }}"> <input type="text" class="form-control{{ $errors->has('sender_name') ? ' is-invalid' : '' }}" id="email-sender-name" name="sender_name" value="{{ old('sender_name', $config['sender_name']) }}">
@if ($errors->has('sender_name')) @if ($errors->has('sender_name'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('sender_name') }}</strong> <strong>{{ $errors->first('sender_name') }}</strong>
</div> </div>
@endif @endif
</div> </div>
<div class="form-group{{ $errors->has('sender_address') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="email-sender-address">Sender address:</label> <label class="form-control-label" for="email-sender-address">Sender address:</label>
<input type="text" class="form-control" id="email-sender-address" name="sender_address" value="{{ old('sender_address', $config['sender_address']) }}"> <input type="text" class="form-control{{ $errors->has('sender_address') ? ' is-invalid' : '' }}" id="email-sender-address" name="sender_address" value="{{ old('sender_address', $config['sender_address']) }}">
@if ($errors->has('sender_address')) @if ($errors->has('sender_address'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('sender_address') }}</strong> <strong>{{ $errors->first('sender_address') }}</strong>
</div> </div>
@endif @endif
@ -122,54 +122,55 @@
<legend>SMTP Server</legend> <legend>SMTP Server</legend>
<p style="margin-bottom: 15px;">Configure your SMTP server using the settings below. If your server does not require authentication, leave the Username and Password fields empty.</p> <p style="margin-bottom: 15px;">Configure your SMTP server using the settings below. If your server does not require authentication, leave the Username and Password fields empty.</p>
<div class="form-group{{ $errors->has('smtp_server') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="email-smtp-server">Hostname:</label> <label class="form-control-label" for="email-smtp-server">Hostname:</label>
<input type="text" class="form-control" id="email-smtp-server" name="smtp_server" value="{{ old('smtp_server', $config['smtp_server']) }}"> <input type="text" class="form-control{{ $errors->has('smtp_server') ? ' is-invalid' : '' }}" id="email-smtp-server" name="smtp_server" value="{{ old('smtp_server', $config['smtp_server']) }}">
@if ($errors->has('smtp_server')) @if ($errors->has('smtp_server'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('smtp_server') }}</strong> <strong>{{ $errors->first('smtp_server') }}</strong>
</div> </div>
@endif @endif
</div> </div>
<div class="form-group{{ $errors->has('smtp_port') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="email-smtp-port">Port:</label> <label class="form-control-label" for="email-smtp-port">Port:</label>
<input type="text" class="form-control" id="email-smtp-port" name="smtp_port" value="{{ old('smtp_port', $config['smtp_port']) }}"> <input type="text" class="form-control{{ $errors->has('smtp_port') ? ' is-invalid' : '' }}" id="email-smtp-port" name="smtp_port" value="{{ old('smtp_port', $config['smtp_port']) }}">
@if ($errors->has('smtp_port')) @if ($errors->has('smtp_port'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('smtp_port') }}</strong> <strong>{{ $errors->first('smtp_port') }}</strong>
</div> </div>
@endif @endif
</div> </div>
<div class="form-group{{ $errors->has('smtp_username') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="email-smtp-username">Username:</label> <label class="form-control-label" for="email-smtp-username">Username:</label>
<input type="text" class="form-control" id="email-smtp-username" name="smtp_username" value="{{ old('smtp_username', $config['smtp_username']) }}"> <input type="text" class="form-control{{ $errors->has('smtp_username') ? ' is-invalid' : '' }}" id="email-smtp-username" name="smtp_username" value="{{ old('smtp_username', $config['smtp_username']) }}">
@if ($errors->has('smtp_username')) @if ($errors->has('smtp_username'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('smtp_username') }}</strong> <strong>{{ $errors->first('smtp_username') }}</strong>
</div> </div>
@endif @endif
</div> </div>
<div class="form-group{{ $errors->has('smtp_password') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="email-smtp-password">Password:</label> <label class="form-control-label" for="email-smtp-password">Password:</label>
<input type="text" class="form-control" id="email-smtp-password" name="smtp_password" value="{{ old('smtp_password', $config['smtp_password']) }}"> <input type="text" class="form-control{{ $errors->has('smtp_password') ? ' is-invalid' : '' }}" id="email-smtp-password" name="smtp_password" value="{{ old('smtp_password', $config['smtp_password']) }}">
@if ($errors->has('smtp_password')) @if ($errors->has('smtp_password'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('smtp_password') }}</strong> <strong>{{ $errors->first('smtp_password') }}</strong>
</div> </div>
@endif @endif
</div> </div>
<div class="form-check"> <div>
<label class="form-check-label"> <label class="custom-control custom-checkbox">
<input class="form-check-input" type="checkbox" name="smtp_encryption" @if (UserConfig::get('smtp_encryption'))checked="checked"@endif> <input type="checkbox" class="custom-control-input" name="smtp_encryption" @if (UserConfig::get('smtp_encryption'))checked="checked"@endif>
<strong>Requires encrypted connection</strong> <span class="custom-control-indicator"></span>
<span class="custom-control-description"><strong>Requires encrypted connection</strong></span>
</label> </label>
</div> </div>
@ -192,50 +193,53 @@
{{-- Security --}} {{-- Security --}}
<div role="tabpanel" class="tab-pane" id="security-tab"> <div role="tabpanel" class="tab-pane" id="security-tab">
<div class="checkbox"> <div>
<label> <label class="custom-control custom-checkbox">
<input type="checkbox" name="allow_self_registration" @if (old('allow_self_registration', UserConfig::get('allow_self_registration')))checked="checked"@endif> <input type="checkbox" class="custom-control-input" name="allow_self_registration" @if (old('allow_self_registration', UserConfig::get('allow_self_registration')))checked="checked"@endif>
<strong>@lang('admin.settings.security_allow_self_registration')</strong><br/> <span class="custom-control-indicator"></span>
@lang('admin.settings.security_allow_self_registration_description') <span class="custom-control-description"><strong>@lang('admin.settings.security_allow_self_registration')</strong><br/>
@lang('admin.settings.security_allow_self_registration_description')</span>
</label> </label>
</div> </div>
<div class="checkbox" style="margin-top: 20px;"> <div style="margin-top: 20px;">
<label> <label class="custom-control custom-checkbox">
<input type="checkbox" name="require_email_verification" @if (old('require_email_verification', UserConfig::get('require_email_verification')))checked="checked"@endif> <input type="checkbox" class="custom-control-input" name="require_email_verification" @if (old('require_email_verification', UserConfig::get('require_email_verification')))checked="checked"@endif>
<strong>Require e-mail verification for self-registered accounts</strong><br/> <span class="custom-control-indicator"></span>
<span class="text-danger">It is strongly recommended to enable this option.</span> <span class="custom-control-description"><strong>Require e-mail verification for self-registered accounts</strong><br/>
<span class="text-danger">It is strongly recommended to enable this option.</span></span>
</label> </label>
</div> </div>
<div class="checkbox" style="margin-top: 20px;"> <div style="margin-top: 20px;">
<label> <label class="custom-control custom-checkbox">
<input type="checkbox" name="recaptcha_enabled_registration" @if (old('recaptcha_enabled_registration', UserConfig::get('recaptcha_enabled_registration')))checked="checked"@endif> <input type="checkbox" class="custom-control-input" name="recaptcha_enabled_registration" @if (old('recaptcha_enabled_registration', UserConfig::get('recaptcha_enabled_registration')))checked="checked"@endif>
<strong>Enable <a href="https://www.google.com/recaptcha" target="_blank">reCAPTCHA</a> for self-registrations</strong><br/> <span class="custom-control-indicator"></span>
<span class="text-danger">It is strongly recommended to enable this option.</span> <span class="custom-control-description"><strong>Enable <a href="https://www.google.com/recaptcha" target="_blank">reCAPTCHA</a> for self-registrations</strong><br/>
<span class="text-danger">It is strongly recommended to enable this option.</span></span>
</label> </label>
</div> </div>
<fieldset style="margin-top: 30px;"> <fieldset style="margin-top: 30px;">
<legend>@lang('admin.settings_recaptcha')</legend> <legend>@lang('admin.settings_recaptcha')</legend>
<div class="form-group{{ $errors->has('recaptcha_site_key') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="recaptcha-site-key">Site key:</label> <label class="form-control-label" for="recaptcha-site-key">Site key:</label>
<input type="text" class="form-control" id="recaptcha-site-key" name="recaptcha_site_key" value="{{ old('recaptcha_site_key', $config['recaptcha_site_key']) }}"> <input type="text" class="form-control{{ $errors->has('recaptcha_site_key') ? ' is-invalid' : '' }}" id="recaptcha-site-key" name="recaptcha_site_key" value="{{ old('recaptcha_site_key', $config['recaptcha_site_key']) }}">
@if ($errors->has('recaptcha_site_key')) @if ($errors->has('recaptcha_site_key'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('recaptcha_site_key') }}</strong> <strong>{{ $errors->first('recaptcha_site_key') }}</strong>
</div> </div>
@endif @endif
</div> </div>
<div class="form-group{{ $errors->has('recaptcha_secret_key') ? ' has-danger' : '' }}"> <div class="form-group">
<label class="form-control-label" for="recaptcha-secret-key">Secret key:</label> <label class="form-control-label" for="recaptcha-secret-key">Secret key:</label>
<input type="text" class="form-control" id="recaptcha-secret-key" name="recaptcha_secret_key" value="{{ old('recaptcha_secret_key', $config['recaptcha_secret_key']) }}"> <input type="text" class="form-control{{ $errors->has('recaptcha_secret_key') ? ' is-invalid' : '' }}" id="recaptcha-secret-key" name="recaptcha_secret_key" value="{{ old('recaptcha_secret_key', $config['recaptcha_secret_key']) }}">
@if ($errors->has('recaptcha_secret_key')) @if ($errors->has('recaptcha_secret_key'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('recaptcha_secret_key') }}</strong> <strong>{{ $errors->first('recaptcha_secret_key') }}</strong>
</div> </div>
@endif @endif
@ -245,19 +249,21 @@
<fieldset style="margin-top: 20px;"> <fieldset style="margin-top: 20px;">
<legend>@lang('admin.settings_image_protection')</legend> <legend>@lang('admin.settings_image_protection')</legend>
<div class="checkbox"> <div>
<label> <label class="custom-control custom-checkbox">
<input type="checkbox" name="restrict_original_download" @if (old('restrict_original_download', UserConfig::get('restrict_original_download')))checked="checked"@endif> <input type="checkbox" class="custom-control-input" name="restrict_original_download" @if (old('restrict_original_download', UserConfig::get('restrict_original_download')))checked="checked"@endif>
<strong>@lang('forms.settings_restrict_originals_download')</strong><br/> <span class="custom-control-indicator"></span>
@lang('forms.settings_restrict_originals_download_help') <span class="custom-control-description"><strong>@lang('forms.settings_restrict_originals_download')</strong><br/>
@lang('forms.settings_restrict_originals_download_help')</span>
</label> </label>
</div> </div>
<div class="checkbox" style="margin-top: 20px;"> <div style="margin-top: 20px;">
<label> <label class="custom-control custom-checkbox">
<input type="checkbox" name="hotlink_protection" @if (old('hotlink_protection', UserConfig::get('hotlink_protection')))checked="checked"@endif> <input type="checkbox" class="custom-control-input" name="hotlink_protection" @if (old('hotlink_protection', UserConfig::get('hotlink_protection')))checked="checked"@endif>
<strong>@lang('forms.settings_hotlink_protection')</strong><br/> <span class="custom-control-indicator"></span>
@lang('forms.settings_hotlink_protection_help') <span class="custom-control-description"><strong>@lang('forms.settings_hotlink_protection')</strong><br/>
@lang('forms.settings_hotlink_protection_help')</span>
</label> </label>
</div> </div>
</fieldset> </fieldset>
@ -273,13 +279,16 @@
<a href="https://cookieconsent.insites.com/" target="_blank">@lang('admin.settings.analytics_cookie_link_2')</a> <a href="https://cookieconsent.insites.com/" target="_blank">@lang('admin.settings.analytics_cookie_link_2')</a>
</p> </p>
</div> </div>
<div class="checkbox mt-4">
<label> <div class="mt-4">
<input type="checkbox" name="enable_visitor_hits" @if (old('enable_visitor_hits', UserConfig::get('enable_visitor_hits')))checked="checked"@endif> <label class="custom-control custom-checkbox">
<strong>@lang('admin.settings.analytics_enable_visitor_hits')</strong><br/> <input type="checkbox" class="custom-control-input" name="enable_visitor_hits" @if (old('enable_visitor_hits', UserConfig::get('enable_visitor_hits')))checked="checked"@endif>
@lang('admin.settings.analytics_enable_visitor_hits_description') <span class="custom-control-indicator"></span>
<span class="custom-control-description"><strong>@lang('admin.settings.analytics_enable_visitor_hits')</strong><br/>
@lang('admin.settings.analytics_enable_visitor_hits_description')</span>
</label> </label>
</div> </div>
<hr/> <hr/>
<fieldset> <fieldset>
<legend>@lang('admin.visitor_analytics_heading')</legend> <legend>@lang('admin.visitor_analytics_heading')</legend>

View File

@ -3,22 +3,22 @@
@php ($hasChildren = $album->children()->count() > 0) @php ($hasChildren = $album->children()->count() > 0)
@section('content') @section('breadcrumb')
<div class="container-fluid album-container">
<div class="row">
<div class="col-xl-8 offset-xl-2">
<div class="row">
<div class="col">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li> <li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
@include(Theme::viewName('partials.album_breadcrumb')) @include(Theme::viewName('partials.album_breadcrumb'))
</ol> @endsection
</div>
</div>
@section('content')
<div class="container album-container">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="pull-right"> <div class="pull-right">
@can('edit', $album)
<div class="mb-3">
<a class="btn btn-secondary" href="{{ route('albums.show', ['id' => $album->id]) }}" target="_blank"><i class="fa fa-fw fa-eye"></i> @lang('gallery.manage_album_link_2')</a>
</div>
@endcan
@include(\App\Facade\Theme::viewName('partials.album_view_selector')) @include(\App\Facade\Theme::viewName('partials.album_view_selector'))
</div> </div>
@ -72,6 +72,4 @@
</div> </div>
@endif @endif
</div> </div>
</div>
</div>
@endsection @endsection

View File

@ -3,18 +3,22 @@
@php ($hasChildren = $album->children()->count() > 0) @php ($hasChildren = $album->children()->count() > 0)
@section('content') @section('breadcrumb')
<div class="container-fluid album-container">
<div class="row">
<div class="col-8 ml-auto mr-auto">
<div class="row">
<div class="col">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li> <li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
@include(Theme::viewName('partials.album_breadcrumb')) @include(Theme::viewName('partials.album_breadcrumb'))
</ol> @endsection
@section('content')
<div class="container album-container">
@can('edit', $album)
<div class="row">
<div class="col">
<div class="pull-right">
<a class="btn btn-secondary" href="{{ route('albums.show', ['id' => $album->id]) }}" target="_blank"><i class="fa fa-fw fa-eye"></i> @lang('gallery.manage_album_link_2')</a>
</div> </div>
</div> </div>
</div>
@endcan
<div class="row"> <div class="row">
<div class="col text-center"> <div class="col text-center">
@ -23,8 +27,6 @@
<p style="margin-bottom: 30px; line-height: 1.6em;">@lang('gallery.album_no_results_text_2')</p> <p style="margin-bottom: 30px; line-height: 1.6em;">@lang('gallery.album_no_results_text_2')</p>
<img src="{{ asset('themes/base/images/smartphone-photo.jpg') }}" class="img-fluid rounded" style="display: inline;" /> <img src="{{ asset('themes/base/images/smartphone-photo.jpg') }}" class="img-fluid rounded" style="display: inline;" />
</div>
</div>
@if ($hasChildren) @if ($hasChildren)
<h2 style="margin-top: 60px;"><small class="text-muted">@lang('gallery.other_albums_heading', ['album_name' => $album->name])</small></h2> <h2 style="margin-top: 60px;"><small class="text-muted">@lang('gallery.other_albums_heading', ['album_name' => $album->name])</small></h2>

View File

@ -11,6 +11,12 @@
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="pull-right"> <div class="pull-right">
@can('edit', $album)
<div class="mb-3">
<a class="btn btn-secondary" href="{{ route('albums.show', ['id' => $album->id]) }}" target="_blank"><i class="fa fa-fw fa-eye"></i> @lang('gallery.manage_album_link_2')</a>
</div>
@endcan
@include(\App\Facade\Theme::viewName('partials.album_view_selector')) @include(\App\Facade\Theme::viewName('partials.album_view_selector'))
</div> </div>

View File

@ -10,10 +10,14 @@
@foreach ($albums as $album) @foreach ($albums as $album)
<div class="col-sm-6 col-md-4"> <div class="col-sm-6 col-md-4">
<div class="card"> <div class="card">
<img class="card-img-top" src="{{ $album->thumbnailUrl('preview') }}"/> <a href="{{ $album->url() }}"><img class="card-img-top" src="{{ $album->thumbnailUrl('preview') }}"/></a>
<div class="card-body"> <div class="card-body">
<h4 class="card-title"><a href="{{ $album->url() }}">{{ $album->name }}</a></h4> <h4 class="card-title"><a href="{{ $album->url() }}">{{ $album->name }}</a></h4>
<p class="card-text">{{ $album->description }}</p> <p class="card-text">{{ $album->description }}</p>
@can('edit', $album)
<a href="{{ route('albums.show', ['id' => $album->id]) }}" class="card-link">@lang('gallery.manage_album_link')</a>
@endcan
</div> </div>
<div class="card-footer"> <div class="card-footer">
<small class="text-muted"><i class="fa fa-fw fa-photo"></i> {{ $album->photos_count }} photos</small> <small class="text-muted"><i class="fa fa-fw fa-photo"></i> {{ $album->photos_count }} photos</small>

View File

@ -6,12 +6,12 @@
<h4><i class="fa fa-fw fa-info"></i> @lang('admin.album_basic_info_heading')</h4> <h4><i class="fa fa-fw fa-info"></i> @lang('admin.album_basic_info_heading')</h4>
<p>@lang('admin.album_basic_info_intro')</p> <p>@lang('admin.album_basic_info_intro')</p>
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}" style="margin-top: 20px;"> <div class="form-group" style="margin-top: 20px;">
<label class="form-control-label" for="album-name">@lang('forms.name_label')</label> <label class="form-control-label" for="album-name">@lang('forms.name_label')</label>
<input type="text" class="form-control" id="album-name" name="name" value="{{ old('name') }}"> <input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" id="album-name" name="name" value="{{ old('name') }}">
@if ($errors->has('name')) @if ($errors->has('name'))
<div class="form-control-feedback"> <div class="invalid-feedback">
<strong>{{ $errors->first('name') }}</strong> <strong>{{ $errors->first('name') }}</strong>
</div> </div>
@endif @endif

View File

@ -1,5 +1,7 @@
<div class="checkbox"> <div>
<label for="permission|{{ $key_id }}|{{ $permission->id }}"> <label class="custom-control custom-checkbox" for="permission|{{ $key_id }}|{{ $permission->id }}">
<input id="permission|{{ $key_id }}|{{ $permission->id }}" name="permissions[{{ $object_id }}][]" value="{{ $permission->id }}" type="checkbox"{{ call_user_func($callback, $callback_object, $permission) ? ' checked="checked"' : '' }} /> {{ trans(sprintf('permissions.%s.%s', $permission->section, $permission->description)) }} <input type="checkbox" class="custom-control-input" id="permission|{{ $key_id }}|{{ $permission->id }}" name="permissions[{{ $object_id }}][]" value="{{ $permission->id }}"{{ call_user_func($callback, $callback_object, $permission) ? ' checked="checked"' : '' }}>
<span class="custom-control-indicator"></span>
<span class="custom-control-description">{{ trans(sprintf('permissions.%s.%s', $permission->section, $permission->description)) }}</span>
</label> </label>
</div> </div>