-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue_1200
- Loading branch information
Showing
173 changed files
with
6,241 additions
and
676 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends 'base.html' %} | ||
{% load bootstrap3 %} | ||
|
||
{% block content %} | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h2 class="panel-title">Delete Facility {{ facility.name }}?</h2> | ||
</div> | ||
<div class="panel-body"> | ||
{% if facility.feedbacks.count > 0 %} | ||
<p class="lead">This Facility has <b>{{ facility.feedbacks.count }}</b> Feedback and can not be deleted</p> | ||
{% endif %} | ||
<form method="POST"> | ||
{% csrf_token %} | ||
{% if facility.feedbacks.count == 0 %} | ||
<button type="submit" name="Delete" class="btn btn-danger"><i class="fas fa-times"></i> Yes, Delete it</button> | ||
{% endif %} | ||
<a href="{% url 'backoffice:facility_type_list' camp_slug=camp.slug %}" class="btn btn-default"><i class="fas fa-undo"></i> Cancel</a> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock content %} |
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
50 changes: 50 additions & 0 deletions
50
src/backoffice/templates/facility_type_import_backoffice.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,50 @@ | ||
{% extends 'base.html' %} | ||
{% load leaflet_tags %} | ||
{% load bootstrap3 %} | ||
{% load static %} | ||
|
||
{% block title %} | ||
Import | Facility Types | BackOffice | {{ block.super }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Import Facility Types - BackOffice</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<p> | ||
Only the properties <b>name</b> and <b>description</b> will be imported! | ||
</p> | ||
<div class="mb-3"> | ||
<label for="selectFiles" class="form-label">Import from file</label> | ||
<input type="file" class="form-control" id="selectFiles" value="Import" /> | ||
</div> | ||
<div class="mb-3"> | ||
<div class="mb-1"> | ||
<label for="importURL" class="form-label">Import from URL</label> | ||
<input id="importURL" class="form-control" /> | ||
</div> | ||
<div class="mb-1"> | ||
<button class="btn btn-success" id="importURLFetch">Fetch</button> | ||
</div> | ||
</div> | ||
<br/><br/> | ||
<form class="mb-3" method="post"> | ||
{% csrf_token %} | ||
<label class="form-label" for="geojson_data">GeoJSON:</label> | ||
<textarea class="form-control" id="geojson_data" name="geojson_data"></textarea> | ||
{% if error %} | ||
<div class="invalid-feedback"> | ||
<p style="color: red;">{{ error }}</p> | ||
</div> | ||
{% endif %} | ||
{% buttons %} | ||
<button type="submit" class="btn btn-success">Import</button> | ||
<a href="{% url 'backoffice:facility_type_list' camp_slug=camp.slug %}" class="btn btn-default"><i class="fas fa-undo"></i> Cancel</a> | ||
{% endbuttons %} | ||
</form> | ||
</div> | ||
</div> | ||
<script src="{% static 'js/backoffice/maps_layer_import_backoffice.js' %}"></script> | ||
{% 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
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,4 +1,4 @@ | ||
{% extends 'program_base.html' %} | ||
{% extends 'base.html' %} | ||
{% load bootstrap3 %} | ||
{% load bornhack %} | ||
|
||
|
17 changes: 17 additions & 0 deletions
17
src/backoffice/templates/includes/permissions_explainer.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,17 @@ | ||
<p>The available permissions are:</p> | ||
<p> | ||
<dl> | ||
<dt>lead</dt> | ||
<dd>The team lead permission enables a user to manage team memberships and permissions. This permission is granted to and removed from team leads automatically when the team membership is updated. Codename <b>camps.{{ team.slug }}_team_lead</b>.</dd> | ||
<dt>member</dt> | ||
<dd>The team member permission grants access to the team area with tasks and the team guide. It also grants access to handle facility feedback in backoffice. Some sections of backoffice and the main site are restricted to users with this permission. Codename <b>camps.{{ team.slug }}_team_member</b>.</dd> | ||
<dt>mapper</dt> | ||
<dd>The team mapper permission grants access to gis/map layer management in backoffice. Codename <b>camps.{{ team.slug }}_team_mapper</b>.</dd> | ||
<dt>facilitator</dt> | ||
<dd>The team facilitator permission grants access to manage facilities in backoffice. Codename <b>camps.{{ team.slug }}_team_facilitator</b>.</dd> | ||
<dt>infopager</dt> | ||
<dd>The team infopager permission grants access to manage infopage sections for the team. Codename <b>camps.{{ team.slug }}_team_infopager</b>.</dd> | ||
<dt>pos</dt> | ||
<dd>The team pos permission grants access to submit point-of-sale reports on behalf of the team. Codename <b>camps.{{ team.slug }}_team_pos</b>.</dd> | ||
</p> | ||
<p><a href="{% url 'backoffice:index' camp_slug=camp.slug %}" class="btn btn-default"><i class="fas fa-undo"></i> Backoffice</a></p> |
Oops, something went wrong.