[UPDT] PMS: Attr for labels

This commit is contained in:
Horilla
2024-02-05 11:42:54 +05:30
parent ec91d5578e
commit ff31aa249c
11 changed files with 91 additions and 89 deletions

View File

@@ -30,7 +30,7 @@
<div class="oh-onboarding-card__address-group">
<h2 class="oh-onboarding-card__section-title">{% trans "Feedback" %}</h2>
<div class="oh-input__group ">
<label class="oh-input__label" for="objective">{% trans "Title" %}</label>
<label class="oh-input__label" for="{{feedback_form.review_cycle.id_for_label}}">{% trans "Title" %}</label>
{{feedback_form.review_cycle}}
{{feedback_form.review_cycle.errors}}
</div>
@@ -38,7 +38,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Employee" %}</label>
<label class="oh-input__label" for="{{feedback_form.employee_id.id_for_label}}">{% trans "Employee" %}</label>
{{feedback_form.employee_id }}
{{feedback_form.employee_id.errors }}
<ul id="error-list" class="errorlist" style="display: none">
@@ -50,7 +50,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Manager" %}</label>
<label class="oh-input__label" for="{{feedback_form.manager_id.id_for_label}}">{% trans "Manager" %}</label>
{{feedback_form.manager_id}}
{{feedback_form.manager_id.errros}}
<ul id="error-list" class="errorlist" style="display: none">
@@ -64,7 +64,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Subordinates" %}</label>
<label class="oh-input__label" for="{{feedback_form.subordinate_id.id_for_label}}">{% trans "Subordinates" %}</label>
{{feedback_form.subordinate_id}}
{{feedback_form.subordinate_id.errors}}
</div>
@@ -73,7 +73,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Colleague" %}</label>
<label class="oh-input__label" for="{{feedback_form.colleague_id.id_for_label}}">{% trans "Colleague" %}</label>
{{feedback_form.colleague_id}}
{{feedback_form.colleague_id.errors}}
</div>
@@ -84,7 +84,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Period" %}</label>
<label class="oh-input__label" for="{{feedback_form.period.id_for_label}}">{% trans "Period" %}</label>
{{feedback_form.period}}
{{feedback_form.period.errors}}
</div>
@@ -93,7 +93,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Start Date" %}</label>
<label class="oh-input__label" for="{{feedback_form.start_date.id_for_label}}">{% trans "Start Date" %}</label>
{{feedback_form.start_date}}
{{feedback_form.start_date.errors}}
</div>
@@ -102,7 +102,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "End Date" %}</label>
<label class="oh-input__label" for="{{feedback_form.end_date.id_for_label}}">{% trans "End Date" %}</label>
{{feedback_form.end_date}}
{{feedback_form.end_date.errors}}
</div>
@@ -113,7 +113,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Question Template" %}</label>
<label class="oh-input__label" for="{{feedback_form.question_template_id.id_for_label}}">{% trans "Question Template" %}</label>
{{feedback_form.question_template_id}}
{{feedback_form.question_template_id.errors}}
<ul id="error-list" class="errorlist" style="display: none">
@@ -123,7 +123,7 @@
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Key Result" %}</label>
<label class="oh-input__label" for="id_employee_key_results_id">{% trans "Key Result" %}</label>
<select name="employee_key_results_id" id="id_employee_key_results_id" class="oh-select oh-select--lg oh-select-no-search w-100 oh-select-2--large" multiple="multiple" style="display: none;">
<option value="">------------------</option>
</select>

View File

@@ -48,48 +48,48 @@
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label">{% trans "Feedback Title" %}</label>
<label class="oh-label" for="{{feedback_filter_form.review_cycle.id_for_label}}">{% trans "Feedback Title" %}</label>
{{feedback_filter_form.review_cycle}}
</div>
<div class="oh-input-group">
<label class="oh-label">{% trans "Status" %} </label>
<label class="oh-label" for="{{feedback_filter_form.status.id_for_label}}">{% trans "Status" %} </label>
{{feedback_filter_form.status}}
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label">{% trans "Employee" %}</label>
<label class="oh-label" for="{{feedback_filter_form.employee_id.id_for_label}}">{% trans "Employee" %}</label>
{{feedback_filter_form.employee_id}}
</div>
<div class="oh-input-group">
<label class="oh-label">{% trans "Manager" %} </label>
<label class="oh-label" for="{{feedback_filter_form.manager_id.id_for_label}}">{% trans "Manager" %} </label>
{{feedback_filter_form.manager_id}}
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label">{% trans "Colleague" %} </label>
<label class="oh-label" for="{{feedback_filter_form.colleague_id.id_for_label}}">{% trans "Colleague" %} </label>
{{feedback_filter_form.colleague_id}}
</div>
<div class="oh-input-group">
<label class="oh-label">{% trans "Start Date" %}</label>
<label class="oh-label" for="{{feedback_filter_form.start_date.id_for_label}}">{% trans "Start Date" %}</label>
{{feedback_filter_form.start_date}}
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label">{% trans "Subordinate" %}</label>
<label class="oh-label" for="{{feedback_filter_form.subordinate_id.id_for_label}}">{% trans "Subordinate" %}</label>
{{feedback_filter_form.subordinate_id}}
</div>
<div class="oh-input-group">
<label class="oh-label">{% trans "End Date" %}</label>
<label class="oh-label" for="{{feedback_filter_form.end_date.id_for_label}}">{% trans "End Date" %}</label>
{{feedback_filter_form.end_date}}
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label">{% trans "Archive" %}</label>
<label class="oh-label" for="{{feedback_filter_form.archive.id_for_label}}">{% trans "Archive" %}</label>
{{feedback_filter_form.archive}}
</div>

View File

@@ -15,7 +15,7 @@
<form hx-post="{%url 'feedback-update' id=feedback_form.instance.id %}" hx-target="#feedbackModalTarget">
{% csrf_token %}
<div class="oh-input__group ">
<label class="oh-input__label" for="objective">{% trans "Review Cycle" %}</label>
<label class="oh-input__label" for="{{feedback_form.review_cycle.id_for_label}}">{% trans "Review Cycle" %}</label>
{{feedback_form.review_cycle}}
{{feedback_form.review_cycle.errors}}
</div>
@@ -23,7 +23,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Employee" %}</label>
<label class="oh-input__label" for="{{feedback_form.employee_id.id_for_label}}">{% trans "Employee" %}</label>
{{feedback_form.employee_id }}
{{feedback_form.employee_id.errors }}
</div>
@@ -32,7 +32,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Manager" %}</label>
<label class="oh-input__label" for="{{feedback_form.manager_id.id_for_label}}">{% trans "Manager" %}</label>
{{feedback_form.manager_id}}
{{feedback_form.manager_id.errros}}
</div>
@@ -43,7 +43,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Subordinates" %}</label>
<label class="oh-input__label" for="{{feedback_form.subordinate_id.id_for_label}}">{% trans "Subordinates" %}</label>
{{feedback_form.subordinate_id}}
{{feedback_form.subordinate_id.errors}}
</div>
@@ -52,7 +52,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Colleague" %}</label>
<label class="oh-input__label" for="{{feedback_form.colleague_id.id_for_label}}">{% trans "Colleague" %}</label>
{{feedback_form.colleague_id}}
{{feedback_form.colleague_id.errors}}
</div>
@@ -63,7 +63,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Start Date" %}</label>
<label class="oh-input__label" for="{{feedback_form.start_date.id_for_label}}">{% trans "Start Date" %}</label>
{{feedback_form.start_date}}
{{feedback_form.start_date.errors}}
</div>
@@ -72,7 +72,7 @@
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "End Date" %}</label>
<label class="oh-input__label" for="{{feedback_form.end_date.id_for_label}}">{% trans "End Date" %}</label>
{{feedback_form.end_date}}
{{feedback_form.end_date.errors}}
</div>
@@ -82,14 +82,14 @@
<div class="row">
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Question Template" %}</label>
<label class="oh-input__label" for="{{feedback_form.question_template_id.id_for_label}}">{% trans "Question Template" %}</label>
{{feedback_form.question_template_id}}
{{feedback_form.question_template_id.errors}}
</div>
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Key Result" %}</label>
<label class="oh-input__label" for="{{id_employee_key_results_id}}">{% trans "Key Result" %}</label>
<select name="employee_key_results_id" id="id_employee_key_results_id"
class="oh-select oh-select--lg oh-select-no-search w-100 oh-select-2--large"
multiple="multiple" style="display: none;">

View File

@@ -20,7 +20,7 @@
<div class="">
<div class="oh-input__group">
<label class="oh-input__label mt-0" for="keyTitle">{% trans "Title" %}</label>
<label class="oh-input__label mt-0" for="{{form.period_name.id_for_label}}">{% trans "Title" %}</label>
{{ form.period_name }}
{{ form.period_name.errors }}
@@ -28,7 +28,7 @@
<div class="row">
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="keyType">{% trans "Start Date" %}</label>
<label class="oh-input__label" for="{{form.start_date.id_for_label}}">{% trans "Start Date" %}</label>
{{form.start_date}}
<div id="error-container"></div>
@@ -38,7 +38,7 @@
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="keyType">{% trans "End Date" %}</label>
<label class="oh-input__label" for="{{form.end_date.id_for_label}}">{% trans "End Date" %}</label>
{{form.end_date}}
</div>

View File

@@ -50,12 +50,12 @@
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="oh-input__group ">
<label class="oh-input__label" for="objective">{% trans "Title" %}</label>
<label class="oh-input__label" for="{{key_result_form.key_result.id_for_label}}">{% trans "Title" %}</label>
{{key_result_form.key_result}}
{{key_result_form.key_result.errors}}
</div>
<div class="oh-input__group">
<label class="oh-input__label" for="lastname">{% trans "Description" %}</label>
<label class="oh-input__label" for="{{key_result_form.key_result_description.id_for_label}}">{% trans "Description" %}</label>
{{key_result_form.key_result_description}}
{{key_result_form.key_result_description.errors}}
</div>
@@ -64,7 +64,7 @@
<div class="row">
<div class="col-12 col-sm-12 col-md-4 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="keyType">{% trans "Key Results" %}
<label class="oh-input__label" for="{{key_result_form.progress_type.id_for_label}}">{% trans "Key Results" %}
{% trans "type" %}</label>
{{key_result_form.progress_type}}
{{key_result_form.progress_type.errors}}
@@ -72,7 +72,7 @@
</div>
<div class="col-12 col-sm-12 col-md-4 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Current Value" %}
<label class="oh-input__label" for="{{key_result_form.current_value.id_for_label}}">{% trans "Current Value" %}
</label>
{{key_result_form.current_value}}
{{key_result_form.current_value.errors}}
@@ -80,7 +80,7 @@
</div>
<div class="col-12 col-sm-12 col-md-4 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Target Value" %}
<label class="oh-input__label" for="{{key_result_form.target_value.id_for_label}}">{% trans "Target Value" %}
</label>
{{key_result_form.target_value}}
{{key_result_form.target_value.errors}}
@@ -90,21 +90,21 @@
<div class="row">
<div class="col-12 col-sm-12 col-md-4 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="keyType">{% trans "Period" %}</label>
<label class="oh-input__label" for="{{key_result_form.period.id_for_label}}">{% trans "Period" %}</label>
{{key_result_form.period}}
{{key_result_form.period.errors}}
</div>
</div>
<div class="col-12 col-sm-12 col-md-4 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Start Date" %} </label>
<label class="oh-input__label" for="{{key_result_form.start_date.id_for_label}}">{% trans "Start Date" %} </label>
{{key_result_form.start_date}}
{{key_result_form.start_date.errors}}
</div>
</div>
<div class="col-12 col-sm-12 col-md-4 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "End Date" %} </label>
<label class="oh-input__label" for="{{key_result_form.end_date.id_for_label}}">{% trans "End Date" %} </label>
{{key_result_form.end_date}}
{{key_result_form.end_date.errors}}
</div>
@@ -115,7 +115,7 @@
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
<div class="oh-input__group me-2">
<label class="oh-input__label" for="startDate">{% trans "Employee" %} </label>
<label class="oh-input__label" for="{{key_result_form.employee_id.id_for_label}}">{% trans "Employee" %} </label>
{% render_field key_result_form.employee_id|attr:"required:true" %}
{{ key_result_form.employee_id.errors}}
</div>

View File

@@ -29,7 +29,7 @@
<div class="oh-modal__dialog-body">
<div class="oh-input__group">
<label class="oh-input__label mt-0" for="keyTitle">{% trans "Title" %}</label>
<label class="oh-input__label mt-0"for="{{key_result_form.key_result.id_for_label}}">{% trans "Title" %}</label>
{{ key_result_form.key_result }}
{{ key_result_form.key_result.errors }}
@@ -37,15 +37,15 @@
</div>
<div class="oh-input__group">
<label class="oh-input__label" for="keyDesc">{% trans "Description" %}</label>
<label class="oh-input__label" for="{{key_result_form.key_result_description.id_for_label}}">{% trans "Description" %}</label>
{{ key_result_form.key_result_description }}
{{ key_result_form.key_result_description.errors }}
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-4 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="keyDesc">{% trans "Key Results" %}
type</label>
<label class="oh-input__label"for="{{key_result_form.progress_type.id_for_label}}">{% trans "Key Results Type" %}
</label>
{{key_result_form.progress_type}}
{{key_result_form.progress_type.errors}}
</div>
@@ -53,13 +53,13 @@
<div class="col-12 col-sm-12 col-md-8 col-lg-8">
<div class="d-flex align-items-center">
<div class="oh-input__group me-2">
<label class="oh-input__label" for="keyDesc">{% trans "Current Value" %}
<label class="oh-input__label" for="{{key_result_form.current_value.id_for_label}}">{% trans "Current Value" %}
</label>
{{key_result_form.current_value}}
{{key_result_form.current_value.errors}}
</div>
<div class="oh-input__group">
<label class="oh-input__label" for="keyDesc">{% trans "Target Value" %}
<label class="oh-input__label" for="{{key_result_form.target_value.id_for_label}}">{% trans "Target Value" %}
</label>
{{key_result_form.target_value}}
{{key_result_form.target_value.errors}}
@@ -74,7 +74,7 @@
<div class="col-6 col-sm-6 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Start Date" %}
<label class="oh-input__label" for="{{key_result_form.start_date.id_for_label}}">{% trans "Start Date" %}
</label>
{{key_result_form.start_date}}
{{key_result_form.start_date.errors}}
@@ -83,7 +83,7 @@
</div>
<div class="col-6 col-sm-6 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "End Date" %} </label>
<label class="oh-input__label" for="{{key_result_form.end_date.id_for_label}}">{% trans "End Date" %} </label>
{{key_result_form.end_date}}
{{key_result_form.end_date.errors}}
@@ -91,7 +91,7 @@
</div>
</div>
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Employee" %}</label>
<label class="oh-input__label" for="{{key_result_form.employee_id.id_for_label}}">{% trans "Employee" %}</label>
{{ key_result_form.employee_id }}
{{ key_result_form.employee_id.errors }}

View File

@@ -25,7 +25,7 @@
<div class="oh-modal__dialog-body">
<div class="oh-input__group">
<label class="oh-input__label mt-0" for="keyTitle">{% trans "Title" %}</label>
<label class="oh-input__label mt-0" for="{{key_result_form.key_result.id_for_label}}">{% trans "Title" %}</label>
{{ key_result_form.key_result }}
@@ -34,13 +34,13 @@
</div>
<div class="oh-input__group">
<label class="oh-input__label" for="keyDesc">{% trans "Description" %}</label>
<label class="oh-input__label" for="{{key_result_form.key_result_description.id_for_label}}">{% trans "Description" %}</label>
{{ key_result_form.key_result_description }}
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-4 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="keyDesc">{% trans "Key Results" %}
<label class="oh-input__label" for="{{key_result_form.progress_type.id_for_label}}">{% trans "Key Results" %}
type</label>
{{key_result_form.progress_type}}
{{key_result_form.progress_type.errors}}
@@ -49,13 +49,13 @@
<div class="col-12 col-sm-12 col-md-8 col-lg-8">
<div class="d-flex align-items-center">
<div class="oh-input__group me-2">
<label class="oh-input__label" for="keyDesc">{% trans "Current Value" %}
<label class="oh-input__label" for="{{key_result_form.current_value.id_for_label}}">{% trans "Current Value" %}
</label>
{{key_result_form.current_value}}
{{key_result_form.current_value.errors}}
</div>
<div class="oh-input__group">
<label class="oh-input__label" for="keyDesc">{% trans "Target Value" %}
<label class="oh-input__label" for="{{key_result_form.target_value.id_for_label}}">{% trans "Target Value" %}
</label>
{{key_result_form.target_value}}
{{key_result_form.target_value.errors}}
@@ -69,7 +69,7 @@
<div class="col-6 col-sm-6 col-md- col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Start Date" %}
<label class="oh-input__label" for="{{key_result_form.start_date.id_for_label}}">{% trans "Start Date" %}
</label>
{{key_result_form.start_date}}
{{key_result_form.start_date.errors}}
@@ -78,7 +78,7 @@
</div>
<div class="col-6 col-sm-6 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "End Date" %} </label>
<label class="oh-input__label" for="{{key_result_form.end_date.id_for_label}}">{% trans "End Date" %} </label>
{{key_result_form.end_date}}
{{key_result_form.end_date.errors}}
@@ -89,7 +89,7 @@
</div>
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "Employee" %}</label>
<label class="oh-input__label" for="{{key_result_form.employee_id.id_for_label}}">{% trans "Employee" %}</label>
{{key_result_form.employee_id}}
{{key_result_form.employee_id.errors}}

View File

@@ -30,12 +30,12 @@
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="oh-input__group ">
<label class="oh-input__label" >{% trans "Title" %}</label>
<label class="oh-input__label" for="{{objective_form.objective.id_for_label}}">{% trans "Title" %}</label>
{{objective_form.objective}}
{{objective_form.objective.errors}}
</div>
<div class="oh-input__group">
<label class="oh-input__label">{% trans "Objective Description" %}</label>
<label class="oh-input__label" for="{{objective_form.objective_description.id_for_label}}">{% trans "Objective Description" %}</label>
{{objective_form.objective_description}}
{{objective_form.objective_description.errors}}
</div>
@@ -44,14 +44,14 @@
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" >{% trans "Period" %}</label>
<label class="oh-input__label" for="{{objective_form.period.id_for_label}}">{% trans "Period" %}</label>
{{objective_form.period}}
{{objective_form.period.errors}}
</div>
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="startDate">{% trans "Start Date" %}</label>
<label class="oh-input__label" for="{{objective_form.start_date.id_for_label}}">{% trans "Start Date" %}</label>
{{objective_form.start_date}}
{{objective_form.start_date.errors}}
@@ -59,7 +59,7 @@
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
<div class="oh-input__group">
<label class="oh-input__label" for="endDate">{% trans "End Date" %}</label>
<label class="oh-input__label" for="{{objective_form.end_date.id_for_label}}">{% trans "End Date" %}</label>
{{objective_form.end_date}}
{{objective_form.end_date.errors}}
</div>
@@ -68,24 +68,24 @@
<div class="row">
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
<div class="oh-input__group " id="job_positionSelect">
<label class="oh-input__label" >{% trans "Objective Type" %}</label>
<label class="oh-input__label" for="{{objective_form.objective_type.id_for_label}}">{% trans "Objective Type" %}</label>
{{objective_form.objective_type}}
{{objective_form.objective_type.errors}}
</div>
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-6" >
<div class="oh-input__group oh-input-objective-type-choices" id="job_position" style="display: none;">
<label class="oh-input__label" >{% trans "Job Position" %}</label>
<label class="oh-input__label" for="{{objective_form.job_position.id_for_label}}">{% trans "Job Position" %}</label>
{{objective_form.job_position}}
{{objective_form.job_position.errors}}
</div>
<div class="oh-input__group objective_type oh-input-objective-type-choices" id="department" style="display: none;">
<label class="oh-input__label" >{% trans "Department" %}</label>
<label class="oh-input__label" for="{{objective_form.department.id_for_label}}">{% trans "Department" %}</label>
{{objective_form.department}}
{{objective_form.department.errors}}
</div>
<div class="oh-input__group objective_type oh-input-objective-type-choices" id="individual" style="display: none;">
<label class="oh-input__label" >{% trans "Employee" %}</label>
<label class="oh-input__label" for="{{objective_form.employee_id.id_for_label}}">{% trans "Employee" %}</label>
{{objective_form.employee_id}}
{{objective_form.employee_id.errors}}
</div>

View File

@@ -77,9 +77,9 @@
</div>
<div class="row mt-4">
<div class="col-6 col-sm-6 col-md-6 col-lg-6">
<label class="oh-label my-2 my-2 me-2" for="status">{% trans "Status" %}</label>
<label class="oh-label my-2 my-2 me-2" for="objectiveStatus">{% trans "Status" %}</label>
<select
id="status" class="oh-select oh-select--sm" name="objective_status"
id="objectiveStatus" class="oh-select oh-select--sm" name="objective_status"
hx-post="{%url 'objective-detailed-view-objective-status' id=employee_objective.id %}"
hx-trigger="change" hx-target="#objective_detailed_view_activity">
<option value="{{employee_objective.status}}" selected>
@@ -168,10 +168,11 @@
<div class="row mb-3">
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
<div class="oh-container oh-container--outline">
<label class="oh-input__label oh-text--secondary fw-bold oh-text--xs mb-0 mt-1">
<label class="oh-input__label oh-text--secondary fw-bold oh-text--xs mb-0 mt-1" for="startValue">
{% trans "Start Value" %}
</label>
<input
id="startValue"
class="oh-input oh-input--small oh-input--block px-0" min="0"
value="{{employee_key_result.start_value}} {{employee_key_result.progress_type}}"
readonly />
@@ -179,7 +180,7 @@
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
<div class="oh-container oh-container--outline ">
<label class="oh-input__label oh-text--secondary fw-bold oh-text--xs mb-0 mt-1">
<label class="oh-input__label oh-text--secondary fw-bold oh-text--xs mb-0 mt-1" for="{{employee_key_result.id}}">
{% trans "Current Value" %}
</label>
<input
@@ -197,10 +198,11 @@
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
<div class="oh-container oh-container--outline">
<label class="oh-input__label oh-text--secondary fw-bold oh-text--xs mb-0 mt-1">
<label class="oh-input__label oh-text--secondary fw-bold oh-text--xs mb-0 mt-1" for="targetValue">
{% trans "Target Value" %}
</label>
<input
id="targetValue"
name ="target_value"
class="oh-input oh-input--small oh-input--block px-0" min="0"
value=" {{employee_key_result.target_value}} {{employee_key_result.progress_type}}"
@@ -211,9 +213,9 @@
</div>
<div class="oh-list-card__footer d-flex align-items-center justify-content-between flex-wrap">
<div class="oh-input-group">
<label class="oh-label my-2 my-2 me-2" for="status">{% trans "Status" %}</label>
<label class="oh-label my-2 my-2 me-2" for="keyResultStatus">{% trans "Status" %}</label>
<select
id="status" name="key_result_status"
id="keyResultStatus" name="key_result_status"
hx-post="{%url 'objective-detailed-view-key-result-status' obj_id=employee_objective.id kr_id=employee_key_result.id %}"
hx-trigger="change" class="oh-select oh-select--sm"
hx-target="#objective_detailed_view_activity">

View File

@@ -71,35 +71,35 @@
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label"
<label class="oh-label" for="{{objective_filer_form.objective.id_for_label}}"
>{% trans "Objective" %}</label
>
{{objective_filer_form.objective}}
</div>
<div class="oh-input-group">
<label class="oh-label">{% trans "Status" %}</label>
<label class="oh-label" for="{{objective_filer_form.status.id_for_label}}">{% trans "Status" %}</label>
{{objective_filer_form.status}}
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label">{% trans "Employee" %}</label>
<label class="oh-label" for="{{objective_filer_form.employee_id.id_for_label}}">{% trans "Employee" %}</label>
{{objective_filer_form.employee_id}}
</div>
<div class="oh-input-group">
<label class="oh-label">{% trans "Created" %} </label>
<label class="oh-label" for="{{objective_filer_form.created_at.id_for_label}}">{% trans "Created" %} </label>
{{objective_filer_form.created_at}}
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label"
<label class="oh-label" for="{{objective_filer_form.start_date.id_for_label}}"
>{% trans "Start Date" %}</label
>
{{objective_filer_form.start_date}}
</div>
<div class="oh-input-group">
<label class="oh-label"
<label class="oh-label" for="{{objective_filer_form.updated_at.id_for_label}}"
>{% trans "Updated At" %}</label
>
{{objective_filer_form.updated_at}}
@@ -107,16 +107,16 @@
</div>
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label">{% trans "End Date" %}</label>
<label class="oh-label" for="{{objective_filer_form.end_date.id_for_label}}">{% trans "End Date" %}</label>
{{objective_filer_form.end_date}}
</div>
<div class="oh-input-group">
<label class="oh-label">{% trans "Archive" %}</label>
<label class="oh-label" for="{{objective_filer_form.archive.id_for_label}}">{% trans "Archive" %}</label>
{{ objective_filer_form.archive }}
</div>
</div>
<div class="oh-input-group">
<label class="oh-label">{% trans "Key Result" %}</label>
<label class="oh-label" for="{{objective_filer_form.emp_obj_id.id_for_label}}">{% trans "Key Result" %}</label>
{{ objective_filer_form.emp_obj_id }}
</div>
</div>
@@ -196,11 +196,11 @@
style="display: none"
>
<div class="oh-accordion">
<label>{% trans "Group By" %}</label>
<label for="id_field">{% trans "Group By" %}</label>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-6">
<div class="oh-input-group">
<label class="oh-label">{% trans "Field" %}</label>
<label class="oh-label" for="id_field">{% trans "Field" %}</label>
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-6">

View File

@@ -24,13 +24,13 @@
<div class="oh-modal__dialog-body">
{% csrf_token %}
<div class="oh-input__group">
<label class="oh-input__label" for="objective"
<label class="oh-input__label" for="{{objective_form.objective.id_for_label}}"
>{% trans "Objective" %}</label
>
{{objective_form.objective}} {{objective_form.objective.errors}}
</div>
<div class="oh-input__group">
<label class="oh-input__label" for="lastname"
<label class="oh-input__label" for="{{objective_form.objective_description.id_for_label}}"
>{% trans "Objective Description" %}</label
>
{{objective_form.objective_description}}
@@ -39,7 +39,7 @@
<div class="row">
<div class="col-6 col-sm-6 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="start date"
<label class="oh-input__label" for="{{objective_form.start_date.id_for_label}}"
>{% trans "Start Date" %}</label
>
{{objective_form.start_date}} {{objective_form.start_date.errors}}
@@ -47,7 +47,7 @@
</div>
<div class="col-6 col-sm-6 col-md-6 col-lg-6">
<div class="oh-input__group">
<label class="oh-input__label" for="end date"
<label class="oh-input__label" for="{{objective_form.end_date.id_for_label}}"
>{% trans "End Date" %}</label
>
{{objective_form.end_date}} {{objective_form.end_date.errors}}
@@ -55,7 +55,7 @@
</div>
</div>
<div class="oh-input__group">
<label class="oh-input__label" for="endDate"
<label class="oh-input__label" for="{{objective_form.employee_id.id_for_label}}"
>{% trans "Employee" %}</label
>
{{ objective_form.employee_id }} {{ objective_form.employee_id.errors }}