daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- create_with_author.html :: part 3 -->
  2.  
  3. <form class="form-horizontal" method="POST" action="">
  4.     {% csrf_token %}
  5. <div class="row spacer">
  6. <div class="col-2">
  7.     <label>{{bookform.name.label}}</label>
  8. </div>
  9. <div class="col-4">
  10.     <div class="input-group">
  11.         {{bookform.name}}
  12.     </div>
  13. </div>
  14. </div>
  15. {{ formset.management_form }}
  16. {% for form in formset %}
  17. <div class="row form-row spacer">
  18.     <div class="col-2">
  19.         <label>{{form.name.label}}</label>
  20.     </div>
  21.     <div class="col-4">
  22.         <div class="input-group">
  23.             {{form.name}}
  24.             <div class="input-group-append">
  25.                 <button class="btn btn-success add-form-row">+</button>
  26.             </div>
  27.         </div>
  28.     </div>
  29. </div>
  30. {% endfor %}
  31. <div class="row spacer">
  32.     <div class="col-4 offset-2">
  33.         <button type="submit" class="btn btn-block btn-primary">Create</button>
  34.     </div>
  35. </div>
  36. </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top