D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
resources
/
views
/
admin
/
artist
/
Filename :
edit.blade.php
back
Copy
@extends('admin.layouts.master') @section('content') <div class="row"> <div class="col-sm-10 col-sm-offset-2"> <h1>{{ trans('quickadmin::templates.templates-view_edit-edit') }}</h1> @if ($errors->any()) <div class="alert alert-danger"> <ul> {!! implode('', $errors->all('<li class="error">:message</li>')) !!} </ul> </div> @endif </div> </div> {!! Form::model($artist, array('files' => true, 'class' => 'form-horizontal', 'id' => 'form-with-validation', 'method' => 'PATCH', 'route' => array(config('quickadmin.route').'.artist.update', $artist->id))) !!} <div class="form-group"> {!! Form::label('name', 'name*', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::text('name', old('name',$artist->name), array('class'=>'form-control')) !!} </div> </div><div class="form-group"> {!! Form::label('body', 'body', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::textarea('body', old('body',$artist->body), array('class'=>'form-control')) !!} </div> </div><div class="form-group"> {!! Form::label('saloon_id', 'saloon_id', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::select('saloon_id', $saloons, old('saloon_id',$artist->saloon_id), array('class'=>'form-control')) !!} </div> </div><div class="form-group"> {!! Form::label('picture', 'picture', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::file('picture') !!} {!! Form::hidden('picture_w', 4096) !!} {!! Form::hidden('picture_h', 4096) !!} </div> </div><div class="form-group"> {!! Form::label('categories', 'categories', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::text('categories', old('categories',$artist->categories), array('class'=>'form-control')) !!} </div> </div> <div class="form-group"> {!! Form::label('contacts', 'contacts', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::text('contacts', old('contacts',$artist->contacts), array('class'=>'form-control')) !!} </div> </div> <div class="form-group"> {!! Form::label('order_by', 'order_by', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::text('order_by', old('order_by',$artist->order_by), array('class'=>'form-control')) !!} </div> </div> <div class="form-group"> {!! Form::label('showhide', 'showhide', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::select('showhide', $showhide, old('showhide',$artist->showhide), array('class'=>'form-control')) !!} </div> </div> <div class="form-group"> <div class="col-sm-10 col-sm-offset-2"> {!! Form::submit(trans('quickadmin::templates.templates-view_edit-update'), array('class' => 'btn btn-primary')) !!} {!! link_to_route(config('quickadmin.route').'.artist.index', trans('quickadmin::templates.templates-view_edit-cancel'), null, array('class' => 'btn btn-default')) !!} </div> </div> {!! Form::close() !!} @endsection