D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
resources
/
views
/
admin
/
styles
/
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($styles, array('files' => true, 'class' => 'form-horizontal', 'id' => 'form-with-validation', 'method' => 'PATCH', 'route' => array(config('quickadmin.route').'.styles.update', $styles->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',$styles->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',$styles->body), array('class'=>'form-control')) !!} </div> </div><div class="form-group"> {!! Form::label('catalogs_id', 'catalog_id', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::select('catalogs_id', $catalogs, old('catalogs_id',$styles->catalogs_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('showhide', 'showhide', array('class'=>'col-sm-2 control-label')) !!} <div class="col-sm-10"> {!! Form::select('showhide', $showhide, old('showhide',$styles->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').'.styles.index', trans('quickadmin::templates.templates-view_edit-cancel'), null, array('class' => 'btn btn-default')) !!} </div> </div> {!! Form::close() !!} @endsection