FEATURE #1435: few smaller UI tweaks in creating new content page

This commit is contained in:
Michal Kváček
2016-08-19 13:20:16 +02:00
parent 0d1d692c45
commit f6fd924cbd
7 changed files with 22 additions and 7 deletions
@@ -12,7 +12,6 @@
@lang('admin/contents.uploadTitleImage')
</label>
<input type="file" id="titlePhoto" name="titlePhoto" class="form-control" />
<span class="has-error">Neplatny template</span>
@include('admin.snippets.hasError', ['field' => 'titlePhoto'])
</div>
@@ -1,6 +1,6 @@
<div class="row">
<div class="col-lg-6">
<input type="text" name="title" class="form-control slug-source"
<input type="text" name="title" required class="form-control slug-source"
placeholder="@lang('admin/contents.field_title')"
value="{{old('title', $page->title)}}" />
@@ -4,7 +4,10 @@
<div class="col-lg-6">
<ul>
@foreach($page->files as $file)
<li><label><input type="checkbox" name="keepAssigned[{{$file->id}}]" checked /> {{$file->original_filename}}</label></li>
<li>
<input type="checkbox" name="keepAssigned[{{$file->id}}]" checked />
{{$file->original_filename}}
</li>
@endforeach
</ul>
</div>
@@ -15,6 +18,6 @@
@lang('admin/contents.files')
</label>
<input type="file" name="files[]" class="form-control" multiple />
<input type="file" name="files[]" class="form-control" multiple />
</div>
</div>
+8 -1
View File
@@ -3,6 +3,13 @@
@section('pageHeading', @trans('admin/contents.new', ['name' => $moduleName]))
@section('content')
@if(!count($templates))
<div class="alert alert-warning">
@lang('admin/contents.noTemplates')
</div>
@endif
<form method="POST" enctype="multipart/form-data" action="{{route('content.newPost', ['moduleId' => $moduleId])}}">
{!! csrf_field() !!}
@@ -10,7 +17,7 @@
<button type="submit" class="btn btn-primary">@lang('admin/contents.save')</button>
</form>
@stop
@endsection
@section('javascripts')
@include('admin.snippets.ckEditor', ['textareaId' => 'pageContent'])