2018-10-26 23:03:03 +10:30

28 lines
1004 B
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" placeholder="Post content.&#13;&#10;Markdown supported!" required></textarea>
<br>
<div class="buttonContainer">
<button type="submit">Submit</button>
<button type="preview">Preview</button>
</div>
</form>