jonnybarnes.uk/resources/views/micropubnewnotepage.blade.php

45 lines
1.4 KiB
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
@extends('master')
@section('title')
2016-12-10 11:48:17 +00:00
New Note «
2016-05-19 15:01:28 +01:00
@stop
@section('content')
<p>This is my UI for posting new notes, hopefully youll soon be able to use this if your site supports the micropub API.</p>
@if($errors->endpoint->first() != '')
<p class="error">{{ $errors->endpoint->first() }}</p>
@endif
@if($errors->indieauth->first() != '')
<p class="error">{{ $errors->indieauth->first() }}</p>
@endif
@if($url === null)
<form action="/beginauth" method="post" id="login">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset>
<legend>IndieAuth</legend>
<label for="indie_auth_url" accesskey="a">Web Address: </label><input type="text" name="me" id="indie_auth_url" placeholder="yourdomain.com">
<label for="kludge"></label><button type="submit" name="sign-in" id="sign-in" value="Sign in">Sign in</button>
</fieldset>
</form>
@else
<p>You are authenticated as <code>{{ $url }}</code>, <a href="/logout">log out</a>.</p>
@endif
@include('templates.new-note-form', [
'micropub' => true,
'action' => '/notes/new',
'id' => 'newnote'
])
@stop
@section('scripts')
@include('templates.mapbox-links')
2016-05-19 15:01:28 +01:00
<script src="/assets/frontend/fetch.js"></script>
<script src="/assets/frontend/store2.min.js"></script>
<script src="/assets/frontend/alertify.js"></script>
2016-07-18 10:30:49 +01:00
<script src="/assets/js/form-save.js"></script>
<script src="/assets/js/newnote.js"></script>
2016-05-19 15:01:28 +01:00
<link rel="stylesheet" href="/assets/frontend/alertify.css">
2016-05-19 15:01:28 +01:00
@stop