Skip to content

Instantly share code, notes, and snippets.

@sranso
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sranso/9477722 to your computer and use it in GitHub Desktop.
Save sranso/9477722 to your computer and use it in GitHub Desktop.
<!-- public/app/partials/show-all.html -->
<div class="new-quote-form ng-hide">
<h3>New Quote</h3>
<form>
<div class="row">
<div class="large-12 columns">
<label for="body">Body
<br>
<textarea ng-model="newItem.body" rows="4" cols="70" placeholder="To improve is to change..."></textarea>
</label>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<br>
<label>Author First Name</label>
<input ng-model="newItem.author.firstName" type="text" placeholder="Winston"/>
<label>Author Last Name</label>
<input ng-model="newItem.author.lastName" type="text" placeholder="Churchill"/>
</div>
</div>
<p></p>
<div class="small-4 columns">
<a class="button postfix" href="#" ng-click="hideForm()">Cancel</a>
</div>
<div class="small-4 columns">
<a class="button postfix" ng-click="submit(newItem); hideForm()">Add Quote</a>
</div>
</div>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment