Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cpovc_forms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10733,7 +10733,7 @@ def new_cpara(request, id):
ind_answer = True
else:
ind_answer = False
breakpoint()
# breakpoint()

try:
OVCCareIndividaulCpara.objects.create(
Expand All @@ -10755,8 +10755,8 @@ def new_cpara(request, id):
print(error_message)

else:
for h_mmembers in hhmembers:
hh_members = []
hh_members = []
for h_mmembers in hhmembers:
hh_person_ids = h_mmembers.person.id
hh_members.append(hh_person_ids)
hh_members.append(id)
Expand Down
4 changes: 3 additions & 1 deletion static/js/cpara-validate-benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ validBench(['CP1q', 'CP2q', 'CP3q', 'CP4q', 'CP5q'], ['AYES','AYES,ANA','AYES,AN
validBench(['CP6q','CP7q','CP8q','CP9q','CP10q','CP11q','CP12q','CP13q','CP14q'], ['AYES','AYES,ANA','AYES','AYES','AYES,ANA','AYES','AYES','AYES,ANA','AYES'], 'CP2b');

// Healthy Goal 3 >> Benchmark 3
// validBench(['CP23q_b_1','CP23q_b_2','CP23q_b_3'],['AYES','AYES','AYES'],'CP3b')
validBench(['CP23q_b_1','CP23q_b_2','CP23q_b_3'],['AYES','AYES','AYES'],'CP3b')
// Healthy Goal 4 >> Benchmark 4
// $('input[name=CP41Skip').change(function (e){
// if ($('input[name=CP41Skip]:checked').val()==='ANA'){
Expand All @@ -251,6 +251,8 @@ validBench(['CP33q','CP34q','CP35q','CP36q'],['AYES','AYES','AYES','AYES,ANA'],'
validBench(['CP330q','CP340q','CP350q','CP360q'],['AYES','AYES','AYES','AYES'],'CP90b')




validDate('CP2d','CP1d','AYES','ANNO');


Expand Down
3 changes: 2 additions & 1 deletion templates/forms/new_cpara.html
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ <h4 class="">
{% endif %}
{% if hhmembers %}
{% for sibling in hhmembers %}
{% if sibling.person.years >= 10 and sibling.person.years <= 20 %}
{% if sibling.person.years >= 12 and sibling.person.years <= 20 %}
<tr class="row12">
<td>
<a href="{% url 'view_person' id=sibling.person.id %}">{{ sibling.person.first_name }} {{ sibling.person.surname }} {{ sibling.person.last_name }}</a>
Expand Down Expand Up @@ -951,6 +951,7 @@ <h4 class="">
</label>
</td>
</tr>


{% endif %}
{% endfor %}
Expand Down