|
@@ -1,14 +1,16 @@
|
|
<template name="postSubmit">
|
|
<template name="postSubmit">
|
|
<form class="main form page">
|
|
<form class="main form page">
|
|
- <div class="form-group">
|
|
+ <div class="form-group {{ errorClass 'url' }}">
|
|
<label class="control-label" for="url">URL</label>
|
|
<label class="control-label" for="url">URL</label>
|
|
<div class="controls">
|
|
<div class="controls">
|
|
<input name="url" id="url" type="text" value="" placeholder="Your URL" class="form-control" />
|
|
<input name="url" id="url" type="text" value="" placeholder="Your URL" class="form-control" />
|
|
|
|
+ <span class="help-block">{{ errorMessage 'url' }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="form-group">
|
|
+ <div class="form-group {{ errorClass 'title' }}">
|
|
<label class="control-label" for="title">Title</label>
|
|
<label class="control-label" for="title">Title</label>
|
|
<input name="title" id="title" type="text" value="" placeholder="Name your post" class="form-control" />
|
|
<input name="title" id="title" type="text" value="" placeholder="Name your post" class="form-control" />
|
|
|
|
+ <span class="help-block">{{ errorMessage 'title' }}</span>
|
|
</div>
|
|
</div>
|
|
<input type="submit" value="Submit" class="btn btn-primary" />
|
|
<input type="submit" value="Submit" class="btn btn-primary" />
|
|
</form>
|
|
</form>
|