<commit_before>@extends('core::layouts.master')

@section('title', 'Add New Post')

@section('content')

	<div class="box">
		<div class="box-header with-border">
			<h3 class="box-title">Add New Post</h3>
			<div class="box-tools pull-right">
				
			</div>
		</div>
		<div class="box-body">
			
		</div>
		<div class="box-footer">
			
		</div>
	</div>

@stop<commit_msg>updated create post article form (WIP)<commit_after>@extends('core::layouts.master')

@section('title', 'Add New Post')

@section('content')
	
	{!! Form::open(['files' => true, 'url' => cms()->route('posts.store')]) !!}
	<div class="row">
		<div class="col-md-8">
			<div class="box">
				<div class="box-header with-border">
					<h3 class="box-title">Post Contents</h3>
					<div class="box-tools pull-right"></div>
				</div>
				<div class="box-body">
					<div class="form-group">
						{!! Form::label('title', 'Title:') !!}	
						{!! Form::text('title', null, ['class' => 'form-control']) !!}
					</div>
					<div class="form-group">
						{!! Form::label('slug', 'URI Slug:') !!}	
						{!! Form::text('slug', null, ['class' => 'form-control']) !!}
					</div>
					<div class="form-group">
						{!! Form::label('body', 'Contents:') !!}	
						{!! Form::textarea('body', null, ['id' => 'editor', 'class' => 'form-control']) !!}
					</div>
				</div>
			</div>			
		</div>
		<div class="col-md-4">
			<div class="box">
				<div class="box-header with-border">
					<h3 class="box-title">Publishing</h3>
					<div class="box-tools pull-right"></div>
				</div>
				<div class="box-body">
					<div class="checkbox">
						<label>
							{!! Form::checkbox('save_as_draft', 1) !!}
							Save as draft
						</label>
					</div>
				</div>
				<div class="box-footer">
					<button class="btn btn-primary btn-block" type="submit">
						Publish
					</button>
				</div>
			</div>
			<div class="box">
				<div class="box-header with-border">
					<h3 class="box-title">Featured Image</h3>
					<div class="box-tools pull-right"></div>
				</div>
				<div class="box-body">
					<div class="fileinput fileinput-new" data-provides="fileinput">
					  <div class="fileinput-new thumbnail" style="width: 325px; height: 225px;">
					  </div>
					  <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 350px; max-height: 350px;"></div>
					  <div>
					    <span class="btn btn-default btn-file"><span class="fileinput-new">Select image</span><span class="fileinput-exists">Change</span><input type="file" name="..."></span>
					    <a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
					  </div>
					</div>
				</div>
			</div>
		</div>
	</div>
	{!! Form::close() !!}

@stop

@section('script')
	<script src="{{ Module::asset('core:components/jasny-bootstrap/dist/js/jasny-bootstrap.min.js') }}"></script>
	<script src="//cdn.jsdelivr.net/editor/0.1.0/editor.js"></script>
	<script src="//cdn.jsdelivr.net/editor/0.1.0/marked.js"></script>
	<script>
	$(function () {
		new Editor({
		  element: document.getElementById('editor'),
		});
	});
	</script>
@stop

@section('style')
	<link rel="stylesheet" href="{{ Module::asset('core:components/jasny-bootstrap/dist/css/jasny-bootstrap.min.css') }}">
	<link rel="stylesheet" href="//cdn.jsdelivr.net/editor/0.1.0/editor.css">
@stop
{'fraction_non_alphanumeric': 0.2309545317675399, 'fraction_numerical': 0.009635651912074676, 'mean_word_length': 3.3768115942028984, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3013033', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1181, 'n_words': 214}