diff --git a/pms/filters.py b/pms/filters.py index 5ccf6a95a..dbee266da 100644 --- a/pms/filters.py +++ b/pms/filters.py @@ -92,6 +92,7 @@ class ActualObjectiveFilter(FilterSet): model = Objective fields = [ "managers", + "archive", "assignees", "duration", "employee_objective", diff --git a/pms/templates/feedback/feedback_list.html b/pms/templates/feedback/feedback_list.html index 8e8f70123..b80c5adbb 100644 --- a/pms/templates/feedback/feedback_list.html +++ b/pms/templates/feedback/feedback_list.html @@ -95,7 +95,7 @@
{% trans "Title" %}
{% trans "Status" %}
{% trans "Due In" %}
-
+
{% trans "Actions" %}
@@ -232,7 +232,7 @@
{% trans "Title" %}
{% trans "Status" %}
{% trans "Due Date" %}
-
+
{% trans "Actions" %}
@@ -373,7 +373,7 @@
{% trans "Title" %}
{% trans "Status" %}
{% trans "Due In" %}
-
+
{% trans "Actions" %}
@@ -511,7 +511,7 @@
{% trans "Subject" %}
{% trans "Based on" %}
{% trans "Create At" %}
-
+
{% trans "Actions" %}
diff --git a/pms/templates/feedback/feedback_list_view.html b/pms/templates/feedback/feedback_list_view.html index 4852e6e3b..a0302b5e5 100644 --- a/pms/templates/feedback/feedback_list_view.html +++ b/pms/templates/feedback/feedback_list_view.html @@ -35,7 +35,7 @@
-
-
+
{% include 'feedback/question/question_all.html' %} diff --git a/pms/templates/okr/emp_objective_form.html b/pms/templates/okr/emp_objective_form.html index b540cdaee..81d482848 100644 --- a/pms/templates/okr/emp_objective_form.html +++ b/pms/templates/okr/emp_objective_form.html @@ -5,7 +5,7 @@

{% trans "Update Employee Objective" %}

-
diff --git a/pms/templates/okr/okr_list.html b/pms/templates/okr/okr_list.html index 42499256a..39ad93451 100644 --- a/pms/templates/okr/okr_list.html +++ b/pms/templates/okr/okr_list.html @@ -82,17 +82,17 @@
-
-
- -
-
    -
+
+
+ +
+
    +
+
-
@@ -100,22 +100,20 @@
-
{% trans "Title" %}
-
{% trans "Title" %}
+
{% trans "Managers" %}
-
{% trans "Key Results" %}
-
{% trans "Assignees" %}
-
{% trans "Duration" %}
-
{% trans "Description" %}
{% if perms.pms.add_employeeobjective or perms.pms.change_objective or perms.pms.delete_objective %} @@ -205,7 +203,7 @@ {% endfor %} {{objective.key_result_id.all|length}} {% trans "Key results" %}
-
+
{% for emp_objective in objective.employee_objective.all %}
@@ -234,16 +232,16 @@ {% endfor %} {{ objective.employee_objective.all|length}} {% trans "Assignees" %}
-
+
{{objective.duration}}
-
+
{{objective.description}}
{% if perms.pms.add_employeeobjective or perms.pms.change_objective or perms.pms.delete_objective %}
-
+
{% if perms.pms.add_employeeobjective %} {% endcomment %} {% if perms.pms.delete_objective %} {% if objective.archive %} - +
+ {% csrf_token %} + +
{% else %} - +
+ {% csrf_token %} + +
{% endif %} {% endif %} {% if perms.pms.delete_objective %} @@ -471,7 +483,7 @@ {{objective.objective_id.description}}
-
+
{% if perms.pms.change_objective %} +
+ {% csrf_token %} + +
{% else %} - +
+ {% csrf_token %} + +
{% endif %} {% endif %} {% if perms.pms.delete_objective %} @@ -593,4 +619,21 @@ $('[data-target="#self_objective"]').click() } }); + + toggleColumns("all_objective-table", "allObjectiveCells"); + localStorageShiftRequestCells = localStorage.getItem("all_objective_table"); + if (!localStorageShiftRequestCells) { + $("#allObjectiveCells").find("[type=checkbox]").prop("checked", true); + } + $("[type=checkbox]").change(); + + + toggleColumns("own-objective-table", "OwnObjectiveCells"); + localStorageShiftRequestCells = localStorage.getItem("own_objective_table"); + if (!localStorageShiftRequestCells) { + $("#OwnObjectiveCells").find("[type=checkbox]").prop("checked", true); + } + $("[type=checkbox]").change(); + + \ No newline at end of file diff --git a/pms/templates/okr/okr_nav.html b/pms/templates/okr/okr_nav.html index 4717352a6..031c3e6ca 100644 --- a/pms/templates/okr/okr_nav.html +++ b/pms/templates/okr/okr_nav.html @@ -99,6 +99,14 @@ {{objective_filer_form.employee_objective__progress_percentage}}
+
+
+ + {{objective_filer_form.archive}} +
+
@@ -158,7 +166,7 @@
{% endcomment %} -
+ {% comment %}
-
+
{% endcomment %} {% if perms.pms.add_employeeobjective or request.user|filtersubordinates %}