{% extends "base.html" %} {% block title %}{% if editing %}Edit User{% else %}Create User{% endif %}{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %}

{% if editing %}Edit User{% else %}Create User{% endif %}

{% csrf_token %}
{% if form.username.errors %}

{{ form.username.errors.0 }}

{% endif %}
{% if form.email.errors %}

{{ form.email.errors.0 }}

{% endif %}
{% if not editing %}
{% if form.password1.errors %}

{{ form.password1.errors.0 }}

{% endif %}
{% if form.password2.errors %}

{{ form.password2.errors.0 }}

{% endif %}
{% endif %}
{% if can_change_role %} {% else %}
Only admins can change roles.
{% endif %}
{% if editing and user_obj.profile_image %}
Profile {{ form.profile_image }}
{% endif %}
Cancel
{% if editing %}

Projects

{% if project_search %} Clear {% endif %}
{% csrf_token %}
selected
{% for membership in user_memberships %} {% empty %} {% endfor %}
Project Name Description Ticket Prefix Tickets Members Actions
{{ membership.project.name }} {{ membership.project.description|default:"—"|striptags|truncatechars:50 }} {{ membership.project.ticket_prefix }} {{ membership.ticket_count }} {{ membership.member_count }}
View
{% csrf_token %}
{% if project_search %}No projects match "{{ project_search }}".{% else %}Not assigned to any projects yet.{% endif %}

Showing {{ proj_page_obj.start_index }}–{{ proj_page_obj.end_index }} of {{ proj_page_obj.paginator.count }} result{{ proj_page_obj.paginator.count|pluralize }}

{% if proj_page_obj.has_other_pages %}
{% if proj_page_obj.has_previous %} Previous {% endif %} {% for n in proj_page_obj.paginator.page_range %} {% if n == proj_page_obj.number %} {{ n }} {% elif n >= proj_page_obj.number|add:"-2" and n <= proj_page_obj.number|add:"2" %} {{ n }} {% endif %} {% endfor %} {% if proj_page_obj.has_next %} Next {% endif %}
{% endif %}

Attach Project

{% csrf_token %}
  • No projects found
{% if available_projects.exists %} {% endif %}
{% endif %}
{% endblock %}