diff --git a/horilla_theme/templates/dashboard/pms_dashboard.html b/horilla_theme/templates/dashboard/pms_dashboard.html index 06ba78a06..4a9cf1fe6 100644 --- a/horilla_theme/templates/dashboard/pms_dashboard.html +++ b/horilla_theme/templates/dashboard/pms_dashboard.html @@ -156,7 +156,7 @@ -
+
{% trans "Objectives At-Risk" %}
@@ -166,6 +166,8 @@
+ + {% comment %} {% if okr_at_risk %}
{% endif %} +
@@ -139,198 +144,33 @@
+ + + + - - - -{% endblock%} - -{% comment %} {% extends 'index.html' %} -{% load static i18n widget_tweaks %} -{% block styles %} - -{% endblock styles %} -{% block content %} -{% if feedback_form.errors %} -
-
- {% for error in feedback_form.non_field_errors %} -
- {{ error }} -
- {% endfor %} -
-
-{% endif %} -
- -
-

{{feedback_form.verbose_name}}

-
- {{feedback_form.non_field_errors}} -
-
-
- - {{feedback_form.review_cycle}} - {{feedback_form.review_cycle.errors}} - - - {{feedback_form.employee_id }} - {{feedback_form.employee_id.errors }} - - - {{feedback_form.manager_id}} - {{feedback_form.manager_id.errros}} - -
- - -
- {{feedback_form.subordinate_id}} - {{feedback_form.subordinate_id.errors}} - -
- - -
- {{feedback_form.colleague_id}} - {{feedback_form.colleague_id.errors}} - - - {{feedback_form.others_id}} - {{feedback_form.others_id.errros}} - - - {{feedback_form.period}} - {{feedback_form.period.errros}} - - - {{feedback_form.start_date}} - {{feedback_form.start_date.errros}} - - - {{feedback_form.end_date}} - {{feedback_form.end_date.errros}} - - - {{feedback_form.question_template_id}} - {{feedback_form.question_template_id.errros}} - - - {{feedback_form.employee_key_results_id}} - {{feedback_form.employee_key_results_id.errros}} - - - - -
- -
- {{feedback_form.cyclic_feedback}} -
- {{feedback_form.cyclic_feedback.errors}} -
- - - {{feedback_form.cyclic_feedback_days_count}} - {{feedback_form.cyclic_feedback_days_count.errros}} - - -
-
-
- -
- - -
-
-
- - - - -{% endblock%} {% endcomment %} +{% endblock%} diff --git a/horilla_theme/templates/generic/horilla_history_view.html b/horilla_theme/templates/generic/horilla_history_view.html new file mode 100644 index 000000000..a25b5bad1 --- /dev/null +++ b/horilla_theme/templates/generic/horilla_history_view.html @@ -0,0 +1,106 @@ +{% load static i18n audit_filters %} +
+ + +
+ + + + {{ object }}'s Logs +
+ + {% if tracking %} +
+ + + + +
+ + {% else %} +
+
+ No history +

{% trans "No history found." %}

+
+
+ {% endif %} +
diff --git a/horilla_theme/templates/okr/objective_detailed_view_activity.html b/horilla_theme/templates/okr/objective_detailed_view_activity.html new file mode 100644 index 000000000..adf1a03fb --- /dev/null +++ b/horilla_theme/templates/okr/objective_detailed_view_activity.html @@ -0,0 +1,307 @@ +{% load i18n %} +{% load pmsfilters %} + + + +{% if messages %} +
+ {% for message in messages %} +
+
{{ message }}
+
+ {% endfor %} +
+{% endif %} +
+ +
+ + + + {% trans 'Activities' %} +
+ +
+ {% csrf_token %} +
+ + +
+
+ +
+ + + \ No newline at end of file diff --git a/pms/models.py b/pms/models.py index bbb17b4ab..8e5511527 100644 --- a/pms/models.py +++ b/pms/models.py @@ -452,7 +452,7 @@ class EmployeeObjective(HorillaModel): """ for detail view of page """ - url = reverse("view-employee-objective", kwargs={"emp_obj_id": self.pk}) + url = reverse("view-employee-objective", kwargs={"pk": self.pk}) return url def title_col(self): diff --git a/pms/static/src/dashboard/pmsChart.js b/pms/static/src/dashboard/pmsChart.js index 9f51da15a..eb06702ca 100644 --- a/pms/static/src/dashboard/pmsChart.js +++ b/pms/static/src/dashboard/pmsChart.js @@ -144,6 +144,7 @@ if (keyResultStatusChartCtx != null) { } function keyResultStatusDataUpdate(data) { + console.log('keyresult',data) keyResultStatusData.labels = data.key_result_label; keyResultStatusData.datasets[0].data = data.key_result_value; keyResultStatusData.message = data.message; diff --git a/pms/templates/feedback/question/edit_form.html b/pms/templates/feedback/question/edit_form.html index 2f143b92b..700a9a81e 100644 --- a/pms/templates/feedback/question/edit_form.html +++ b/pms/templates/feedback/question/edit_form.html @@ -46,7 +46,7 @@ {% endfor %} - {% endcomment %} + {% endcomment %} {{ form.non_field_errors }} {{form.errors}}
@@ -131,6 +131,6 @@ $("#options").show() } else { $("#options").hide() - } + } } - \ No newline at end of file +