organisation dashboard page

This commit is contained in:
chrisw
2018-02-14 13:08:44 +00:00
parent c1e3658a8f
commit dd2231056d
11 changed files with 144 additions and 47 deletions

View File

@@ -1,7 +1,7 @@
<nav class="navigation">
<ul>
{% if current_user.has_permissions(admin_override=True, any_=True) %}
<li><a href="{{ url_for('.organisation_dashboard', org_id=current_service.id) }}">Dashboard</a></li>
{% if current_user.has_permissions(admin_override=True) %}
<li><a href="{{ url_for('.organisation_users', org_id=current_org.id) }}">Team members</a></li>
{% endif %}
</ul>
</nav>

View File

@@ -0,0 +1,25 @@
{% extends "views/platform-admin/_base_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox %}
{% block per_page_title %}
Create an organisation
{% endblock %}
{% block service_page_title %}
Create an organisation
{% endblock %}
{% block platform_admin_content %}
<h1 class="heading-large">Create an organisation</h1>
<form method="post">
{{textbox(form.name)}}
{{ page_footer(
'Save',
back_link=url_for('.organisations'),
back_link_text='Back to organisations',
) }}
</form>
{% endblock %}

View File

@@ -3,16 +3,16 @@
{% from "components/textbox.html" import textbox, colour_textbox %}
{% block per_page_title %}
{{ '{} an organisation'.format('Update' if organisation else 'Create')}}
Update an organisation
{% endblock %}
{% block service_page_title %}
{{ '{} an organisation'.format('Update' if organisation else 'Create')}}
Update an organisation
{% endblock %}
{% block platform_admin_content %}
<h1 class="heading-large">{{ '{} an organisation'.format('Update' if organisation else 'Create')}}</h1>
<h1 class="heading-large">Update an organisation</h1>
<form method="post">
{{textbox(form.name)}}
{{ page_footer(

View File

@@ -0,0 +1,17 @@
{% extends "org_template.html" %}
{% block service_page_title %}
Team members
{% endblock %}
{% block maincolumn_content %}
<div class="grid-row bottom-gutter">
<div class="column-two-thirds">
<h1 class="heading-large">
Team members
</h1>
</div>
</div>
{% endblock %}