Skip to content

Commit

Permalink
Merge pull request #528 from DH-IT-Portal-Development/fix/applicant_n…
Browse files Browse the repository at this point in the history
…ames_diff

Fix/applicant names diff
  • Loading branch information
EdoStorm96 authored Aug 24, 2023
2 parents e0a48e5 + 8177672 commit 429a20a
Show file tree
Hide file tree
Showing 10 changed files with 250 additions and 8 deletions.
18 changes: 16 additions & 2 deletions proposals/templates/proposals/proposal_diff.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,22 @@ <h2 class="mt-3 mb-1">{% trans "Algemene informatie over de aanvraag" %}</h2>
{% if proposal.other_applicants or p_proposal.other_applicants %}
<tr>
<th>{% get_verbose_field_name "proposals" "proposal" "applicants" %}</th>
<td>{{ p_proposal.applicants.all|unordered_list }}</td>
<td>{{ proposal.applicants.all|unordered_list }}</td>
<td>
<ul class="p-0">
{% for applicant in p_proposal.applicants.all %}
<li>{{ applicant.get_full_name }}</li>
{% endfor %}
</ul>
</td>
<td>
<ul class="p-0">
{% for applicant in proposal.applicants.all %}
<li>
{{ applicant.get_full_name }}
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

// Default for proposals
check_field_required('relation', 'needs_supervisor', 'supervisor', 'proposals');
check_field_required('student_context', 'needs_details', 'student_context_details', 'proposals', 'studentcontext');
depends_on_value('other_applicants', 'True', 'applicants');
depends_on_value('other_stakeholders', 'True', 'stakeholders');
check_field_required('funding', 'needs_details', 'funding_details', 'proposals');
Expand Down
23 changes: 23 additions & 0 deletions reviews/templates/mail/concept_other_applicants.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% extends "mail/base.html" %}

{% block content_nl %}
Beste collega,<br />
<br />
Uw collega {{ creator }} heeft een concept-aanmelding ingediend bij de ethische commissie voor het onderzoek {{ title }}, waar u aan meewerkt.<br />
De aanmelding wordt door de eindverantwoordelijk onderzoeker {{ supervisor }} van deze aanvraag gecontroleerd.
Zodra deze de concept-aanmelding, evt. na kleine aanpassingen, heeft goedgekeurd en ter toetsing bij de FETC-GW heeft ingediend, krijgt uw collega {{ creator }} van ons bericht.<br />
Indien de concept-aanmelding nog aanzienlijke wijzigingen uwerzijds behoeft zal de eindverantwoordelijk onderzoeker zelf contact met uw collega opnemen.<br />
U kunt de ingediende aanmelding <a href="{{ pdf_url }}">hier</a> in PDF vorm bekijken.<br />
<br />
{% endblock %}

{% block content_en %}
Dear colleague,<br />
<br />
Your colleague {{ creator }} has submitted a draft application to the ethics commision for the study {{ title }}, in which you are participating.<b />
The application will be checked by the study's supervisor {{ supervisor }}, the researcher who has the final responsibility of this study.<br />
Your colleague {{ creator }} will receive a notification as soon as {{ supervisor }} has approved and formally submitted your draft application, possibly after making some minor revisions.<br />
In case {{ supervisor }} finds it necessary for you to make more substantial revisions in the application, he/she will notify your colleague about this, and meanwhile formally disapprove the study in order for you to be able to revise and resubmit it.<br />
You can find a PDF of your submission <a href="{{pdf_url}}">here</a>.<br/>
<br />
{% endblock %}
23 changes: 23 additions & 0 deletions reviews/templates/mail/concept_other_applicants.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% extends "mail/base.txt" %}

{% block content_nl %}
Beste collega,

Uw collega {{ creator }} heeft een concept-aanmelding ingediend bij de ethische commissie voor het onderzoek {{ title }}, waar u aan meewerkt.
De aanmelding wordt door de eindverantwoordelijk onderzoeker {{ supervisor }} van deze aanvraag gecontroleerd.
Zodra deze de concept-aanmelding, evt. na kleine aanpassingen, heeft goedgekeurd en ter toetsing bij de FETC-GW heeft ingediend, krijgt uw collega {{ creator }} van ons bericht.
Indien de concept-aanmelding nog aanzienlijke wijzigingen uwerzijds behoeft zal de eindverantwoordelijk onderzoeker zelf contact met uw collega opnemen.
U kunt de ingediende aanmelding hier in PDF vorm bekijken:
{{ pdf_url }}
{% endblock %}

{% block content_en %}
Dear colleague,

Your colleague {{ creator }} has submitted a draft application to the ethics commision for the study {{ title }}, in which you are participating.
The application will be checked by the study's supervisor {{ supervisor }}, the researcher who has the final responsibility of this study.
Your colleague {{ creator }} will receive a notification as soon as {{ supervisor }} has approved and formally submitted your draft application, possibly after making some minor revisions.
In case {{ supervisor }} finds it necessary for you to make more substantial revisions in the application, he/she will notify your colleague about this, and meanwhile formally disapprove the study in order for you to be able to revise and resubmit it.
You can find a PDF file of your submission here:
{{pdf_url}}
{% endblock %}
6 changes: 0 additions & 6 deletions reviews/templates/mail/submitted_longroute.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
Je aanmelding is door de FETC-GW ontvangen. De automatische screening van de portal heeft op basis van de door jou gegeven beschrijving voorlopig de status <em>lange-route onderzoek</em>, zie <a href="https://fetc-gw.wp.hum.uu.nl/reglement-fetc-gw/">appendix A van het reglement</a> voor de criteria.<br/>
<br/>
Dit houdt in dat je aanvraag op de eerstvolgende vergadering van de FETC-GW zal worden besproken, wanneer je aanvraag tenminste een week voor die vergadering is ingediend. Zie <a href="https://fetc-gw.wp.hum.uu.nl/category/agenda/">de FETC-GW-agenda</a> voor een overzicht van de komende vergaderingen. Zeer kort na de vergadering zult u de beoordeling ontvangen.<br/>
<br/>
Met vriendelijke groeten, namens de FETC-GW,<br/>
<br/>
Desiree Capel, secretaris<br/>
<br/>
Dit is een automatisch gegenereerd bericht.<br/>
{% endif %}
{% endblock %}

Expand Down
37 changes: 37 additions & 0 deletions reviews/templates/mail/submitted_longroute_other_applicants.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% extends "mail/base.html" %}

{% block content_nl %}
{% if was_revised %}
Beste collega,<br/>
<br/>
Uw collega {{ creator }} heeft een gereviseerde aanvraag ingediend voor het onderzoek {{ title }}, waar u aan meewerkt, bij de ethische commissie. De aanvraag is door de FETC-GW ontvangen.<br/>
<br/>
Dit houdt in dat de revisie nu door twee leden van de FETC-GW zal worden beoordeeld; een eenvoudige revisie wordt alleen door de secretaris beoordeeld. We hopen uw collega, {{ creator }}, binnenkort een beoordeling te kunnen sturen.<br/>
U kunt de ingediende aanmelding <a href="{{ pdf_url }}">hier</a> in PDF vorm bekijken.<br/>
{% else %}
Beste collega,<br/>
<br/>
Uw collega {{ creator }} heeft een aanvraag ingediend voor het onderzoek {{ title }}, waar u aan meewerkt, bij de ethische commissie. De aanvraag is door de FETC-GW ontvangen. De automatische screening van de portal heeft op basis van de door jou gegeven beschrijving voorlopig de status <em>lange-route onderzoek</em>, zie <a href="https://fetc-gw.wp.hum.uu.nl/reglement-fetc-gw/">appendix A van het reglement</a> voor de criteria.<br/>
<br/>
Dit houdt in dat je aanvraag op de eerstvolgende vergadering van de FETC-GW zal worden besproken, wanneer je aanvraag tenminste een week voor die vergadering is ingediend. Zie <a href="https://fetc-gw.wp.hum.uu.nl/category/agenda/">de FETC-GW-agenda</a> voor een overzicht van de komende vergaderingen. Kort na de vergadering zal {{ creator }} de beoordeling ontvangen.<br/>
U kunt de ingediende aanmelding <a href="{{ pdf_url }}">hier</a> in PDF vorm bekijken.<br/>
{% endif %}
{% endblock %}

{% block content_en %}
{% if was_revised %}
Dear colleague,<br/>
<br/>
Your colleague {{ creator }} has submitted a revised application for the study {{ title }}, in which you are participating. The FEtC-H has received your application.<br/>
<br/>
This means that your study will be assessed by two members of the FEtC-H; minor revisions will be assessed by the secretary only. We hope to be able to send your colleague {{ creator }} a review soon.<br/>
You can find a PDF of your submission <a href="{{pdf_url}}">here</a>.<br/>
{% else %}
Dear colleague,<br/>
<br/>
Your colleague {{ creator }} has submitted an application for the study {{ title }}, in which you are participating. The FEtC-H has received your application. The automatic screening of the portal has given your study the status of <em>long-route research</em>, see <a href="https://fetc-gw.wp.hum.uu.nl/en/regulations-fetc-h/"> appendix A in the regulations</a> for the criteria.<br/>
<br/>
This means that your study will be discussed during the next FEtC-H meeting, if your application was submitted at least one week before that meeting. See <a href="https://fetc-gw.wp.hum.uu.nl/en/category/agenda-en/">the FEtC-H agenda</a> for an overview of upcoming meetings. {{ creator }} will receive the assessment shortly after the meeting.<br/>
You can find a PDF of your submission <a href="{{pdf_url}}">here</a>.<br/>
{% endif %}
{% endblock %}
41 changes: 41 additions & 0 deletions reviews/templates/mail/submitted_longroute_other_applicants.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% extends "mail/base.txt" %}

{% block content_nl %}
{% if was_revised %}
Beste collega,

Uw collega {{ creator }} heeft een gereviseerde aanvraag ingediend voor het onderzoek {{ title }}, waar u aan meewerkt, bij de ethische commissie. De aanvraag is door de FETC-GW ontvangen.

Dit houdt in dat de revisie nu door twee leden van de FETC-GW zal worden beoordeeld; een eenvoudige revisie wordt alleen door de secretaris beoordeeld. We hopen uw collega, {{ creator }}, binnenkort een beoordeling te kunnen sturen.
U kunt de ingediende aanmelding hier in PDF vorm bekijken:
{{ pdf_url }}
{% else %}
Beste collega,

Uw collega {{ creator }} heeft een aanvraag ingediend voor het onderzoek {{ title }}, waar u aan meewerkt, bij de ethische commissie. De aanvraag is door de FETC-GW ontvangen. De automatische screening van de portal heeft op basis van de door jou gegeven beschrijving voorlopig de status 'lange-route onderzoek', zie appendix A van het reglement voor de criteria (https://fetc-gw.wp.hum.uu.nl/reglement-fetc-gw/).

Dit houdt in dat je aanvraag op de eerstvolgende vergadering van de FETC-GW zal worden besproken, wanneer je aanvraag tenminste een week voor die vergadering is ingediend. Zie de FETC-GW-agenda (https://fetc-gw.wp.hum.uu.nl/reglement-fetc-gw/) voor een overzicht van de komende vergaderingen. Kort na de vergadering zal {{ creator }} de beoordeling ontvangen.
U kunt de ingediende aanmelding hier in PDF vorm bekijken:
{{ pdf_url }}
{% endif %}
{% endblock %}

{% block content_en %}
{% if was_revised %}
Dear colleague,

Your colleague {{ creator }} has submitted a revised application for the study {{ title }}, in which you are participating. The FEtC-H has received your application.

This means that your study will be assessed by two members of the FEtC-H; minor revisions will be assessed by the secretary only. We hope to be able to send your colleague {{ creator }} a review soon.
You can find a PDF file of your submission here:
{{pdf_url}}
{% else %}
Dear colleague,

Your colleague {{ creator }} has submitted an application for the study {{ title }}, in which you are participating. The FEtC-H has received your application. The automatic screening of the portal has given your study the status of long-route research, see appendix A in the regulations for the criteria (https://fetc-gw.wp.hum.uu.nl/en/regulations-fetc-h/).

This means that your study will be discussed during the next FEtC-H meeting, if your application was submitted at least one week before that meeting. See the FEtC-H agenda (https://fetc-gw.wp.hum.uu.nl/en/category/agenda-en/) for an overview of upcoming meetings. {{ creator }} will receive the assessment shortly after the meeting.
You can find a PDF file of your submission here:
{{pdf_url}}
{% endif %}
{% endblock %}
39 changes: 39 additions & 0 deletions reviews/templates/mail/submitted_shortroute_other_applicants.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{% extends "mail/base.html" %}

{% block content_nl %}
{% if was_revised %}
Beste collega,<br/>
<br/>
Uw collega {{ creator }} heeft een gereviseerde aanvraag ingediend voor het onderzoek {{ title }}, waar u aan meewerkt, bij de ethische commissie. De aanvraag is door de FETC-GW ontvangen.<br/>
<br/>
Dit houdt in dat de revisie nu door twee leden van de FETC-GW zal worden beoordeeld; een eenvoudige revisie wordt alleen door de secretaris beoordeeld. We hopen uw collega, {{ creator }}, binnenkort een beoordeling te kunnen sturen.<br/>
U kunt de ingediende aanmelding <a href="{{ pdf_url }}">hier</a> in PDF vorm bekijken.<br/>
{% else %}
Beste collega,<br/>
<br/>
Uw collega {{ creator }} heeft een aanvraag ingediend voor het onderzoek {{ title }}, waar u aan meewerkt, bij de ethische commissie. De aanvraag is door de FETC-GW ontvangen. De automatische screening van de portal heeft op basis van de door jou gegeven beschrijving voorlopig de status <em>korte-route onderzoek</em> gekregen.<br/>
<br/>
Dit houdt in dat wij ernaar streven om uw collega binnen twee werkweken een eerste beoordeling van de FETC-GW te sturen.<br/>
U kunt de ingediende aanmelding <a href="{{ pdf_url }}">hier</a> in PDF vorm bekijken.<br/>
<br/>
NB: Het is mogelijk dat je aanvraag alsnog als 'lange-route onderzoek' wordt aangemerkt, in welk geval de beoordeling langer kan duren, zie het <a href="https://fetc-gw.wp.hum.uu.nl/reglement-fetc-gw/">reglement</a>. Houdt u hier a.u.b. rekening mee.<br/>
{% endif %}
{% endblock %}

{% block content_en %}
{% if was_revised %}
Dear colleague,<br/>
<br/>
Your colleague {{ creator }} has submitted a revised application for the study {{ title }}, in which you are participating. The FEtC-H has received your revised application.<br/>
<br/>
This means that your study will be assessed by two members of the FEtC-H; minor revisions will be assessed by the secretary only. We hope to be able to send you a review soon.<br/>
You can find a PDF of your submission <a href="{{pdf_url}}">here</a>.<br/>
{% else %}
Dear colleague,<br/>
<br/>
Your colleague {{ creator }} has submitted an application for the study {{ title }}, in which you are participating. The FEtC-H has received your application. The automatic screening of the portal has given your study the status of <em>short-route research</em>. This means that your colleague will receive an assessment within two working weeks.<br/>
You can find a PDF of your submission <a href="{{pdf_url}}">here</a>.<br/>
<br/>
Note: It is possible that your application may still be classified as a 'long-route research', in which case the asssessment procedure may take longer, see the <a href="https://fetc-gw.wp.hum.uu.nl/en/regulations-fetc-h/">regulations</a> for information. If the latter case, see <a href="http://fetc-gw.wp.hum.uu.nl/regulations/">section 2.8, p. 14</a> for the possible time paths.<br/>
{% endif %}
{% endblock %}
45 changes: 45 additions & 0 deletions reviews/templates/mail/submitted_shortroute_other_applicants.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% extends "mail/base.txt" %}

{% block content_nl %}
{% if was_revised %}
Beste collega,

Uw collega {{ creator }} heeft een gereviseerde aanvraag ingediend voor het onderzoek {{ title }}, waar u aan meewerkt, bij de ethische commissie. De aanvraag is door de FETC-GW ontvangen.

Dit houdt in dat de revisie nu door twee leden van de FETC-GW zal worden beoordeeld; een eenvoudige revisie wordt alleen door de secretaris beoordeeld. We hopen uw collega, {{ creator }}, binnenkort een beoordeling te kunnen sturen.
U kunt de ingediende aanmelding hier in PDF vorm bekijken:
{{ pdf_url }}
{% else %}
Beste collega,

Uw collega {{ creator }} heeft een aanvraag ingediend voor het onderzoek {{ title }}, waar u aan meewerkt, bij de ethische commissie. De aanvraag is door de FETC-GW ontvangen. De automatische screening van de portal heeft op basis van de door jou gegeven beschrijving voorlopig de status 'korte-route onderzoek' gekregen.

Dit houdt in dat wij ernaar streven om uw collega binnen twee werkweken een eerste beoordeling van de FETC-GW te sturen.
U kunt de ingediende aanmelding hier in PDF vorm bekijken:
{{ pdf_url }}

NB: Het is mogelijk dat de aanvraag alsnog als 'lange-route onderzoek' wordt aangemerkt, in welk geval de beoordeling langer kan duren, zie het reglement (https://fetc-gw.wp.hum.uu.nl/reglement-fetc-gw/).
{% endif %}
{% endblock %}

{% block content_en %}
{% if was_revised %}
Dear colleague,

Your colleague {{ creator }} has submitted a revised application for the study {{ title }}, in which you are participating. The FEtC-H has received your revised application.

This means that your study will be assessed by two members of the FEtC-H; minor revisions will be assessed by the secretary only. We hope to be able to send your colleague {{ creator }} a review soon.
You can find a PDF file of your submission here:
{{pdf_url}}
{% else %}
Dear colleague,

Your colleague {{ creator }} has submitted an application for the study {{ title }}, in which you are participating. The FEtC-H has received your application. The automatic screening of the portal has given your study the status of 'short-route research'.

This means that we aim to send your colleague an initial assessment of the FETC-GW within two working weeks.
You can find a PDF file of your submission here:
{{pdf_url}}

Note: It is possible that your application may still be classified as a 'long-route research', in which case the asssessment procedure may take longer, see the regulations (https://fetc-gw.wp.hum.uu.nl/en/regulations-fetc-h/).
{% endif %}
{% endblock %}
Loading

0 comments on commit 429a20a

Please sign in to comment.