Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added empty dashboard screen and starting requirements
- Loading branch information
1 parent
f42e98b
commit 53c6e37
Showing
62 changed files
with
305 additions
and
183 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/connect.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/connector.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/cylinder.gif.gz
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/draw/drawbg.jpg.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/draw/drawbgcolor.jpg.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/draw/drawfooter.jpg.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/draw/drawheader.jpg.gz
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/hexagon.gif.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/preferences.gif.gz
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/refresh.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/rhombus.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/rounded.gif.gz
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/symbols/small_event_intermediate.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/symbols/small_fork.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/symbols/small_link.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/symbols/small_message.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/symbols/small_multiple.gif.gz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/symbols/small_terminate.gif.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/tofront.gif.gz
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
NearBeach/static/NearBeach/whiteboard/images/triangle.gif.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
NearBeach/templates/NearBeach/authentication/permission_denied.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,6 @@ | ||
{% extends "NearBeach/template.html" %} | ||
{% block content %} | ||
<h1>Permission Denied</h1> | ||
Sorry, you do not have access to this page. You have been redirected here. | ||
{% endblock %} | ||
|
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,4 @@ | ||
{% extends 'NearBeach/template.html' %} | ||
{% block content %} | ||
<h1>Dashboard</h1> | ||
{% endblock %} |
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,22 +1,8 @@ | ||
{% load static %} | ||
<!-- Load NearBeach Webpack File --> | ||
<script type="text/javascript" src="{% static 'NearBeach/NearBeach.min.js' %}"></script> | ||
|
||
<!-- ERROR MODAL --> | ||
<div class="modal" tabindex="-1" role="dialog" id="error_modal"> | ||
<div class="modal-dialog modal-lg" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">Loading Errors</h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body" id="error_modal_body"> | ||
<div class="alert alert-danger">We are sorry, but NearBeach experienced the following errors:</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- ADD IN ERROR MODAL HERE --> | ||
</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
4 changes: 4 additions & 0 deletions
4
NearBeach/templates/NearBeach/requirements/requirement_information.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,4 @@ | ||
{% extends 'NearBeach/template.html' %} | ||
{% block content %} | ||
|
||
{% endblock %} |
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,13 @@ | ||
{% include 'NearBeach/partials/header.html' %} | ||
<div class="container"> | ||
<div id="app"> | ||
{% if user.is_authenticated %} | ||
{% block content %} | ||
{% endblock %} | ||
{% else %} | ||
<h1>Permission denied</h1> | ||
<p>You currently do not have permission to view this page!</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% include 'NearBeach/partials/footer.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
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,38 @@ | ||
# Import Forms | ||
from ..forms import * | ||
|
||
# Import Django Libraries | ||
from django.contrib import auth | ||
from django.contrib.auth.decorators import login_required | ||
from django.http import HttpResponse, HttpResponseRedirect | ||
from django.template import loader | ||
from django.urls import reverse | ||
|
||
|
||
# Import Python Libraries | ||
import json, urllib.parse, random | ||
|
||
# Import user permission library | ||
from ..user_permissions import return_user_permission_level | ||
|
||
@login_required(login_url='login',redirect_field_name="") | ||
def dashboard(request): | ||
""" | ||
Due to a bug - if the user goes to /admin/ and logs in there, they will by pass this one session request. It is | ||
placed here to make sure. :) | ||
""" | ||
request.session['is_superuser'] = request.user.is_superuser | ||
|
||
#Get user's default permissions | ||
permission_results = return_user_permission_level(request, None, 'project') | ||
|
||
# Load the template | ||
t = loader.get_template('NearBeach/dashboard/dashboard.html') | ||
|
||
# context | ||
c = { | ||
'new_item_permission': permission_results['new_item'], | ||
'administration_permission': permission_results['administration'], | ||
} | ||
|
||
return HttpResponse(t.render(c, request)) |
Oops, something went wrong.