Put back the value attribute for the name/value pair of many input and button elements which lost the value attribute in the conversion, in order to let the backing form code determine which button was pressed.
- Legacy-Id: 9500
This commit is contained in:
parent
9190cdd946
commit
789fcb2307
|
@ -19,6 +19,6 @@
|
|||
</div>
|
||||
|
||||
{% buttons %}
|
||||
<input type="submit" class="btn btn-primary" name="save_display">
|
||||
<input type="submit" class="btn btn-primary" name="save_display" value="Save configuration">
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
{% bootstrap_form approval_text_form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="save_approval_text">Save text</button>
|
||||
<button type="submit" class="btn btn-warning" name="regenerate_approval_text">Regenerate text</button>
|
||||
<button type="submit" class="btn btn-primary" name="save_approval_text" value="Save text">Save text</button>
|
||||
<button type="submit" class="btn btn-warning" name="regenerate_approval_text" value="Regenerate text">Regenerate text</button>
|
||||
{% if user|has_role:"Secretariat" and can_announce %}
|
||||
<a class="btn btn-default" href="{% url "doc_approve_ballot" name=doc.name %}">Approve ballot</a>
|
||||
{% endif %}
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="save_last_call_text">Save text</button>
|
||||
{% if can_request_last_call and not need_intended_status %}
|
||||
<button type="submit" class="btn btn-warning" name="send_last_call_request">Save text & request last call</button>
|
||||
<button type="submit" class="btn btn-warning" name="send_last_call_request" value="Save and Request Last Call">Save text & request last call</button>
|
||||
{% endif %}
|
||||
<button type="submit" class="btn btn-warning" name="regenerate_last_call_text">Regenerate text</button>
|
||||
<button type="submit" class="btn btn-warning" name="regenerate_last_call_text" value="Gegenerate Last Call Text">Regenerate text</button>
|
||||
{% if user|has_role:"Secretariat" and can_make_last_call %}
|
||||
<a class="btn btn-danger" href="{% url "doc_make_last_call" name=doc.name %}">Issue last call</a>
|
||||
{% endif %}
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
</span>
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="save_ballot_writeup">Save</button>
|
||||
<button type="submit" class="btn btn-warning" name="issue_ballot">Save & {% if ballot_issued %}re-{% endif %}issue ballot</button>
|
||||
<button type="submit" class="btn btn-primary" name="save_ballot_writeup" value="Save Ballot Writeup">Save</button>
|
||||
<button type="submit" class="btn btn-warning" name="issue_ballot" value="Save and Issue Ballot">Save & {% if ballot_issued %}re-{% endif %}issue ballot</button>
|
||||
<a class="btn btn-default pull-right" href="{% url "doc_view" name=doc.name %}">Back</a>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
{% bootstrap_form announcement_text_form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="save_text">Submit</button>
|
||||
<button type="submit" class="btn btn-warning" name="regenerate_text">Regenerate</button>
|
||||
<button type="submit" class="btn btn-primary" name="save_text" value="Save">Submit</button>
|
||||
<button type="submit" class="btn btn-warning" name="regenerate_text" value="Reenerate"">Regenerate</button>
|
||||
|
||||
{% if user|has_role:"Secretariat" %}
|
||||
{% if announcement == "action" %}
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
</span>
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="save_ballot_writeup">Save</button>
|
||||
<button type="submit" class="btn btn-warning" name="send_ballot">Save & {% if ballot_issued %}re-{% endif %}issue ballot</button>
|
||||
<button type="submit" class="btn btn-primary" name="save_ballot_writeup" value="Save Ballot Writeup">Save</button>
|
||||
<button type="submit" class="btn btn-warning" name="send_ballot" value="Save and Re-Issue Ballot">Save & {% if ballot_issued %}re-{% endif %}issue ballot</button>
|
||||
<a class="btn btn-default pull-right" href="{% url "doc_writeup" name=charter.name %}">Back</a>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
{% bootstrap_form form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="submit_response">Submit</button>
|
||||
<button type="submit" class="btn btn-warning" name="reset_text">Reset to template text</button>
|
||||
<button type="submit" class="btn btn-primary" name="submit_response" value="Submit">Submit</button>
|
||||
<button type="submit" class="btn btn-warning" name="reset_text" value="Reset to Template Text">Reset to template text</button>
|
||||
<a class="btn btn-default pull-right" href="{% url "doc_view" name=review.canonical_name %}">Back</a>
|
||||
{% endbuttons %}
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
{% bootstrap_form form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="submit_response">Submit</button>
|
||||
<button type="submit" class="btn btn-warning" name="reset_text">Reset to template text</button>
|
||||
<button type="submit" class="btn btn-primary" name="submit_response" value="Submit">Submit</button>
|
||||
<button type="submit" class="btn btn-warning" name="reset_text" value="Reset to Template Text">Reset to template text</button>
|
||||
<a class="btn btn-default pull-right" href="{% url "doc_view" name=doc.name %}">Back</a>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{% bootstrap_form form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="save_addresses">Submit</button>
|
||||
<button type="submit" class="btn btn-primary" name="save_addresses" value="Save">Submit</button>
|
||||
<input type="submit" class="btn btn-warning" name="regenerate_addresses" value="Regenerate address list">
|
||||
<a class="btn btn-default pull-right" href="{% url "doc_view" name=doc.canonical_name %}">Back</a>
|
||||
{% endbuttons %}
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
{% bootstrap_form last_call_form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="save_last_call_text">Save text</button>
|
||||
<button type="submit" class="btn btn-info" name="send_last_call_request">Save text & request last call</button>
|
||||
<button type="submit" class="btn btn-primary" name="save_last_call_text" value="Save Last Call Text">Save text</button>
|
||||
<button type="submit" class="btn btn-info" name="send_last_call_request" value="Save and Request Last Call">Save text & request last call</button>
|
||||
{% if user|has_role:"Secretariat" %}
|
||||
<a class="btn btn-danger" href="{% url "doc_make_last_call" name=doc.name %}">Make last call</a>
|
||||
{% endif %}
|
||||
<button type="submit" class="btn btn-warning" name="regenerate_last_call_text">Reset to template text</button>
|
||||
<button type="submit" class="btn btn-warning" name="regenerate_last_call_text" value="Regenerate Last Call Text">Reset to template text</button>
|
||||
<a class="btn btn-default pull-right" href="{% url "doc_view" name=doc.name %}">Back</a>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
{% bootstrap_form form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="submit_response">Submit</button>
|
||||
<button type="submit" class="btn btn-primary" name="submit_response" value="Submit">Submit</button>
|
||||
<a class="btn btn-default pull-right" href="{{ back_url }}">Back</a>
|
||||
{% endbuttons %}
|
||||
</div>
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
{% bootstrap_form form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary" name="submit_response">Submit</button>
|
||||
<button type="submit" class="btn btn-warning" name="reset_text">Reset to template text</button>
|
||||
<button type="submit" class="btn btn-primary" name="submit_response" value="Submit">Submit</button>
|
||||
<button type="submit" class="btn btn-warning" name="reset_text" value="Reset to Template Text">Reset to template text</button>
|
||||
<a class="btn btn-default pull-right" href="{% url "doc_view" name=doc.canonical_name %}">Back</a>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
|
|
|
@ -235,7 +235,7 @@
|
|||
{% bootstrap_field form.notes layout='horizontal' %}
|
||||
|
||||
{% buttons layout='horizontal' %}
|
||||
<button class="btn btn-primary" type="submit" name="submit">Submit</button>
|
||||
<button class="btn btn-primary" type="submit" name="submit" value="Submit">Submit</button>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
{% csrf_token %}
|
||||
{% bootstrap_form form %}
|
||||
{% buttons %}
|
||||
<button class="btn btn-primary" type="submit" name="save">Save</button>
|
||||
<button class="btn btn-primary" type="submit" name="save" value="Save">Save</button>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
{% csrf_token %}
|
||||
{% bootstrap_form form %}
|
||||
{% buttons %}
|
||||
<button class="btn btn-primary" type="submit" name="save">Save</button>
|
||||
<button class="btn btn-primary" type="submit" name="save" value="Save">Save</button>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue