2016-09-02 10:42:05 +01:00
|
|
|
@extends('themes.base.layout')
|
2016-09-01 16:23:39 +01:00
|
|
|
@section('title', 'Gallery Admin')
|
|
|
|
|
2016-09-09 15:06:34 +01:00
|
|
|
@section('breadcrumb')
|
2017-03-27 14:04:09 +01:00
|
|
|
<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('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
|
|
|
|
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.create_album')</li>
|
2016-09-09 15:06:34 +01:00
|
|
|
@endsection
|
|
|
|
|
2016-09-01 16:23:39 +01:00
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-03-27 14:04:09 +01:00
|
|
|
<div class="col">
|
2016-09-01 16:23:39 +01:00
|
|
|
<h1>@lang('admin.create_album')</h1>
|
|
|
|
<p>@lang('admin.create_album_intro')</p>
|
|
|
|
<p>@lang('admin.create_album_intro2')</p>
|
|
|
|
<hr/>
|
|
|
|
|
2017-03-27 14:04:09 +01:00
|
|
|
<form action="{{ route('albums.store') }}" method="POST">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}">
|
|
|
|
<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') }}">
|
|
|
|
|
|
|
|
@if ($errors->has('name'))
|
|
|
|
<div class="form-control-feedback">
|
|
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-control-label" for="album-description">@lang('forms.description_label')</label>
|
2017-04-16 09:50:40 +01:00
|
|
|
<textarea class="form-control" id="album-description" name="description" rows="5">{{ old('description') }}</textarea>
|
2017-03-27 14:04:09 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-control-label" for="album-source">@lang('forms.album_source_label')</label>
|
|
|
|
<select class="form-control" name="storage_id">
|
|
|
|
@foreach ($album_sources as $key => $value)
|
|
|
|
<option value="{{ $key }}"{{ $key == old('storage_id') ? ' selected="selected"' : '' }}>{{ $value }}</option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-check">
|
|
|
|
<label class="form-check-label">
|
|
|
|
<input class="form-check-inline" type="checkbox" name="is_private">
|
|
|
|
<i class="fa fa-fw fa-lock"></i> @lang('forms.private_album_label')
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="text-right">
|
|
|
|
<a href="{{ route('albums.index') }}" class="btn btn-link">@lang('forms.cancel_action')</a>
|
|
|
|
<button class="btn btn-success" type="submit"><i class="fa fa-fw fa-check"></i> @lang('forms.create_action')</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2016-09-01 16:23:39 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|