Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new views and bug fixes to the web-manager. Added fixes for bas…
…e.template.
- Loading branch information
Showing
20 changed files
with
317 additions
and
127 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
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
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
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,3 +1,2 @@ | ||
from .gw_web.gw_web import GwWeb | ||
from .gw_web_flask.gw_web_flask import GwWebFlask | ||
from .gw_web_manager.gw_web_manager import GwWebManager |
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
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
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,18 @@ | ||
{% macro messages() %} | ||
{% with messages = get_flashed_messages(with_categories=True) %} | ||
{% if messages %} | ||
{% for category, m in messages %} | ||
{% if category %} | ||
{# alert-error changed to alert-danger in bootstrap 3, mapping is for backwards compatibility #} | ||
{% set mapping = {'message': 'info', 'error': 'danger'} %} | ||
<div class="alert alert-{{ mapping.get(category, category) }} alert-dismissable"> | ||
{% else %} | ||
<div class="alert alert-dismissable"> | ||
{% endif %} | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||
{{ m }} | ||
</div> | ||
{% endfor %} | ||
{% endif %} | ||
{% endwith %} | ||
{% endmacro %} |
Empty file.
10 changes: 0 additions & 10 deletions
10
groundwork_web/plugins/gw_web_db_manager/gw_web_db_mamanger.py
This file was deleted.
Oops, something went wrong.
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
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
26 changes: 26 additions & 0 deletions
26
groundwork_web/plugins/gw_web_manager/templates/documents.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,26 @@ | ||
{% extends "master.html" %} | ||
|
||
{% block content %} | ||
|
||
<h1>Documents list</h1> | ||
|
||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Description</th> | ||
<th>Plugin</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for name, document in app.documents.get().items() %} | ||
<tr> | ||
<td>{{document.name}}</td> | ||
<td>{{document.description}}</td> | ||
<td>{{document.plugin.name}}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
{% endblock %} |
Oops, something went wrong.