add-book.template.html 1.0 KB

12345678910111213141516171819202122232425262728
  1. <div class="modal-header">
  2. <h3 class="modal-title">Add new book</h3>
  3. </div>
  4. <div class="modal-body">
  5. <form>
  6. <div class="form-group">
  7. <input type="text" placeholder="Title" class="form-control" ng-model="newBook.title">
  8. </div>
  9. <div class="form-group">
  10. <select class="form-control" ng-model="newBook.author_id" ng-options="author.id as author.name for author in authors">
  11. <option value="" disabled>-- Select author --</option>
  12. </select>
  13. </div>
  14. <div class="form-group">
  15. <input type="number" placeholder="Cost" class="form-control" ng-model="newBook.cost">
  16. </div>
  17. <div class="form-group">
  18. <input type="number" placeholder="Rate" class="form-control" min="0" max="10" ng-model="newBook.rate">
  19. </div>
  20. <div class="form-group">
  21. <textarea rows="10" placeholder="Intro" class="form-control" ng-model="newBook.intro"></textarea>
  22. </div>
  23. </form>
  24. </div>
  25. <div class="modal-footer">
  26. <button class="btn btn-danger" ng-click="cancel()">Cancel</button>
  27. <button class="btn btn-success" ng-click="ok()">Ok</button>
  28. </div>