Files
notifications-admin/app/templates/views/add-service.html
Chris Hill-Scott 08e9b35d7a Don’t ask for organisation type when we know it
Every time someone adds a new service we ask them what kind of
organisation they work for.

We can look this up based on the user’s email address now. So we should
only ask the question if:
- we don’t know about the organisation
- or we haven’t set what type of organisation it is (this shouldn’t be
  possible on productions because we’ve populated the column for all
  existing organisations and it’s impossible to add a new one without
  setting it
2019-04-18 14:08:13 +01:00

36 lines
797 B
HTML

{% extends "withoutnav_template.html" %}
{% from "components/radios.html" import radios %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
{% block per_page_title %}
{{ heading }}
{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large">
About your service
</h1>
{% call form_wrapper() %}
{{ textbox(form.name, hint="You can change this later") }}
{% if not current_user.default_organisation.organisation_type %}
{{ radios(form.organisation_type) }}
{% endif %}
{{ page_footer('Add service') }}
{% endcall %}
</div>
</div>
{% endblock %}