-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
155 additions
and
54 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
Submodule appMR
updated
6 files
+3 −0 | admin.py | |
+6 −0 | apps.py | |
+12 −3 | background_tasks.py | |
+5 −4 | tests/test_background_tasks.py | |
+3 −0 | urls.py | |
+5 −0 | views.py |
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
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
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
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
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 |
---|---|---|
|
@@ -8,8 +8,6 @@ | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<title>fEMR On-Chain</title> | ||
<script src="{% static 'admin/js/vendor/jquery/jquery.js' %}" type="text/javascript"></script> | ||
<!-- <script crossorigin="anonymous" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" | ||
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> --> | ||
<script crossorigin="anonymous" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" | ||
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> | ||
<script src="{% static 'main/js/node_modules/inputmask/dist/jquery.inputmask.min.js' %}"></script> | ||
|
@@ -35,7 +33,10 @@ | |
<img alt="" | ||
src="https://demo.teamfemr.org/assets/img/52749c927045848ae798e9df58dcc0dd-logo_color_sm.png" width="60"> | ||
</a> | ||
<a data-content="Make sure you are using Google Chrome. Make sure Campaign is set to the correct clinic location or program. It is easiest to tab through each screen. For help contact [email protected]." data-toggle="popover" data-trigger="hover" href="#" | ||
<a data-content="Make sure you are using Google Chrome. | ||
Make sure Campaign is set to the correct clinic location or program. | ||
It is easiest to tab through each screen. For help contact [email protected]." | ||
data-toggle="popover" data-trigger="hover" href="#" | ||
id="main_popover"><i | ||
class="fa fa-question-circle"></i></a> | ||
|
||
|
@@ -63,8 +64,8 @@ | |
</li> | ||
{% if request.message_number > 0 %} | ||
<li class="nav-item" style="background-color: red;"> | ||
<a class="nav-link" href="{% url 'clinic_messages:index' %}" style="color: black;">Messages ({{ | ||
request.message_number }})</a> | ||
<a class="nav-link" href="{% url 'clinic_messages:index' %}" style="color: black;"> | ||
Messages ({{ request.message_number }})</a> | ||
</li> | ||
{% else %} | ||
<li class="nav-item"> | ||
|
@@ -142,7 +143,7 @@ <h1>{{ page_name }}</h1> | |
Find a bug or problem? <a href="{% url 'appMR:index' %}">Let us know.</a> | ||
</div> | ||
<div class="col-sm-12 col-md-4 text-center"> | ||
v1.4.2.10132021 | ||
v1.4.3.10142021 | ||
</div> | ||
<div class="col-sm-12 col-md-4"> | ||
<a href="https://github.com/FEMR/fEMR-OnChain-Core/wiki" target="_blank">fEMR On-Chain Wiki</a> | ||
|
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,6 +1,6 @@ | ||
{% extends "data/base.html" %} | ||
{% block content %} | ||
<div> | ||
<div>Paitent record successfully deleted.</div> | ||
<div>Patient record successfully deleted.</div> | ||
</div> | ||
{% 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
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,8 +1,19 @@ | ||
""" | ||
TemplateTags used to carry out more complex display actions on Campaigns. | ||
""" | ||
from django import template | ||
|
||
from main.models import Campaign | ||
|
||
register = template.Library() | ||
|
||
|
||
@register.filter('is_selected') | ||
def is_selected(campaign, selected): | ||
def is_selected(campaign: Campaign, selected: str) -> bool: | ||
""" | ||
Given a campaign and a campaign name, check if they match. | ||
:param campaign: | ||
:param selected: | ||
:return: | ||
""" | ||
return True if campaign.name == selected else False |
Oops, something went wrong.