dashboard intit. addition, rbac modifications

This commit is contained in:
Xevion
2019-07-04 04:11:15 -05:00
parent fb8ba3b79e
commit 92a6f8ad49
8 changed files with 72 additions and 17 deletions

View File

@@ -65,7 +65,7 @@ Color = Bulma Color Type of the Message Box
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item raleway-font" href="{{ url_for('index') }}">
<a style="margin-left: 0.5rem;" class="navbar-item raleway-font" href="{{ url_for('index') }}">
Xevion
</a>
@@ -106,7 +106,7 @@ Color = Bulma Color Type of the Message Box
<div class="navbar-text">Profile</div>
</a>
<a class="navbar-item" href="{{ url_for('dashboard') }}">
<span class="navbar-fa-icon fas fa-user-cog"></span>
<span class="navbar-fa-icon fas fa-chart-line"></span>
<div class="navbar-text">Dashboard</div>
</a>
<hr class="navbar-divider">

View File

@@ -1 +0,0 @@
{% extends 'base.html' %}

View File

@@ -0,0 +1,5 @@
{% extends 'dashboard_base' %}
{% set constants_active = True %}
{% block dashboard_body %}
constants
{% endblock dashboard_body %}

View File

@@ -0,0 +1,5 @@
{% extends 'dashboard/dashboard_base.html' %}
{% set dashboard_home_active = True %}
{% block dashboard_body %}
<section></section>
{% endblock dashboard_body %}

View File

@@ -0,0 +1,37 @@
{% extends 'base.html' %}
{% block body %}
<div style="margin-left: 1rem; margin-top: 1rem;" class="columns">
<div class="column is-2">
<aside class="menu">
<p class="menu-label">
Dashboard
</p>
<ul class="menu-list">
<li><a href="{{ url_for('dashboard') }}" {% if dashboard_home_active %}class="is-active"{% endif %}>Home</a></li>
<li><a href="{{ url_for('profile_settings') }}" {% if dashboard_profile_settings_active %}class="is-active"{% endif %}>Profile Settings</a></li>
</ul>
<ul class="menu-list">
</ul>
<p class="menu-label">
Administration
</p>
<ul class="menu-list">
<li><a href="{{ url_for('constants') }}" {% if constants_active %}class="is-active"{% endif %}>Constants</a></li>
<li>
<a {% if role_settings_active %}class="is-active"{% endif %}><abbr title="Role Based Access Control">RBAC</abbr> Settings</a>
<ul>
<li><a href="{{ url_for('rbac') + '#apply-user-roles' }}">Apply Roles to User(s)</a></li>
<li><a href="{{ url_for('rbac') + '#view-user-roles' }}">View all Roles</a></li>
</ul>
</li>
</ul>
</aside>
</div>
<div class="column">
{% block dashboard_body %}
{% endblock dashboard_body %}
</div>
</div>
{% endblock body %}

View File

@@ -0,0 +1,5 @@
{% extends 'dashboard_base.html' %}
{% set role_settings_active = True %}
{% block dashboard_body %}
{% endblock dashboard_body %}