view share/roundup/templates/jinja2/html/keyword.item.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 6dabae8da31a
children
line wrap: on
line source

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

{% block head_title %}
  {% trans %}Keyword editing{% endtrans %}
{% endblock %}

{% block page_header %}
  {% trans %}Keyword editing{% endtrans %}
{% endblock %}

{% block content %}

  <h4>Existing Keywords</h4>
  <ul class='nav nav-pills nav-stacked'>
    {% for keyword in db.keyword.list() %}
      <li class='nav-item'>
        <a class='nav-link {{ 'active' if context.id == keyword.id else '' }}' href='keyword{{ keyword.id }}'>{{ keyword.name.plain()|u }}</a>
      </li>
    {% else %}
      <p class='text-mute'>{% trans %}There are no keywords yet.  Be the first -{% endtrans %}</p>
    {% endfor %}
    {% if context.id %}
    <li class='nav-item'>
      <a class='nav-link close' href='keyword?@template=item' aria-label="Close">
        <span aria-hidden="true">&times;</span>
      </a>
    </li>
    {% endif %}
  </ul>
  <p class='text-warning'>
   {% trans %}To edit an existing keyword (for spelling or typing errors),
   click on its entry above.{% endtrans %}
  </p>


  <form class='form-inline' method="POST" action='{{ context.designator() }}'>
    <input type='text' class='input-xlarge' name='name' value='{{ context.name if context.id else '' }}'>
    <input type="hidden" name="@required" value="name">
    <input type="hidden" name="@template" value="item">
    {{ context.submit(html_kwargs={ 'class': 'btn btn-primary' })|u|safe }}
  </form>
{% endblock %}

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