Submit Button

Scripting Custom Views Form Helpers

The submit_tag helper tag generates a submit button.

  • label: The button's text.
  • id: The button's ID attribute. By default this is empty.
Helper Tag
{% submit_tag label: "Save", id: "id" %}
HTML Output
<button class="btn btn-primary" type="submit" id="id">
  Save
</button>