Thomas Wade a205dc9c7e Add FAQ functionality and some style tweaks
Switched to HTML5-style routing
Reworked Express backend to accommodate HTML5-style routing
Links are now highlighted with a black background and white foreground
Reworked spacing on H1s
Added classes to nav buttons
2018-10-30 17:33:24 +10:30

29 lines
1.2 KiB
HTML

<h1>Create a new post</h1>
<form class="createForm" ng-submit="onSubmit()">
<div>
<input type="text" class="title" ng-model="title" placeholder="Title" required>
<span class="titleAuthorSeparator">by</span>
<input type="text" class="author" ng-model="author" placeholder="Author" required>
</div>
<br>
<span><!-- Wrap <tags-input> to avoid weird behaviour with following elements -->
<tags-input
on-tag-adding="onTagAdding($tag)"
use-strings="true"
min-length="1"
add-on-comma="true"
add-on-blur="true"
class="tags"
ng-model="tags"
placeholder="Add tags">
</span>
<br>
<textarea class="content" ng-model="content" ng-hide="previewing" placeholder="Post content.&#13;&#10;Markdown supported!" required></textarea>
<div class="preview" ng-bind-html="previewHtml()" ng-show="previewing"></div>
<br>
<div class="buttonContainer">
<button type="submit" ng-disabled="previewing">Submit</button>
<button type="button" ng-class="{current: previewing}" ng-click="onPreview()">{{previewing ? 'Edit' : 'Preview'}}</button>
</div>
</form>