# extends 'base.html'
# import 'macro/forms.html' as forms

# block content
<div class="page-header">
    <h1>{{title}}</h1>
  </div>
  <div class="row">
    <div class="col-md-4">
      <form method="POST" action="." novalidate>
        <fieldset>
          {{form.csrf_token}}
          {{forms.text_field(form.code, autofocus=True)}}
          {{forms.text_field(form.name)}}
          {{forms.date_field(form.date_for)}}
          {{forms.date_field(form.date_paid)}}
          {{forms.number_field(form.amount)}}
          <button type="submit" class="btn btn-primary btn-block btn-loading" data-loading-text="Please wait..">
            # if pay_db.key.id()
              Update
            # else
              Create
            # endif
          </button>
          {{forms.checkbox_field(form.add_more)}}
        </fieldset>
      </form>
    </div>
  </div>
# endblock

# extends 'base.html'
# import 'macro/forms.html' as forms

# block content
<div class="page-header">
    <h1>{{title}}</h1>
  </div>
  <div class="row">
    <div class="col-md-4">
      <form method="POST" action="." novalidate>
        <fieldset>
          {{form.csrf_token}}
          {{forms.text_field(form.code, autofocus=True)}}
          {{forms.text_field(form.name)}}
          {{forms.date_field(form.date_for)}}
          {{forms.date_field(form.date_paid)}}
          {{forms.number_field(form.amount)}}
          # if pay_db.key.id()
          <button type="submit" class="btn btn-primary btn-block btn-loading" data-loading-text="Please wait..">
            Update
          </button>
          # else
          <button type="submit" class="btn btn-primary btn-block btn-loading" data-loading-text="Please wait..">
            Create
          </button>
          {{forms.checkbox_field(form.add_more)}}
          # endif
        </fieldset>
      </form>
    </div>
  </div>
# endblock

Add more added only in new records
Add more added only in new records
