mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-15 00:13:35 -06:00
dashboard intit. addition, rbac modifications
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{% extends 'base.html' %}
|
||||
5
app/templates/dashboard/constants.html
Normal file
5
app/templates/dashboard/constants.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends 'dashboard_base' %}
|
||||
{% set constants_active = True %}
|
||||
{% block dashboard_body %}
|
||||
constants
|
||||
{% endblock dashboard_body %}
|
||||
5
app/templates/dashboard/dashboard.html
Normal file
5
app/templates/dashboard/dashboard.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends 'dashboard/dashboard_base.html' %}
|
||||
{% set dashboard_home_active = True %}
|
||||
{% block dashboard_body %}
|
||||
<section></section>
|
||||
{% endblock dashboard_body %}
|
||||
37
app/templates/dashboard/dashboard_base.html
Normal file
37
app/templates/dashboard/dashboard_base.html
Normal 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 %}
|
||||
5
app/templates/dashboard/rbac.html
Normal file
5
app/templates/dashboard/rbac.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends 'dashboard_base.html' %}
|
||||
{% set role_settings_active = True %}
|
||||
{% block dashboard_body %}
|
||||
|
||||
{% endblock dashboard_body %}
|
||||
Reference in New Issue
Block a user