-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.blade.php
65 lines (57 loc) · 1.92 KB
/
create.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@extends('pages::layouts.master')
@section('page-title')
create page
@endsection
@section('page-details','')
@section('style')
@endsection
@section('breadcrumb')
<li>
<a href="{{ url('/page') }}">manage page</a>
</li>
<li class="active">
create page
</li>
@endsection
@section('page-content')
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-tools">
<a class="btn btn-success btn-sm" style="margin-top: -4px;" href="{{ url('/page') }}">manage page</a>
</div>
</div>
<div class="panel-body">
<form role="form" class="form-horizontal" method="POST" action="{{ url('/page/store') }}">
{{ csrf_field() }}
{{ method_field('put') }}
<div class="form-group{{ $errors->has('title') ? ' has-error' : '' }}">
<label class="col-sm-2 control-label" for="title">
title page
</label>
<div class="col-sm-7">
<input class="form-control" tabindex="1" name="title" id="title-fa" maxlength="128" type="text" required value="{{ old('title') }}">
<span class="help-block{{ $errors->has('title') ? ' has-error' : '' }}">{{ $errors->first('title') }}</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="long-text">content text</label>
<div class="col-sm-9">
<textarea class="form-control" id="content_text" name="content_text" rows="20"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-7">
<button type="submit" tabindex="6" class="btn btn-info btn-md">submit</button>
</div>
</div>
</form>
</div>
</div>
@endsection
@section('javascript-link')
<script>
CKEDITOR.replace( 'content_text' );
</script>
@endsection
@section('javascript-code')
@endsection