view share/roundup/templates/jinja2/html/user.index.html @ 8566:e4191aa7b402 default tip

doc: issue2551415 correct doc for change input->input_payload in 2.5 the rest interface changed a variable name from input to input_payload. An earlier commit changed the rest docs. This commit adds an item for it to the upgrading 2.4.0->2.5.0 section. Also cross reference added to the rest docs with the updated examples.
author John Rouillard <rouilj@ieee.org>
date Thu, 09 Apr 2026 00:19:06 -0400
parents ffaf89a4a9d9
children
line wrap: on
line source

{% extends 'layout/page.html' %}

{% block head_title %}
  {% trans %}User listing{% endtrans %} - {{ config.TRACKER_NAME }}
{% endblock %}

{% block page_header %}
  {% trans %}User listing{% endtrans %}
{% endblock %}

{% block content %}

  {% include 'layout/permission.html' %}

  {% if context.is_view_ok() %}
    <table class='table'>
      <tr class='info'>
        <td>{% trans %}Username{% endtrans %}</td>
        <td>{% trans %}Real name{% endtrans %}</td>
        <td>{% trans %}Organisation{% endtrans %}</td>
        <td>{% trans %}Email address{% endtrans %}</td>
        <td>{% trans %}Phone number{% endtrans %}</td>
        {% if context.is_retire_ok() %}
          <td>{% trans %}Retire{% endtrans %}</td>
        {% endif %}
      </tr>
      {% for user in context.list() %}
        <tr>
          <td>
            <a href='user{{ user.id }}'>{{ user.username.plain()|u }}</a>
          </td>
          <td>{{ user.realname.plain()|u }}</td>
          <td>{{ user.organisation.plain()|u }}</td>
          <td>{{ user.address.email()|u }}</td>
          <td>{{ user.phone.plain()|u }}</td>
          {% if context.is_retire_ok() %}
            <td>
              <form method="POST" action='user{{ user.id }}' class='form-inline'>
                <input type="hidden" name="@template" value="index">
                <input name="@csrf" type="hidden"
                       value="{{ utils.anti_csrf_nonce() }}">
                <input type="hidden" name="@action" value="retire">
                <input type="submit" value="{% trans %}retire{% endtrans %}" class='btn btn-sm btn-danger'>
              </form>
            </td>
          {% endif %}
        </tr>
      {% endfor %}
    </table>
  {% endif %}

{% endblock %}

Roundup Issue Tracker: http://roundup-tracker.org/