2016-05-19 15:01:28 +01:00
|
|
|
@extends('master')
|
|
|
|
|
2017-11-04 12:10:46 +00:00
|
|
|
@section('title')New Note « Admin CP « @stop
|
2016-05-19 15:01:28 +01:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
@if (count($errors) > 0)
|
2017-11-04 12:10:46 +00:00
|
|
|
<div class="errors">
|
|
|
|
<ul>
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-05-19 15:01:28 +01:00
|
|
|
@endif
|
|
|
|
@include('templates.new-note-form', [
|
|
|
|
'micropub' => false,
|
2017-03-03 13:22:21 +00:00
|
|
|
'action' => '/admin/note',
|
2016-05-19 15:01:28 +01:00
|
|
|
'id' => 'newnote-admin'
|
|
|
|
])
|
2017-11-04 12:10:46 +00:00
|
|
|
<form action="{{ $action }}" method="post" enctype="multipart/form-data" accept-charset="utf-8"@if($micropub) name="micropub"@endif>
|
|
|
|
{{ csrf_field() }}
|
|
|
|
<fieldset>
|
|
|
|
<legend>New Note</legend>
|
|
|
|
<div>
|
|
|
|
<label for="in-reply-to" accesskey="r">Reply-to: </label>
|
|
|
|
<input type="text"
|
|
|
|
name="in-reply-to"
|
|
|
|
id="in-reply-to"
|
|
|
|
placeholder="in-reply-to-1 in-reply-to-2 …"
|
|
|
|
value="{{ old('in-reply-to') }}"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="content" accesskey="n">Note: </label>
|
|
|
|
<textarea name="content"
|
|
|
|
id="content"
|
|
|
|
placeholder="Note"
|
|
|
|
autofocus="autofocus">
|
|
|
|
{{ old('content') }}
|
|
|
|
</textarea>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="photo" accesskey="p">Photo: </label>
|
|
|
|
<input type="file"
|
|
|
|
accept="image/*"
|
|
|
|
value="Upload"
|
|
|
|
name="photo[]"
|
|
|
|
id="photo"
|
|
|
|
multiple
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="locate" accesskey="l"></label>
|
|
|
|
<button type="button"
|
|
|
|
name="locate"
|
|
|
|
id="locate"
|
|
|
|
value="Locate"
|
|
|
|
disabled
|
|
|
|
>Locate</button>
|
|
|
|
<button type="submit"
|
|
|
|
name="submit"
|
|
|
|
id="submit"
|
|
|
|
value="Submit"
|
|
|
|
>Submit</button>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2016-05-19 15:01:28 +01:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('scripts')
|
2016-09-14 18:31:57 +01:00
|
|
|
@include('templates.mapbox-links')
|
2016-05-19 15:01:28 +01:00
|
|
|
|
2017-11-04 12:10:46 +00:00
|
|
|
<script src="/assets/js/newnote.js"></script>
|
2016-05-19 15:01:28 +01:00
|
|
|
|
2017-11-04 12:10:46 +00:00
|
|
|
<link rel="stylesheet" href="/assets/frontend/alertify.css">
|
2016-05-19 15:01:28 +01:00
|
|
|
@stop
|