67 lines
2 KiB
PHP
67 lines
2 KiB
PHP
<form action="{{ $action }}" method="post" enctype="multipart/form-data" accept-charset="utf-8"@if($micropub) name="micropub"@endif>
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
<fieldset class="note-ui">
|
|
<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>
|
|
@if ($micropub === true)
|
|
@if($syndication)
|
|
<div>
|
|
<label for="syndication" accesskey="s">Syndication: </label>
|
|
<ul class="/micropub/syndication-targets-list" name="syndication">
|
|
@foreach($syndication as $syn)
|
|
<li><input type="checkbox"
|
|
name="mp-syndicate-to[]"
|
|
id="{{ $syn['target'] }}"
|
|
value="{{ $syn['target'] }}"
|
|
checked="checked"
|
|
> <label for="{{ $syn['target'] }}">{{ $syn['name'] }}</label>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
<div>
|
|
<a href="/refresh-syndication-targets">Refresh Syndication Targets</a>
|
|
</div>
|
|
@endif
|
|
<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>
|