update for version 1.0.2
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
@extends('themes.default1.admin.layout.kb')
|
||||
|
||||
@section('pages')
|
||||
active
|
||||
@stop
|
||||
@section('add-pages')
|
||||
class="active"
|
||||
@stop
|
||||
<script type="text/javascript" src="{{asset('lb-faveo/dist/js/nicEdit.js')}}"></script>
|
||||
<script type="text/javascript">
|
||||
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
|
||||
</script>
|
||||
@section('content')
|
||||
{!! Form::open(array('action' => 'Admin\kb\PageController@store' , 'method' => 'post') )!!}
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-9">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Add Pages</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',null,['class' => 'form-control color','size' => '110x15','id'=>'myNicEditor','placeholder'=>'Enter the description']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('visibility','1',true) !!}{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('visibility','0',null) !!}{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
<div style="margin-left:140px;">
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
@@ -0,0 +1,112 @@
|
||||
@extends('themes.default1.admin.layout.kb')
|
||||
|
||||
@section('pages')
|
||||
active
|
||||
@stop
|
||||
@section('all-pages')
|
||||
class="active"
|
||||
@stop
|
||||
<script type="text/javascript" src="{{asset('dist/js/EditnicEdit.js')}}"></script>
|
||||
<script type="text/javascript">
|
||||
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
|
||||
</script>
|
||||
|
||||
@section('content')
|
||||
|
||||
{!! Form::model($page,['url' => 'page/'.$page->slug, 'method' => 'PATCH','files'=>true]) !!}
|
||||
|
||||
<!-- <div class="form-group {{ $errors->has('company_name') ? 'has-error' : '' }}"> -->
|
||||
<!-- table -->
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-9">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',null,['class' => 'form-control color','size' => '110x15','id'=>'myNicEditor','placeholder'=>'Enter the description']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
{!! Form::radio('status',1,true) !!}{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status',0,null) !!}{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('visibility','1',true) !!}{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('visibility','0',null) !!}{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
<div style="margin-left:140px;">
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
|
||||
<!-- /content -->
|
@@ -0,0 +1,72 @@
|
||||
@extends('themes.default1.admin.layout.kb')
|
||||
@section('pages')
|
||||
active
|
||||
@stop
|
||||
@section('all-pages')
|
||||
class="active"
|
||||
@stop
|
||||
@section('content')
|
||||
|
||||
<link href="{{asset('lb-faveo/dist/css/dataTables.bootstrap.css')}}" rel="stylesheet">
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.pages')}}</h2></div>
|
||||
|
||||
<div class="box-body table-responsive no-padding">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
<div id="example1_wrapper" class="dataTables_wrapper form-inline dt-bootstrap table table-hover" style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<table id="allBlogs" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{Lang::get('lang.name')}}</th>
|
||||
<th>{{Lang::get('lang.created')}}</th>
|
||||
<th>{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script>
|
||||
<script src="{{asset('lb-faveo/dist/js/page.js')}}"></script>
|
||||
@stop
|
Reference in New Issue
Block a user