chromium-dashboard/templates/guide/stage.html

109 строки
3.3 KiB
HTML

{% extends "_base.html" %}
{% block page_title %}{{ feature.name }} - {% endblock %}
{% block css %}
<link rel="stylesheet" href="/static/css/forms.css">
<link rel="stylesheet" href="/static/css/guide.css">
{% endblock %}
{% block subheader %}
<div id="subheader">
<h2 id="breadcrumbs">
<a href="/guide/edit/{{ feature_id }}">
<iron-icon icon="chromestatus:arrow-back"></iron-icon>
Edit feature: {{ feature.name }}
</a>
</h2>
</div>
<h3>{{ stage_name }}</h3>
{% endblock %}
{% block content %}
<form name="feature_form" method="POST" action="{{current_path}}">
<input type="hidden" name="token" value="{{xsrf_token}}">
<input type="hidden" name="form_fields"
value="{{ feature_form.fields.keys | join:',' }},
{% if impl_status_form %}
{{ impl_status_form.fields.keys | join:',' }}
{% endif %}" >
<section class="stage_form">
<table>
{{ feature_form }}
<tr>
<th><b>Process stage:</b></th>
<td>
{% if already_on_this_stage %}
This feature is already in stage <b>{{ stage_name }}</b>.
{% else %}
<input type="checkbox" name="set_stage"
id="set_stage">
<label for="set_stage">
Set to: <b>{{ stage_name }}</b>
<br>
<span class="helptext">
Check this box to move this feature to this
stage in the process. Leave it unchecked if you are adding
draft information or revising a previous stage.
</span>
</label>
{% endif %}
</td>
</tr>
</table>
</section>
{% if impl_status_name or impl_status_form %}
<h3>Implementation in Chromium</h3>
<section class="stage_form">
<table>
{% if impl_status_name %}
<tr>
<th>Implementation status:</th>
<td>
{% if already_on_this_impl_status %}
This feature already has implementation status:
<b>{{ impl_status_name }}</b>.
{% else %}
<input type="hidden" name="impl_status_offered"
value="{{impl_status_offered}}">
<input type="checkbox" name="set_impl_status"
id="set_impl_status">
<!-- TODO(jrobbins): When checked, make some milestone fields required. -->
<label for="set_impl_status">
Set implementation status to: <b>{{ impl_status_name }}</b>
<br>
<span class="helptext">
Check this box to update the implementation
status of this feature in Chromium.
</span>
</label>
{% endif %}
</td>
</tr>
{% endif %}
{{ impl_status_form }}
</table>
</section>
{% endif %}
<div style="padding-left: 220px" class="final_buttons">
<input class="button" type="submit" value="Submit">
<button id="cancel-button" data-id="{{ feature_id }}"
type="reset">Cancel</button>
</div>
</form>
{% endblock %}
{% block js %}
<script src="/static/js/admin/feature_form.min.js"
nonce="{{nonce}}"></script>
{% endblock %}