-
Notifications
You must be signed in to change notification settings - Fork 37
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
246 changed files
with
979 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ cpims/settings.py | |
.history/* | ||
.pyc | ||
__pycache__ | ||
__pycache__/* | ||
*.pyc | ||
migrations |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+9 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0002_auto_20221108_0852.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0002_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0003_auto_20221108_0852.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0003_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0004_alter_afcforms_item_value.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0004_alter_afcquestions_id.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0005_afcmain_care_sub_type.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_afc/migrations/__pycache__/0006_alter_afcinfo_item_value.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_auth/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_auth/migrations/__pycache__/0002_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...auth/migrations/__pycache__/0003_alter_appuser_password_changed_timestamp.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_ctip/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_ctip/migrations/__pycache__/0002_ctipmain_case.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_ctip/migrations/__pycache__/0002_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_ctip/migrations/__pycache__/0003_auto_20221108_0852.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_ctip/migrations/__pycache__/0003_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_ctip/migrations/__pycache__/0004_alter_ctipmain_id.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+47 Bytes
(100%)
cpovc_forms/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_forms/migrations/__pycache__/0002_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_forms/migrations/__pycache__/0003_ovccaselocation_report_city_and_more.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_forms/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_help/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_help/migrations/__pycache__/0002_initial.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+420 Bytes
(100%)
cpovc_main/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_main/migrations/__pycache__/0002_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...c_main/migrations/__pycache__/0003_alter_setuplist_item_description_short.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...__pycache__/0004_alter_forms_date_ended_alter_forms_form_area_id_and_more.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...__pycache__/0005_alter_forms_options_alter_listquestions_options_and_more.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_main/migrations/__pycache__/0006_listquestions_answer_field_id.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_main/migrations/__pycache__/0007_listquestions_question_required.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_main/migrations/__pycache__/0008_alter_listquestions_answer_type_id.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_main/migrations/__pycache__/0009_alter_listquestions_answer_set_id.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_manage/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_manage/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
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,14 +1,21 @@ | ||
from django.urls import path | ||
from django.urls import path, re_path | ||
from . import views | ||
|
||
# This should contain urls related to Mobile App endpoints ONLY | ||
|
||
urlpatterns = [ | ||
path('', views.ovc_mobile_home, name='ovc_mobile_home'), | ||
path("", views.ovc_mobile_home, name="ovc_mobile_home"), | ||
# path('caseload/', views.ovc_mobile_caseload, name='ovc_mobile_caseload'), | ||
path('caseload/', views.CaseloadViewSet.as_view()), | ||
path("caseload/", views.CaseloadViewSet.as_view()), | ||
# path('crs/', views.CaseloadViewSet.as_view()), | ||
# path('follow_up/', views.CaseloadViewSet.as_view()), | ||
path('crs/', views.ovc_mobile_crs, name='ovc_mobile_crs'), | ||
path('follow_up/', views.ovc_mobile_follow_up, name='ovc_mobile_follow_up'), | ||
] | ||
path("crs/", views.ovc_mobile_crs, name="ovc_mobile_crs"), | ||
path("follow_up/", views.ovc_mobile_follow_up, name="ovc_mobile_follow_up"), | ||
# Approval urls UI | ||
path("mobile-approval/", views.mobile_app_home, name="mobile_app_home"), | ||
re_path( | ||
r"^crs/view/(?P<id>\w+)/$", | ||
views.view_mobile_case_record_sheet, | ||
name="view_mobile_case_record_sheet", | ||
), | ||
] |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_ovc/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+33 Bytes
(100%)
cpovc_registry/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/migrations/__pycache__/0002_delete_photo.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/migrations/__pycache__/0003_photo.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/migrations/__pycache__/0004_photo_has_consent.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/templatetags/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+20 Bytes
(100%)
cpovc_registry/templatetags/__pycache__/app_class.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/templatetags/__pycache__/app_filters-.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/templatetags/__pycache__/app_filters.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/templatetags/__pycache__/app_forms.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_registry/templatetags/__pycache__/git_version.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_reports/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_reports/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_settings/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_settings/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1.54 KB
(74%)
cpovc_stat_inst/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0002_alter_si_admission_table_simain.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...t_inst/migrations/__pycache__/0003_alter_si_admission_table_delete_simain.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0004_alter_si_admission_table.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0005_simain.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0006_sievents_afcforms.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0007_simain_org_type.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0008_alter_si_vacancyapp_options.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...rations/__pycache__/0009_alter_si_admission_commital_court_order_and_more.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...cache__/0010_si_vacancyapp_approved_by_si_vacancyapp_institution_and_more.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...inst/migrations/__pycache__/0011_alter_si_vacancyapp_institution_and_more.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...inst/migrations/__pycache__/0012_remove_si_vacancyapp_cci_placed_and_more.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...t_inst/migrations/__pycache__/0013_remove_sievents_case_alter_simain_case.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0014_simain_case_number.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0015_alter_sievents_form_id.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0016_alter_sievents_form_id.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0017_rename_afcforms_siforms.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/0018_alter_siforms_question_id.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
cpovc_stat_inst/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+34 Bytes
(100%)
notifications/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...igrations/__pycache__/0002_alter_notification_id_alter_notification_level.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
notifications/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
notifications/templatetags/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
notifications/templatetags/__pycache__/notifications_tags.cpython-310.pyc
Binary file not shown.
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,135 @@ | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
{% block page_title %} CPIMS Mobile Approval Workflow {% endblock %} | ||
|
||
{% load app_filters %} | ||
|
||
{% load crispy_forms_tags %} | ||
|
||
{% block style_code %} | ||
<link href="{% static 'plugins/datatables/css/data-table.css' %}" rel="stylesheet" /> | ||
{% endblock %} | ||
|
||
{% block primary %} | ||
<!-- begin breadcrumb --> | ||
<ol class="breadcrumb pull-right"> | ||
<li><a href="#">Home</a></li> | ||
<li class="active">Approval</li> | ||
</ol> | ||
<!-- end breadcrumb --> | ||
<!-- begin page-header --> | ||
<h1 class="page-header"> Mobile Aproval <small>Home</small></h1> | ||
<!-- end page-header --> | ||
<div id="messages" class="alert alert-danger fade in" style="display: none;" tabindex="1"> | ||
<span class="close" data-dismiss="alert">×</span> | ||
<i class="fa fa-check fa-2x pull-left"></i> | ||
<span class="invalid-form-message" id="invalid-form-message"></span> | ||
</div> | ||
<!-- begin row --> | ||
<div class="row"> | ||
<!-- begin col-12 --> | ||
<div class="col-md-12"> | ||
<!-- begin panel --> | ||
<div class="panel panel-inverse"> | ||
<div class="panel-heading"> | ||
<div class="panel-heading-btn"> | ||
<a href="#" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a> | ||
<a href="#" class="btn btn-xs btn-icon btn-circle btn-danger" data-click="panel-remove"><i class="fa fa-times"></i></a> | ||
</div> | ||
<h4 class="panel-title">Mobile Approval - Workflow</h4> | ||
</div> | ||
<!-- start panel body --> | ||
<div class="panel-body"> | ||
<div class="row"> | ||
|
||
</div> | ||
<hr> | ||
<table class="table" id="data-table"> | ||
<thead> | ||
<tr><th>#</th><th>CPIMS ID</th><th>Names</th><th>Case ID</th><th>Case Date</th><th></th></tr> | ||
</thead> | ||
{% for case in cases %} | ||
<tr> | ||
<td>{{ forloop.counter }}</td> | ||
<td>{{ case.id }}</td> | ||
<td>{{ case.first_name }} {{ case.surname|default:"------" }}</td> | ||
<td>{{ case.case }} {{ case.case_t }}</td> | ||
<td>{{ case.case_date }}</td> | ||
<td> | ||
{% if case.case_level == 2 %} | ||
<a href="{% url 'view_mobile_case_record_sheet' id=case.care_id %}" class="btn btn-sm btn-primary m-r-5">View Care details</a> | ||
{% elif case.case_level == 1 %} | ||
<a href="{% url 'new_alt_care' case_id=case.case_id %}" class="btn btn-sm btn-primary m-r-5">New Alternative Care</a> | ||
{% else %} | ||
<a href="" class="btn btn-sm btn-danger m-r-5">New Case Record Sheet</a> | ||
{% endif %} | ||
|
||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
<!-- end panel body --> | ||
</div> | ||
<!-- end panel --> | ||
</div> | ||
<!-- end col-12 --> | ||
</div> | ||
<!-- end row --> | ||
|
||
{% endblock %} | ||
|
||
{% block lazy_javascript_code %} | ||
<script src="{% static 'plugins/datatables/js/jquery.dataTables.js' %}"></script> | ||
<script src="{% static 'plugins/datatables/js/dataTables.bootstrap.min.js' %}"></script> | ||
<script src="{% static 'plugins/datatables/js/moment.min.js' %}"></script> | ||
<script src="{% static 'plugins/datatables/js/datetime-moment.js' %}"></script> | ||
|
||
<script> | ||
$(document).ready(function() { | ||
$('#data-table').DataTable( { | ||
"order": [[ 0, "asc" ]] | ||
} ); | ||
|
||
$('.ddash').on('click', function(ev) { | ||
// var hashValue = location.hash.replace(/^#/, ''); | ||
var id = $(this).attr('id'); | ||
var cname = $(this).attr('rel'); | ||
var cdate = $(this).attr('rel1'); | ||
$('#cname').html(cname); | ||
$('#cdate').html(cdate); | ||
$('#item_cid').val(id); | ||
$('#mywork > tbody').html('<tr><td colspan="3">Loading data</td></tr>'); | ||
$.ajax({ | ||
type: "POST", | ||
url: "{{ request.get_full_path }}", | ||
data: $("#icases").serialize()+ "&item_id="+ id + "&did=1", | ||
success: function(response) | ||
{ | ||
var msg = response.message; | ||
var status_id = response.status; | ||
var cdates = response.dates; | ||
if (status_id == 0){ | ||
$("#report_"+ id).remove(); | ||
} | ||
$('#mng_messages').html(msg); | ||
var dt = ''; | ||
var tchildren = 0; | ||
var tcases = 0; | ||
var trpts = 0; | ||
$.each(response.data, function(key, val) { | ||
dt += '<tr><td></td><td>'+ key +'</td><td>'; | ||
dt += val + '</td></tr>'; | ||
}); | ||
$('#mywork > tbody').html(dt); | ||
}, | ||
error: function(){ | ||
$('#mng_messages').html("Error removing report") | ||
} | ||
}); | ||
$('#modal-details').modal('show'); | ||
ev.preventDefault(); | ||
}); | ||
} ); | ||
</script> | ||
{% endblock %} |
Oops, something went wrong.