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>
|
<dl>
|
||||||
<dt>Me (your url)</dt><dd>{{ $data['me'] }}</dd>
|
<dt>Me (your url)</dt><dd>{{ $data['me'] }}</dd>
|
||||||
<dt>Token</dt><dd>{{ $data['token'] }}</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>
|
</dl>
|
||||||
|
<p><a href="{{ route('micropub-query-action') }}">Re-query</a> the endpoint.</p>
|
||||||
@stop
|
@stop
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
@if($syndication)
|
@if($syndication)
|
||||||
<div>
|
<div>
|
||||||
<label for="syndication" accesskey="s">Syndication: </label>
|
<label for="syndication" accesskey="s">Syndication: </label>
|
||||||
<ul class="/micropub/syndication-targets-list" name="syndication">
|
<ul name="syndication">
|
||||||
@foreach($syndication as $syn)
|
@foreach($syndication as $syn)
|
||||||
<li><input type="checkbox"
|
<li><input type="checkbox"
|
||||||
name="mp-syndicate-to[]"
|
name="mp-syndicate-to[]"
|
||||||
|
@ -35,10 +35,16 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div>
|
@if($mediaURLs)
|
||||||
<a href="/micropub/refresh-syndication-targets">Refresh Syndication Targets</a>
|
<ul>
|
||||||
</div>
|
@foreach($mediaURLs as $mediaURL)
|
||||||
|
<li>{{ $mediaURL }}</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
<a href="/micropub/media/clearlinks">Clear media</a>
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
|
@if(!$mediaEndpoint)
|
||||||
<div>
|
<div>
|
||||||
<label for="photo" accesskey="p">Photo: </label>
|
<label for="photo" accesskey="p">Photo: </label>
|
||||||
<input type="file"
|
<input type="file"
|
||||||
|
@ -49,6 +55,7 @@
|
||||||
multiple
|
multiple
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
<div>
|
<div>
|
||||||
<label for="locate" accesskey="l"></label>
|
<label for="locate" accesskey="l"></label>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
|
@ -65,3 +72,26 @@
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</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
Add a link
Reference in a new issue