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:
Chris Hill-Scott
2016-02-04 09:58:56 +00:00
parent 28f700366c
commit 48df622aba
3 changed files with 19 additions and 15 deletions

View File

@@ -77,4 +77,8 @@
text-decoration: underline;
}
ol {
list-style-type: decimal;
}
}

View File

@@ -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),

View File

@@ -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",