datatracker/ietf/templates/help/states.html

38 lines
1.3 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}{{ type.label|cut:"state"|cut:"state" }} states{% endblock %}
{% block content %}
{% origin %}
<h1>{{ type.label|cut:"state"|cut:"State" }} states</h1>
<table class="table table-sm table-striped tablesorter">
<thead>
<tr>
<th scope="col" data-sort="state">State</th>
<th scope="col" data-sort="desc">Description</th>
<th scope="col" data-sort="next">Next states</th>
</tr>
</thead>
<tbody>
{% for state in states %}
<tr>
<th scope="row">{{ state.name }}</th>
<td>{{ state.desc|safe }}</td>
<td>
<ul>
{% for s in state.next_states.all %}
<li>{{ s.name }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block js %}
<script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}