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