jonnybarnes.uk/resources/views/micropubnewnotepage.blade.php
Jonny Barnes 5ec516ab19 Squashed commit of the following:
commit 92c55c5705
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Thu Jun 16 23:26:41 2016 +0100

    Update resource links

commit a72719dc24
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Thu Jun 16 23:18:44 2016 +0100

    Move hand-made js to resources
2016-06-16 23:28:07 +01:00

45 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('master')
@section('title')
New Note « Jonny Barnes
@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')
<link rel="stylesheet" href="https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.css">
<script src="https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.js"></script>
<script src="{{ elixir('assets/bower/fetch.js') }}"></script>
<script src="{{ elixir('assets/bower/store2.min.js') }}"></script>
<script src="{{ elixir('assets/bower/alertify.js') }}"></script>
<script src="{{ elixir('assets/js/form-save.js') }}"></script>
<script src="{{ elixir('assets/js/newnote.js') }}"></script>
<link rel="stylesheet" href="{{ elixir('assets/bower/alertify.css') }}">
@stop