mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 07:18:24 -04:00
Add a form to set priority of top 2 providers
Their priority should always add up to 100%. Currently we have to ensure this by hand. Adding this form means there’s no way to not set their combined priorities to 100%. And it’s a bit more of an intuitive UI than two textboxes on separate pages.
This commit is contained in:
@@ -6,9 +6,10 @@
|
||||
secondary_link=False,
|
||||
secondary_link_text=None,
|
||||
delete_link=False,
|
||||
delete_link_text="delete"
|
||||
delete_link_text="delete",
|
||||
centered_button=False
|
||||
) %}
|
||||
<div class="page-footer">
|
||||
<div class="page-footer {% if centered_button %}page-footer-centered-button{% endif %}">
|
||||
{% if button_text %}
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
<button
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
{% from "components/page-header.html" import page_header %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
{% from "components/radios.html" import radios %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Text message providers
|
||||
@@ -12,8 +13,39 @@
|
||||
|
||||
{{ page_header('Text message providers') }}
|
||||
|
||||
{% call form_wrapper() %}
|
||||
{% endcall %}
|
||||
|
||||
<h2 class="heading-small top-gutter">
|
||||
Now
|
||||
</h2>
|
||||
<div class="bottom-gutter">
|
||||
<div class="history-list-item">
|
||||
<div class="grid-row">
|
||||
<div class="column-one-third"> </div>
|
||||
<div class="column-two-thirds">
|
||||
<div class="history-list-percentage-without-border">
|
||||
<div class="history-list-percentage-left-label">
|
||||
MMG
|
||||
</div>
|
||||
<div class="history-list-percentage-right-label">
|
||||
Firetext
|
||||
</div>
|
||||
{% call form_wrapper() %}
|
||||
<div class="radio-slider" data-module="radio-slider">
|
||||
{{ radios(form.ratio, inline=True, hide_legend=True) }}
|
||||
<div class="radio-slider-left-value">
|
||||
—
|
||||
</div>
|
||||
<div class="radio-slider-right-value">
|
||||
—
|
||||
</div>
|
||||
</div>
|
||||
{{ page_footer('Update', centered_button=True) }}
|
||||
{% endcall %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% for day, versions in versions %}
|
||||
|
||||
Reference in New Issue
Block a user