FEATURE: style templates management
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
@if (!$isWritable)
|
||||
<div class="alert alert-warning">
|
||||
@lang('admin/templates.notWritable', ['file' => $path->path])
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form action="{{route('templates.postEdit', ['id' => $template->id])}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
@include('admin.snippets.aceEditor', [
|
||||
'value' => old('templateContent', $templateContent),
|
||||
'theme' => 'xcode',
|
||||
'mode' => 'html',
|
||||
'name' => 'templateContent',
|
||||
'rows' => '20'
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<label class="label-control">
|
||||
@lang('admin/templates.name')
|
||||
</label>
|
||||
<input type="text" class="form-control" name="name" value="{{old('name', $template->name)}}" />
|
||||
|
||||
|
||||
<label class="label-control">
|
||||
@lang('admin/templates.description')
|
||||
</label>
|
||||
<textarea class="form-control" name="description"
|
||||
rows="3">{{old('description', $template->description)}}</textarea>
|
||||
|
||||
<button type="submit" class="btn btn-primary">
|
||||
@lang('admin/templates.edit', ['name' => $template->template_name])
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user