mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 13:58:25 -04:00
Commit before switching branches
This commit is contained in:
@@ -117,16 +117,16 @@
|
||||
|
||||
{% macro link_field(text, link) -%}
|
||||
{% call field() %}
|
||||
<a class="govuk-link govuk-link--no-visited-state" href="{{ link }}">{{ text }}</a>
|
||||
<a class="usa-link" href="{{ link }}">{{ text }}</a>
|
||||
{% endcall %}
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro edit_field(text, link, permissions=[], suffix=None) -%}
|
||||
{% call field(align='right') %}
|
||||
{% if not permissions or current_user.has_permissions(*permissions) %}
|
||||
<a class="govuk-link govuk-link--no-visited-state" href="{{ link }}">
|
||||
<a class="usa-link" href="{{ link }}">
|
||||
{{ text }}
|
||||
{%- if suffix %}<span class="govuk-visually-hidden"> {{ suffix }}</span>{% endif -%}
|
||||
{%- if suffix %}<span class="usa-sr-only"> {{ suffix }}</span>{% endif -%}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
@@ -159,7 +159,7 @@
|
||||
) %}
|
||||
{% if displayed_on_single_line %}<span class="align-with-message-body">{% endif %}
|
||||
{% if notification.status|format_notification_status_as_url(notification.notification_type) %}
|
||||
<a class="govuk-link govuk-link--{% if status == 'error' %}destructive{% else %}no-visited-state{% endif %}" href="{{ notification.status|format_notification_status_as_url(notification.notification_type) }}">
|
||||
<a class="usa-link" href="{{ notification.status|format_notification_status_as_url(notification.notification_type) }}">
|
||||
{% endif %}
|
||||
{{ notification.status|format_notification_status(notification.template.template_type) }}
|
||||
{% if notification.status|format_notification_status_as_url(notification.notification_type) %}
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
<h2 class="font-body-lg">Get started</h2>
|
||||
|
||||
<nav>
|
||||
<a class="govuk-link govuk-link--no-visited-state pill-separate-item" href="{{ url_for('.choose_template', service_id=current_service.id) }}">
|
||||
Write an email or text message
|
||||
</a>
|
||||
</nav>
|
||||
<a class="usa-button" href="{{ url_for('.choose_template', service_id=current_service.id) }}">
|
||||
Create your first template
|
||||
</a>
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<div class="govuk-grid-row">
|
||||
<div class="govuk-grid-column-five-sixths">
|
||||
<div class="grid-row">
|
||||
<div class="grid-col-9">
|
||||
{{ page_header('Send text messages') }}
|
||||
<p>
|
||||
You have a free allowance of
|
||||
|
||||
@@ -25,22 +25,22 @@
|
||||
{% endif %}
|
||||
{% for item in current_service.sms_senders_with_hints %}
|
||||
<div class="user-list-item">
|
||||
<div class="govuk-grid-row">
|
||||
<div class="govuk-grid-column-three-quarters">
|
||||
<div class="grid-row">
|
||||
<div class="grid-col">
|
||||
<h2 class="user-list-item-heading">
|
||||
<span class="heading-small">{{ item.sms_sender }}</span>
|
||||
<span class="font-body-lg">{{ item.sms_sender }}</span>
|
||||
{% if item.hint %}
|
||||
 
|
||||
<span class="hint">
|
||||
<span class="usa-hint">
|
||||
{{ item.hint }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="govuk-grid-column-one-quarter">
|
||||
<div class="grid-col">
|
||||
{% if current_user.has_permissions('manage_service') %}
|
||||
<a class="govuk-link govuk-link--no-visited-state user-list-edit-link" href="{{ url_for('.service_edit_sms_sender', service_id=current_service.id, sms_sender_id = item.id) }}">
|
||||
Change<span class="govuk-visually-hidden"> {{ item.sms_sender }}</span>
|
||||
<a class="usa-link user-list-edit-link" href="{{ url_for('.service_edit_sms_sender', service_id=current_service.id, sms_sender_id = item.id) }}">
|
||||
Change<span class="usa-sr-only"> {{ item.sms_sender }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user