-
Notifications
You must be signed in to change notification settings - Fork 7
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 #3636 from unicef/staging
Staging
- Loading branch information
Showing
60 changed files
with
844 additions
and
82 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
37 changes: 37 additions & 0 deletions
37
src/etools/applications/action_points/migrations/0015_auto_20240212_0717.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Generated by Django 3.2.19 on 2024-02-12 07:17 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import model_utils.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('action_points', '0014_auto_20210108_1634'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='actionpoint', | ||
name='date_of_verification', | ||
field=model_utils.fields.MonitorField(blank=True, default=None, monitor='verified_by', null=True, verbose_name='Date Action Point Verified'), | ||
), | ||
migrations.AddField( | ||
model_name='actionpoint', | ||
name='is_adequate', | ||
field=models.BooleanField(default=False, verbose_name='Is Adequate'), | ||
), | ||
migrations.AddField( | ||
model_name='actionpoint', | ||
name='potential_verifier', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='action_points_to_verify', to=settings.AUTH_USER_MODEL, verbose_name='Potential Verifier'), | ||
), | ||
migrations.AddField( | ||
model_name='actionpoint', | ||
name='verified_by', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='verified_action_points', to=settings.AUTH_USER_MODEL, verbose_name='Verified By'), | ||
), | ||
] |
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
31 changes: 31 additions & 0 deletions
31
...tools/applications/action_points/notifications/action_point-available-for-verification.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from unicef_notification.utils import strip_text | ||
|
||
name = 'action_points/action_point/action_point-available-for-verification' | ||
defaults = { | ||
'description': 'Action point available for verification', | ||
'subject': '[eTools] ACTION POINT available for verification', | ||
|
||
'content': strip_text(""" | ||
Dear {{ recipient }}, | ||
You were assigned as a verifier to an action point {% if action_point.partner %}related to: | ||
Implementing Partner: {{ action_point.partner }}{% endif %} | ||
Description: {{ action_point.description }} | ||
Link: {{ action_point.object_url }} | ||
"""), | ||
|
||
'html_content': """ | ||
{% extends "email-templates/base" %} | ||
{% block content %} | ||
Dear {{ recipient }},<br/><br/> | ||
You were assigned as a verifier to an action point {% if action_point.partner %}related to: | ||
<br/> | ||
Implementing Partner: {{ action_point.partner }}{% endif %}<br/> | ||
Description: {{ action_point.description }}<br/> | ||
Link: <a href="{{ action_point.object_url }}">{{ action_point.reference_number }}</a> | ||
{% 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
Oops, something went wrong.