mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 01:28:24 -04:00
Merge pull request #4034 from alphagov/refactor-services-models
Refactor services and organisations models for users
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
{% else %}
|
||||
<ul>
|
||||
{% endif %}
|
||||
{% for org in organisations %}
|
||||
{% for org in organisations|sort %}
|
||||
<li class="browse-list-item">
|
||||
<a href="{{ url_for('.organisation_dashboard', org_id=org.id) }}" class="govuk-link govuk-link--no-visited-state">{{ org.name }}</a>
|
||||
<p class="browse-list-hint">
|
||||
@@ -28,7 +28,7 @@
|
||||
</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% for service in services %}
|
||||
{% for service in services|sort %}
|
||||
<li class="browse-list-item">
|
||||
<a href="{{ url_for('.service_dashboard', service_id=service.id) }}" class="govuk-link govuk-link--no-visited-state">{{ service.name }}</a>
|
||||
</li>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<nav class="browse-list">
|
||||
{% if user.live_services %}
|
||||
<ul>
|
||||
{% for service in user.live_services %}
|
||||
{% for service in user.live_services|sort %}
|
||||
<li class="browse-list-item">
|
||||
<a class="govuk-link govuk-link--no-visited-state browse-list-hint" href={{url_for('.service_dashboard', service_id=service.id)}}>{{ service.name }}</a>
|
||||
</li>
|
||||
@@ -33,7 +33,7 @@
|
||||
<nav class="browse-list">
|
||||
{% if user.trial_mode_services %}
|
||||
<ul>
|
||||
{% for service in user.trial_mode_services %}
|
||||
{% for service in user.trial_mode_services|sort %}
|
||||
<li class="browse-list-item">
|
||||
<a class="govuk-link govuk-link--no-visited-state browse-list-hint" href={{url_for('.service_dashboard', service_id=service.id)}}>{{ service.name }}</a>
|
||||
</li>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<nav class="browse-list">
|
||||
<ul>
|
||||
{% for org in organisations %}
|
||||
{% for org in organisations|sort %}
|
||||
<li class="browse-list-item">
|
||||
<a href="{{ url_for('main.organisation_dashboard', org_id=org.id) }}" class="govuk-link govuk-link--no-visited-state">{{ org.name }}</a>
|
||||
{% if not org.active %}
|
||||
|
||||
Reference in New Issue
Block a user