diff --git a/resources/lang/en/admin.php b/resources/lang/en/admin.php index 82ad363..b6e483a 100644 --- a/resources/lang/en/admin.php +++ b/resources/lang/en/admin.php @@ -1,6 +1,12 @@ 'Actions', + 'album_no_photos_p1' => 'This album does not yet have any photos.', + 'album_no_photos_p2' => 'Click the "Upload photos" button below to get started.', + 'album_no_photos_button' => 'Upload photos', + 'album_photos_tab' => 'Photos', + 'album_settings_tab' => 'Settings', + 'album_upload_tab' => 'Upload', 'create_album' => 'Create a photo album', 'create_album_intro' => 'Photo albums contain individual photographs together in the same way as a physical photo album or memory book.', 'create_album_intro2' => 'Complete the form below to create a photo album.', diff --git a/resources/views/themes/base/admin/show_album.blade.php b/resources/views/themes/base/admin/show_album.blade.php index 36db8d9..3f0f122 100644 --- a/resources/views/themes/base/admin/show_album.blade.php +++ b/resources/views/themes/base/admin/show_album.blade.php @@ -10,15 +10,26 @@
- {{-- Nav tabs --}} - {{-- Tab panes --}}
-
+ {{-- Photos --}} +
+ @if ($album->photos()->count() == 0) +
+

@lang('admin.album_no_photos_p1')

+

@lang('admin.album_no_photos_p2')

+

+
+ @endif +
+ + {{-- Upload --}} +

Upload single images

{!! Form::open(['route' => 'photos.store', 'method' => 'POST', 'files' => true]) !!} @@ -49,17 +60,26 @@ {!! Form::close() !!}
+ {{-- Settings --}}
- -
- @lang('forms.edit_action') - @lang('forms.delete_action') -
-@endsection \ No newline at end of file +@endsection + +@push('scripts') + +@endpush \ No newline at end of file