FIX: fix few minor bugs

This commit is contained in:
Michal Kváček
2017-02-09 23:42:07 +01:00
parent 9593b6502e
commit 0ba0d1c15d
4 changed files with 32 additions and 27 deletions
@@ -1,14 +1,13 @@
<form method="POST" action="{{$action}}">
{!! csrf_field() !!}
<input type="text" name="name" placeholder="@lang('admin/fileManager.directoryName')" class="form-control"
<input type="text" name="name" required placeholder="@lang('admin/fileManager.directoryName')" class="form-control"
value="{{old('name', $directory->name)}}" />
<textarea name="description" class="form-control" placeholder="@lang('admin/fileManager.directoryDescription')"
rows="3">{{old('description', $directory->description)}}</textarea>
@if ($parentDirectory->id)
<input type="text" name="parentDirectory" value="{{$parentDirectory->id}}">
<input type="hidden" name="parentDirectory" value="{{$parentDirectory->id}}">
@endif
<button type="submit" class="btn btn-primary">
@@ -17,7 +16,5 @@
@else
@lang('admin/fileManager.newDirectory')
@endif
</button>
</form>