23 lines
770 B
HTML
23 lines
770 B
HTML
<h1>Create a new post</h1>
|
|
<form class="createForm" ng-submit="onSubmit()">
|
|
<input type="text" class="title" ng-model="title" placeholder="Title">
|
|
<br>
|
|
<input type="text" class="author" ng-model="author" placeholder="Author">
|
|
<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="Tags">
|
|
</span>
|
|
<br>
|
|
<textarea class="content" ng-model="content" placeholder="Content..."></textarea>
|
|
<br>
|
|
<input class="submit" type="submit">
|
|
</form>
|