mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-28 18:10:11 -04:00
Refactor manage-organisation.html, organisations.html
This commit is contained in:
@@ -3,29 +3,22 @@
|
||||
{% from "components/textbox.html" import textbox, colour_textbox %}
|
||||
|
||||
{% block per_page_title %}
|
||||
{{ '{} an organisations'.format('Update' if organisation else 'Create')}}
|
||||
{{ '{} an organisation'.format('Update' if organisation else 'Create')}}
|
||||
{% endblock %}
|
||||
|
||||
{% block service_page_title %}
|
||||
{{ '{} an organisations'.format('Update' if organisation else 'Create')}}
|
||||
{{ '{} an organisation'.format('Update' if organisation else 'Create')}}
|
||||
{% endblock %}
|
||||
|
||||
{% block platform_admin_content %}
|
||||
|
||||
<h1 class="heading-large">{{ '{} an organisation'.format('Update' if organisation else 'Create')}}</h1>
|
||||
<div class="grid-row">
|
||||
<div class="column-three-quarters">
|
||||
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<div style='margin-top:15px;'>{{textbox(form.name)}}</div>
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
back_link=url_for('.organisations'),
|
||||
back_link_text='Back to organisations',
|
||||
) }}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<form method="post">
|
||||
{{textbox(form.name)}}
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
back_link=url_for('.organisations'),
|
||||
back_link_text='Back to organisations',
|
||||
) }}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
@@ -2,31 +2,32 @@
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Show organisations
|
||||
Organisations
|
||||
{% endblock %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Show organisations
|
||||
Organisations
|
||||
{% endblock %}
|
||||
|
||||
{% block platform_admin_content %}
|
||||
|
||||
<h1 class="heading-large">
|
||||
<div>Organisations</div>
|
||||
Organisations
|
||||
</h1>
|
||||
<div class="grid-row">
|
||||
<div class="column-three-quarters">
|
||||
<nav class="browse-list">
|
||||
<ul>
|
||||
{% for org in organisations %}
|
||||
<div>
|
||||
<li class="browse-list-item">
|
||||
<a href="{{ url_for('main.view_organisation', org_id=org['id']) }}" class="browse-list-link">{{ org['name'] }}</a>
|
||||
{% if not org['active'] %}
|
||||
<span class="table-field-status-default heading-medium">- archived</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<br/>
|
||||
<div><a href="{{ url_for('main.add_organisation') }}" class="browse-list-link">Create an organisation</a></div>
|
||||
</div>
|
||||
</ul>
|
||||
</nav>
|
||||
<div>
|
||||
<a href="{{ url_for('main.add_organisation') }}" class="browse-list-link">Create an organisation</a>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user