-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from maricaantonacci/devel
Bootstrap 4
- Loading branch information
Showing
19 changed files
with
695 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,73 @@ | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script> | ||
<script src="static/bootstrap/Bootstrap-Confirmation-2/bootstrap-confirmation.js"></script> | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-inverse"> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar"> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="">PaaS Orchestrator Dashboard</a> | ||
</div> | ||
<div class="collapse navbar-collapse" id="myNavbar"> | ||
<ul class="nav navbar-nav"> | ||
<li class="active"><a href="{{ url_for("home") }}">Home</a></li> | ||
</ul> | ||
{% if session['username'] %} | ||
<ul class="nav navbar-nav"> | ||
<li class="active"><a href="{{ url_for("getslas") }}">SLAs</a></li> | ||
<li class="active"><a href="{{ url_for("show_settings") }}">Settings</a></li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li class="dropdown"> | ||
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><img class="img-circle" src="{{ session['gravatar'] }}"</src> {{ session['username'] }}<span class="caret"></span></a> | ||
<ul class="dropdown-menu"> | ||
<li><a href="{{ url_for("logout") }}">Logout</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</nav> | ||
{% block content %}{% endblock %} | ||
</body> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<!-- BS4--> | ||
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">--> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> | ||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> | ||
<!-- DataTables --> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css"/> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/responsive/2.2.2/css/responsive.bootstrap4.min.css"/> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/scroller/2.0.0/css/scroller.bootstrap4.min.css"/> | ||
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.2/js/dataTables.responsive.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.2/js/responsive.bootstrap4.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.datatables.net/scroller/2.0.0/js/dataTables.scroller.min.js"></script> | ||
<!-- Select2 --> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script> | ||
<!-- Toggle --> | ||
<link href="https://cdn.jsdelivr.net/gh/gitbrent/[email protected]/css/bootstrap4-toggle.min.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/gh/gitbrent/[email protected]/js/bootstrap4-toggle.min.js"></script> | ||
<!-- Latest compiled and minified JavaScript --> | ||
<script src="https://unpkg.com/[email protected]/dist/bootstrap-show-password.min.js"></script> | ||
<!-- FontAwesome--> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> | ||
<!-- Add favicon --> | ||
<link rel="apple-touch-icon" sizes="180x180" href="static/images/favicon_io/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="static/images/favicon_io/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="static/images/favicon_io/favicon-16x16.png"> | ||
<link rel="manifest" href="static/images/favicon_io/site.webmanifest"> | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-dark bg-dark navbar-expand-md"> | ||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="">PaaS Orchestrator Dashboard</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#myNavbar"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="myNavbar"> | ||
<ul class="navbar-nav mr-auto"> | ||
{% if session['username'] %} | ||
<li class="nav-item active"><a class="nav-link" href="{{ url_for("home") }}">Home</a></li> | ||
<li class="nav-item"><a class="nav-link" href="{{ url_for("getslas") }}">SLAs</a></li> | ||
<li class="nav-item"><a class="nav-link" href="{{ url_for("show_settings") }}">Settings</a></li> | ||
{% if session['userrole'] == 'admin' %} | ||
<li class="nav-item"><a class="nav-link" href="{{ url_for('show_users') }}">Users</a></li> | ||
{% endif %} | ||
{% endif %} | ||
</ul> | ||
{% if session['username'] %} | ||
<ul class="navbar-nav ml-auto"> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#"> | ||
<img class="rounded-circle" src="{{ session['gravatar'] }}"</src> {{ session['username'] }}<span class="caret"></span> | ||
</a> | ||
<div class="dropdown-menu"> | ||
<a class="dropdown-item" href="{{ url_for("logout") }}">Logout</a> | ||
</div> | ||
</li> | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</nav> | ||
{% block content %}{% endblock %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- start tabs creation section --> | ||
<ul class="nav nav-tabs"> | ||
{% if tabs|length > 0 %} | ||
{% for tab in tabs %} | ||
{% if loop.first %} | ||
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href=#{{tab}}>{{tab}}</a></li> | ||
{% else %} | ||
<li class="nav-item"><a class="nav-link" data-toggle="tab" href=#{{tab}}>{{tab}}</a></li> | ||
{% endif %} | ||
{% endfor %} | ||
{% else %} | ||
<li class="nav-item"><a class="nav-link" data-toggle="tab" href=#InputValues>Input Values</a></li> | ||
{% endif %} | ||
<li class="nav-item"><a class="nav-link" data-toggle="tab" href=#Advanced>Advanced</a></li> <!-- always create advanced tab --> | ||
</ul> | ||
<!-- end tab creation section --> | ||
|
||
<div class="tab-content"> | ||
<!-- inputs --> | ||
{% if tabs|length > 0 %} | ||
{% for tab in tabs %} | ||
{% if loop.first %} | ||
<div id={{tab}} class="tab-pane fade show active"> | ||
{% else %} | ||
<div id={{tab}} class="tab-pane fade"> | ||
{% endif %} | ||
|
||
<br> | ||
{% for key, value in inputs.items() %} | ||
{% if value.tab == tab %} | ||
{% include 'input_types.html' %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
|
||
{% else %} <!-- no tabs --> | ||
<div id=InputValues class="tab-pane fade in active"> | ||
{% for key, value in inputs.items() %} | ||
{% include 'input_types.html' %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
<!-- end inputs --> | ||
|
||
<!-- scheduling --> | ||
<br> | ||
<div id="Advanced" class="tab-pane fade"> | ||
{% include 'scheduling.html' %} | ||
</div> | ||
</div> |
Oops, something went wrong.