mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Add two steps to onboarding banner
It’s not obvious what the first steps are when you’ve just signed up. This commit changes the banner on the dashboard to make it obvious.
This commit is contained in:
@@ -77,4 +77,8 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ def service_dashboard(service_id):
|
||||
raise e
|
||||
return render_template(
|
||||
'views/service_dashboard.html',
|
||||
jobs=reversed(jobs),
|
||||
jobs=list(reversed(jobs)),
|
||||
free_text_messages_remaining='25,000',
|
||||
spent_this_month='0.00',
|
||||
template_count=len(templates),
|
||||
|
||||
@@ -23,25 +23,25 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% if not template_count %}
|
||||
{% if not jobs %}
|
||||
{{ banner(
|
||||
'<a href="{}">Add a text message template</a>'.format(
|
||||
url_for(".add_service_template", service_id=service_id)
|
||||
"""
|
||||
<ol>
|
||||
<li>
|
||||
<a href='{}'>Add a template</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='{}'>Send yourself a text message</a>
|
||||
</li>
|
||||
</ol>
|
||||
""".format(
|
||||
url_for(".add_service_template", service_id=service_id),
|
||||
url_for(".choose_sms_template", service_id=service_id)
|
||||
)|safe,
|
||||
subhead='Get started',
|
||||
type="tip"
|
||||
)}}
|
||||
{% elif not jobs %}
|
||||
{{ banner(
|
||||
'<a href="{}">Try sending a text message</a>'.format(
|
||||
url_for(".choose_sms_template", service_id=service_id)
|
||||
)|safe,
|
||||
subhead='Next step',
|
||||
type="tip"
|
||||
)}}
|
||||
{% endif %}
|
||||
|
||||
{% if jobs %}
|
||||
{% else %}
|
||||
{% call(item) list_table(
|
||||
jobs,
|
||||
caption="Recent text messages",
|
||||
|
||||
Reference in New Issue
Block a user