Added buttons for edit/delete
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Blog Post Update ::
|
||||
Category Update ::
|
||||
@parent
|
||||
@stop
|
||||
|
||||
@@ -10,19 +10,18 @@ Blog Post Update ::
|
||||
@section('content')
|
||||
<div class="page-header">
|
||||
<h3>
|
||||
Blog Post Update
|
||||
Update Category
|
||||
|
||||
<div class="pull-right">
|
||||
<a href="{{ route('blogs') }}" class="btn btn-small btn-inverse"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
|
||||
<a href="{{ route('categories') }}" class="btn btn-small btn-inverse"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
|
||||
</div>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<!-- Tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tab-general" data-toggle="tab">General</a></li>
|
||||
<li><a href="#tab-meta-data" data-toggle="tab">Meta Data</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<form class="form-horizontal" method="post" action="" autocomplete="off">
|
||||
<!-- CSRF Token -->
|
||||
@@ -30,80 +29,36 @@ Blog Post Update ::
|
||||
|
||||
<!-- Tabs Content -->
|
||||
<div class="tab-content">
|
||||
<!-- General tab -->
|
||||
|
||||
<div class="tab-pane active" id="tab-general">
|
||||
<!-- Post Title -->
|
||||
<div class="control-group {{ $errors->has('title') ? 'error' : '' }}">
|
||||
<label class="control-label" for="title">Post Title</label>
|
||||
<!-- Category Title -->
|
||||
<div class="control-group {{ $errors->has('name') ? 'error' : '' }}">
|
||||
<label class="control-label" for="name">Category Name</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="title" id="title" value="{{ Input::old('title', $post->title) }}" />
|
||||
<input type="text" name="name" id="name" value="{{ Input::old('name', $category->name) }}" />
|
||||
{{ $errors->first('title', '<span class="help-inline">:message</span>') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Post Slug -->
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="slug">Slug</label>
|
||||
<!-- Category Parent Title -->
|
||||
<div class="control-group {{ $errors->has('parent') ? 'error' : '' }}">
|
||||
<label class="control-label" for="parent">Category Parent</label>
|
||||
<div class="controls">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">
|
||||
{{ str_finish(URL::to('/'), '/') }}
|
||||
</span>
|
||||
<input class="span6" type="text" name="slug" id="slug" value="{{ Input::old('slug', $post->slug) }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div class="control-group {{ $errors->has('content') ? 'error' : '' }}">
|
||||
<label class="control-label" for="content">Content</label>
|
||||
<div class="controls">
|
||||
<textarea class="span10" name="content" value="content" rows="10">{{ Input::old('content', $post->content) }}</textarea>
|
||||
{{ $errors->first('content', '<span class="help-inline">:message</span>') }}
|
||||
<input type="text" name="parent" id="parent" value="{{ Input::old('name', $category->parent) }}" />
|
||||
{{ $errors->first('parent', '<span class="help-inline">:message</span>') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Meta Data tab -->
|
||||
<div class="tab-pane" id="tab-meta-data">
|
||||
<!-- Meta Title -->
|
||||
<div class="control-group {{ $errors->has('meta-title') ? 'error' : '' }}">
|
||||
<label class="control-label" for="meta-title">Meta Title</label>
|
||||
<div class="controls">
|
||||
<input class="span10" type="text" name="meta-title" id="meta-title" value="{{ Input::old('meta-title', $post->meta_title) }}" />
|
||||
{{ $errors->first('meta-title', '<span class="help-inline">:message</span>') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Meta Description -->
|
||||
<div class="control-group {{ $errors->has('meta-description') ? 'error' : '' }}">
|
||||
<label class="control-label" for="meta-description">Meta Description</label>
|
||||
<div class="controls">
|
||||
<input class="span10" type="text" name="meta-description" id="meta-description" value="{{ Input::old('meta-description', $post->meta_description) }}" />
|
||||
{{ $errors->first('meta-description', '<span class="help-inline">:message</span>') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Meta Keywords -->
|
||||
<div class="control-group {{ $errors->has('meta-keywords') ? 'error' : '' }}">
|
||||
<label class="control-label" for="meta-keywords">Meta Keywords</label>
|
||||
<div class="controls">
|
||||
<input class="span10" type="text" name="meta-keywords" id="meta-keywords" value="{{ Input::old('meta-keywords', $post->meta_keywords) }}" />
|
||||
{{ $errors->first('meta-keywords', '<span class="help-inline">:message</span>') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Form Actions -->
|
||||
<!-- Form actions -->
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<a class="btn btn-link" href="{{ route('blogs') }}">Cancel</a>
|
||||
|
||||
<button type="reset" class="btn">Reset</button>
|
||||
|
||||
<button type="submit" class="btn btn-success">Publish</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@stop
|
||||
|
||||
@@ -13,7 +13,7 @@ Asset Categories ::
|
||||
Asset Categories
|
||||
|
||||
<div class="pull-right">
|
||||
<a href="#" class="btn btn-small btn-info"><i class="icon-plus-sign icon-white"></i> Create</a>
|
||||
<a href="{{ route('create/category') }}" class="btn btn-small btn-info"><i class="icon-plus-sign icon-white"></i> Create</a>
|
||||
</div>
|
||||
</h3>
|
||||
</div>
|
||||
@@ -38,8 +38,8 @@ Asset Categories ::
|
||||
<td>{{ $category->parent }}</td>
|
||||
<td>{{ $category->created_at->diffForHumans() }}</td>
|
||||
<td>
|
||||
<a href="#" class="btn btn-mini">@lang('button.edit')</a>
|
||||
<a href="#" class="btn btn-mini btn-danger">@lang('button.delete')</a>
|
||||
<a href="{{ route('update/category', $category->id) }}" class="btn btn-mini">@lang('button.edit')</a>
|
||||
<a href="{{ route('delete/category', $category->id) }}" class="btn btn-mini btn-danger">@lang('button.delete')</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<li{{ (Request::is('admin/settings/categories*') ? ' class="active"' : '') }}><a href="{{ URL::to('admin/settings/categories') }}"><i class="icon-th"></i> Categories</a></li>
|
||||
|
||||
<li{{ (Request::is('admin/groups*') ? ' class="active"' : '') }}><a href="{{ URL::to('admin/groups') }}"><i class="icon-arrow-down"></i> Depreciation</a></li>
|
||||
<li{{ (Request::is('admin/settings*') ? ' class="active"' : '') }}><a href="{{ URL::to('admin/users') }}"><i class="icon-wrench"></i> Settings</a></li>
|
||||
<li{{ (Request::is('admin/settings') ? ' class="active"' : '') }}><a href="{{ URL::to('admin/users') }}"><i class="icon-wrench"></i> Settings</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user