codeforamerica/intake

View on GitHub
user_accounts/templates/user_accounts/invite_form.jinja

Summary

Maintainability
Test Coverage
{% extends "admin_form_base.jinja" %}
{% import 'macros.jinja' as macros %}

{%- block header_title -%}
Invite a new user
{%- endblock header_title -%}
{% block form %}
<form id="invite-form" method="POST" action="{{ url('invitations:send-invite') }}">
  <p>Please add an email and organization below. The user will recieve an email with instructions.</p>
  {% include "includes/csrf_field.jinja" %}
  {{ macros.render_form_fields(form) }}
  <p>
    <input type="submit" value="Invite" class="btn btn-lg btn-primary generic-ajax-submit">  
  </p>
</form> 
{% endblock form %}