2015-12-13 09:34:12 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2016-04-22 00:37:33 +00:00
|
|
|
<head>
|
|
|
|
{% block head %}
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2018-08-18 15:42:18 +00:00
|
|
|
{% block title %}<title>{{ SITE_NAME }}</title>{% endblock %}
|
2016-04-22 00:37:33 +00:00
|
|
|
<!-- Get Google Fonts we like -->
|
2018-06-10 13:16:28 +00:00
|
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
|
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto+Mono:400,300,700">
|
2016-04-22 00:37:33 +00:00
|
|
|
<!-- Tell the browser to be responsive to screen width -->
|
|
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
2018-06-10 13:16:28 +00:00
|
|
|
{% assets "css_main" -%}
|
|
|
|
<link rel="stylesheet" href="{{ ASSET_URL }}">
|
|
|
|
{%- endassets %}
|
2016-04-22 00:37:33 +00:00
|
|
|
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
|
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
|
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
{% endblock %}
|
|
|
|
</head>
|
2018-08-18 11:41:59 +00:00
|
|
|
<body class="hold-transition skin-blue sidebar-mini {% if not SETTING.get('fullscreen_layout') %}layout-boxed{% endif %}">
|
2016-04-22 00:37:33 +00:00
|
|
|
<div class="wrapper">
|
|
|
|
{% block pageheader %}
|
|
|
|
<header class="main-header">
|
|
|
|
<!-- Logo -->
|
|
|
|
<a href="{{ url_for('index') }}" class="logo">
|
|
|
|
<!-- mini logo for sidebar mini 50x50 pixels -->
|
|
|
|
<span class="logo-mini"><b>PD</b>A</span>
|
|
|
|
<!-- logo for regular state and mobile devices -->
|
|
|
|
<span class="logo-lg"><b>PowerDNS</b>-Admin</span>
|
|
|
|
</a>
|
|
|
|
<!-- Header Navbar: style can be found in header.less -->
|
|
|
|
<nav class="navbar navbar-static-top">
|
|
|
|
<!-- Sidebar toggle button-->
|
2018-06-10 13:16:28 +00:00
|
|
|
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
2016-04-22 00:37:33 +00:00
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="navbar-custom-menu">
|
2016-06-18 04:41:01 +00:00
|
|
|
{% if current_user.id is defined %}
|
2016-04-22 00:37:33 +00:00
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<!-- User Account: style can be found in dropdown.less -->
|
|
|
|
<li class="dropdown user user-menu">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
{% if current_user.avatar %}
|
|
|
|
<img src="{{ url_for('user_avatar', filename=current_user.avatar) }}" class="user-image" alt="User Image"/>
|
|
|
|
{% else %}
|
2016-07-13 14:33:21 +00:00
|
|
|
<img src="{{ current_user.email|email_to_gravatar_url(size=80) }}" class="user-image" alt="User Image"/>
|
2016-04-22 00:37:33 +00:00
|
|
|
{% endif %}
|
|
|
|
<span class="hidden-xs">
|
|
|
|
{{ current_user.firstname }}
|
|
|
|
</span>
|
2015-12-13 09:34:12 +00:00
|
|
|
</a>
|
2016-04-22 00:37:33 +00:00
|
|
|
<ul class="dropdown-menu">
|
2016-06-18 04:41:01 +00:00
|
|
|
<li class="user-header">
|
|
|
|
{% if current_user.avatar %}
|
|
|
|
<img src="{{ url_for('user_avatar', filename=current_user.avatar) }}" class="img-circle" alt="User Image"/>
|
|
|
|
{% else %}
|
2016-07-13 14:33:21 +00:00
|
|
|
<img src="{{ current_user.email|email_to_gravatar_url(size=160) }}" class="img-circle" alt="User Image"/>
|
2016-06-18 04:41:01 +00:00
|
|
|
{% endif %}
|
|
|
|
<p>
|
|
|
|
{{ current_user.firstname }} {{ current_user.lastname }}
|
|
|
|
<small>{{ current_user.role.name }}</small>
|
|
|
|
</p>
|
|
|
|
</li>
|
2018-02-28 12:39:05 +00:00
|
|
|
|
2016-04-22 00:37:33 +00:00
|
|
|
<!-- Menu Footer-->
|
|
|
|
<li class="user-footer">
|
|
|
|
<div class="pull-left">
|
2016-05-11 00:11:17 +00:00
|
|
|
<a href="{{ url_for('user_profile') }}" class="btn btn-flat btn-default">My Profile</a>
|
2015-12-13 09:34:12 +00:00
|
|
|
</div>
|
2016-04-22 00:37:33 +00:00
|
|
|
<div class="pull-right">
|
2016-05-11 00:11:17 +00:00
|
|
|
<a href="{{ url_for('logout') }}" class="btn btn-flat btn-default">Log out</a>
|
2016-04-22 00:37:33 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2016-05-15 22:01:57 +00:00
|
|
|
{% endif %}
|
2016-04-22 00:37:33 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
{% endblock %}
|
|
|
|
<!-- Left side column. contains the logo and sidebar -->
|
|
|
|
<aside class="main-sidebar">
|
|
|
|
<!-- sidebar: style can be found in sidebar.less -->
|
|
|
|
<section class="sidebar">
|
2016-05-15 22:01:57 +00:00
|
|
|
{% if current_user.id is defined %}
|
2016-04-22 00:37:33 +00:00
|
|
|
<div class="user-panel">
|
|
|
|
<div class="pull-left image">
|
|
|
|
{% if current_user.avatar %}
|
|
|
|
<img src="{{ url_for('user_avatar', filename=current_user.avatar) }}" class="img-circle" alt="User Image"/>
|
|
|
|
{% else %}
|
2016-07-13 14:33:21 +00:00
|
|
|
<img src="{{ current_user.email|email_to_gravatar_url(size=100) }}" class="img-circle" alt="User Image"/>
|
2016-04-22 00:37:33 +00:00
|
|
|
{% endif %}
|
2015-12-13 09:34:12 +00:00
|
|
|
</div>
|
2016-04-22 00:37:33 +00:00
|
|
|
<div class="pull-left info">
|
|
|
|
<p>{{ current_user.firstname }} {{ current_user.lastname }}</p>
|
|
|
|
<a href="#"><i class="fa fa-circle text-success"></i> Logged In</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- sidebar menu: : style can be found in sidebar.less -->
|
2018-06-10 13:16:28 +00:00
|
|
|
<ul class="sidebar-menu" data-widget="tree">
|
2016-04-22 00:37:33 +00:00
|
|
|
<li class="header">USER ACTIONS</li>
|
2018-08-18 11:41:59 +00:00
|
|
|
<li class="{{ 'active' if active_page == 'dashboard' else '' }}">
|
|
|
|
<a href="{{ url_for('dashboard') }}"><i class="fa fa-dashboard"></i> Dashboard</a>
|
|
|
|
</li>
|
2016-04-22 00:37:33 +00:00
|
|
|
{% if current_user.role.name == 'Administrator' %}
|
2018-08-18 11:41:59 +00:00
|
|
|
<li class="{{ 'active' if active_page == 'new_domain' else '' }}">
|
|
|
|
<a href="{{ url_for('domain_add') }}"><i class="fa fa-plus"></i> New Domain</a>
|
|
|
|
</li>
|
2016-04-22 00:37:33 +00:00
|
|
|
<li class="header">ADMINISTRATION</li>
|
2018-08-18 11:41:59 +00:00
|
|
|
<li class="{{ 'active' if active_page == 'admin_console' else '' }}">
|
|
|
|
<a href="{{ url_for('admin') }}"><i class="fa fa-wrench"></i> Admin Console</a>
|
|
|
|
</li>
|
|
|
|
<li class="{{ 'active' if active_page == 'admin_domain_template' else '' }}">
|
|
|
|
<a href="{{ url_for('templates') }}"><i class="fa fa-clone"></i> Domain Templates</a>
|
|
|
|
</li>
|
|
|
|
<li class="{{ 'active' if active_page == 'admin_users' else '' }}">
|
|
|
|
<a href="{{ url_for('admin_manageuser') }}"><i class="fa fa-users"></i> Users</a>
|
|
|
|
</li>
|
|
|
|
<li class="{{ 'active' if active_page == 'admin_accounts' else '' }}">
|
|
|
|
<a href="{{ url_for('admin_manageaccount') }}"><i class="fa fa-industry"></i> Accounts</a>
|
|
|
|
</li>
|
|
|
|
<li class="{{ 'active' if active_page == 'admin_history' else '' }}">
|
|
|
|
<a href="{{ url_for('admin_history') }}"><i class="fa fa-calendar"></i> History</a>
|
|
|
|
</li>
|
|
|
|
<li class="{{ 'treeview active' if active_page == 'admin_settings' else 'treeview' }}">
|
|
|
|
<a href="#">
|
|
|
|
<i class="fa fa-cog"></i> Settings
|
|
|
|
<span class="pull-right-container">
|
|
|
|
<i class="fa fa-angle-left pull-right"></i>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<ul class="treeview-menu" {% if active_page == 'admin_settings' %}style="display: block;"{% endif %}>
|
|
|
|
<li><a href="{{ url_for('admin_setting_basic') }}"><i class="fa fa-circle-o"></i></i> Basic</a></li>
|
2018-08-22 01:36:53 +00:00
|
|
|
<li><a href="{{ url_for('admin_setting_records') }}"><i class="fa fa-circle-o"></i> Records</a></li>
|
2018-08-18 11:41:59 +00:00
|
|
|
<li><a href="{{ url_for('admin_setting_pdns') }}"><i class="fa fa-circle-o"></i> PDNS</a></li>
|
|
|
|
<li><a href="{{ url_for('admin_setting_authentication') }}"><i class="fa fa-circle-o"></i> Authentication</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2016-04-22 00:37:33 +00:00
|
|
|
{% endif %}
|
2018-08-18 11:41:59 +00:00
|
|
|
</ul>
|
2016-05-15 22:01:57 +00:00
|
|
|
{% endif %}
|
2016-04-22 00:37:33 +00:00
|
|
|
</section>
|
|
|
|
<!-- /.sidebar -->
|
|
|
|
</aside>
|
2015-12-13 09:34:12 +00:00
|
|
|
|
2016-04-22 00:37:33 +00:00
|
|
|
<!-- Content Wrapper. Contains page content -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
{% block dashboard_stat %}
|
|
|
|
<!-- Content Header (Page header) -->
|
|
|
|
<section class="content-header">
|
|
|
|
<h1>
|
|
|
|
Dashboard
|
|
|
|
<small>Control panel</small>
|
|
|
|
</h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ url_for('dashboard') }}"><i class="fa fa-dashboard"></i> Home</a></li>
|
|
|
|
<li class="active">Dashboard</li>
|
|
|
|
</ol>
|
|
|
|
</section>
|
2015-12-13 09:34:12 +00:00
|
|
|
{% endblock %}
|
2016-04-22 00:37:33 +00:00
|
|
|
{% block content %}
|
2015-12-13 09:34:12 +00:00
|
|
|
{% endblock %}
|
2016-04-22 00:37:33 +00:00
|
|
|
</div>
|
|
|
|
<!-- /.content-wrapper -->
|
|
|
|
<footer class="main-footer">
|
2018-04-02 07:01:35 +00:00
|
|
|
<strong><a href="https://github.com/ngoduykhanh/PowerDNS-Admin">PowerDNS-Admin</a></strong> - A PowerDNS web interface with advanced features.
|
2016-04-22 00:37:33 +00:00
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
<!-- ./wrapper -->
|
2016-07-02 00:45:42 +00:00
|
|
|
<script type="text/javascript">
|
2018-08-18 11:41:59 +00:00
|
|
|
$SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
|
2016-07-02 00:45:42 +00:00
|
|
|
</script>
|
2016-04-22 00:37:33 +00:00
|
|
|
{% block scripts %}
|
2018-06-10 13:16:28 +00:00
|
|
|
{% assets "js_main" -%}
|
|
|
|
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
|
|
|
|
{%- endassets %}
|
2016-04-22 07:06:01 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block extrascripts %}
|
|
|
|
{% endblock %}
|
2016-04-23 01:45:34 +00:00
|
|
|
{% block defaultmodals %}
|
|
|
|
<div class="modal fade modal-danger" id="modal_error">
|
2016-04-28 04:05:41 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal"
|
|
|
|
aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
<h4 class="modal-title">Error</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p></p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-05-11 00:11:17 +00:00
|
|
|
<button type="button" class="btn btn-flat btn-default pull-right"
|
2016-04-28 04:05:41 +00:00
|
|
|
data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.modal-content -->
|
|
|
|
</div>
|
|
|
|
<!-- /.modal-dialog -->
|
2016-04-23 01:45:34 +00:00
|
|
|
</div>
|
|
|
|
<!-- /.modal -->
|
|
|
|
<div class="modal fade modal-success" id="modal_success">
|
2016-04-28 04:05:41 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal"
|
|
|
|
aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
<h4 class="modal-title">Success</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p></p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-05-11 00:11:17 +00:00
|
|
|
<button type="button" class="btn btn-flat btn-default pull-right"
|
2016-04-28 04:05:41 +00:00
|
|
|
data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.modal-content -->
|
|
|
|
</div>
|
|
|
|
<!-- /.modal-dialog -->
|
2016-04-23 01:45:34 +00:00
|
|
|
</div>
|
|
|
|
<!-- /.modal -->
|
|
|
|
{% endblock %}
|
2016-04-22 07:06:01 +00:00
|
|
|
{% block modals %}
|
2016-04-22 00:37:33 +00:00
|
|
|
{% endblock %}
|
|
|
|
</body>
|
2016-04-21 15:20:09 +00:00
|
|
|
</html>
|