Update views for the micropub client
This commit is contained in:
parent
fa04718a75
commit
997da7a7e9
2 changed files with 37 additions and 5 deletions
|
@ -9,6 +9,8 @@ Micropub Config «
|
|||
<dl>
|
||||
<dt>Me (your url)</dt><dd>{{ $data['me'] }}</dd>
|
||||
<dt>Token</dt><dd>{{ $data['token'] }}</dd>
|
||||
<dt>Syndication Targets</dt><dd>{{ $data['syndication'] }}</dd>
|
||||
<dt>Syndication Targets</dt><dd><ul>@foreach ($data['syndication'] as $syn)<li>{{ $syn['name'] }} ({{ $syn['target'] }})</li>@endforeach</ul></dd>
|
||||
<dt>Media Endpoint</dt><dd>{{ $data['media-endpoint'] }}</dd>
|
||||
</dl>
|
||||
<p><a href="{{ route('micropub-query-action') }}">Re-query</a> the endpoint.</p>
|
||||
@stop
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
@if($syndication)
|
||||
<div>
|
||||
<label for="syndication" accesskey="s">Syndication: </label>
|
||||
<ul class="/micropub/syndication-targets-list" name="syndication">
|
||||
<ul name="syndication">
|
||||
@foreach($syndication as $syn)
|
||||
<li><input type="checkbox"
|
||||
name="mp-syndicate-to[]"
|
||||
|
@ -35,10 +35,16 @@
|
|||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
<a href="/micropub/refresh-syndication-targets">Refresh Syndication Targets</a>
|
||||
</div>
|
||||
@if($mediaURLs)
|
||||
<ul>
|
||||
@foreach($mediaURLs as $mediaURL)
|
||||
<li>{{ $mediaURL }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<a href="/micropub/media/clearlinks">Clear media</a>
|
||||
@endif
|
||||
@endif
|
||||
@if(!$mediaEndpoint)
|
||||
<div>
|
||||
<label for="photo" accesskey="p">Photo: </label>
|
||||
<input type="file"
|
||||
|
@ -49,6 +55,7 @@
|
|||
multiple
|
||||
>
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
<label for="locate" accesskey="l"></label>
|
||||
<button type="button"
|
||||
|
@ -65,3 +72,26 @@
|
|||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@if($mediaEndpoint)
|
||||
<form action="{{ route('process-media') }}" method="post" enctype="multipart/form-data" accept-charset="utf8" name="media-upload">
|
||||
{{ csrf_field() }}
|
||||
<fieldset class="note-ui">
|
||||
<legend>Media Upload</legend>
|
||||
<div>
|
||||
<label for="media" accesskey="m">Media: </label>
|
||||
<input type="file"
|
||||
accept="audio/*,video/*,image/*,application/pdf,.md"
|
||||
value="Upload"
|
||||
name="file[]"
|
||||
id="media"
|
||||
multiple
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<label for="kludge"></label>
|
||||
<button type="submit" name="upload-media" id="upload-media">Upload Media</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
@endif
|
||||
|
|
Loading…
Add table
Reference in a new issue