datatracker/ietf/templates/doc/draft/change_stream_state.html
Henrik Levkowetz 5d8306cfc8 Merged in [9733] from lars@netapp.com:
First round of HTML fixes identified by test-crawl --vnu.
 - Legacy-Id: 9764
Note: SVN reference [9733] has been migrated to Git commit 205df716f8bf4b7dae9e2637f3aa1ba048a158f9
2015-07-18 08:55:30 +00:00

49 lines
1.4 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load bootstrap3 %}
{% block title %}Change {{ state_type.label }} for {{ doc }}{% endblock %}
{% block content %}
{% origin %}
<h1>Change {{ state_type.label }}<br><small>{{ doc }}</small></h1>
{% if next_states %}
<p>
<b>Move document to {{ next_states|pluralize:"to one of" }} the recommended next state{{ next_states|pluralize }}:</b>
</p>
<p class="buttonlist">
{% for state in next_states %}
<button class="btn btn-default next-state" data-state="{{ state.pk }}">{{ state.name }}</button>
{% endfor %}
<a class="btn btn-info pull-right" href="{% url "state_help" type=state_type.slug %}">Help on states</a>
</p>
{% endif %}
<form method="post">
{% csrf_token %}
{% bootstrap_form form %}
{% buttons %}
<button type="submit" class="btn btn-primary">Submit</button>
<a class="btn btn-default pull-right" href="{{ doc.get_absolute_url }}">Back</a>
{% endbuttons %}
</form>
{% endblock %}
{% block js %}
<script>
$(document).ready(function () {
$("button.next-state").click(function (e) {
var s = $(this).data("state");
if (s) {
e.preventDefault();
$("#id_new_state").val(s);
}
});
});
</script>
{% endblock %}