[UPDT] PAYROLL: Payroll contract status updation method from list view
This commit is contained in:
@@ -92,10 +92,10 @@
|
||||
<div data-cell-index="4" class="oh-sticky-table__td">
|
||||
{{ contract.get_wage_type_display}}
|
||||
</div>
|
||||
<div data-cell-index="5" class="oh-sticky-table__td">{{ contract.wage}}</div>
|
||||
<div data-cell-index="5" class="oh-sticky-table__td"><input class="oh-table__editable-input" value="{{ contract.wage}}" readonly/></div>
|
||||
<div data-cell-index="6" class="oh-sticky-table__td">{{ contract.filing_status}}</div>
|
||||
<div data-cell-index="7" class="oh-sticky-table__td" onclick="event.stopPropagation();">
|
||||
<select name="status" hx-trigger="change" hx-post="{% url 'update-contract-status' contract.id %}" hx-target="#payroll-contract-container" hx-vals='{"view":"table"}' class="w-100">
|
||||
<select name="status" hx-trigger="change" hx-post="{% url 'update-contract-status' contract.id %}" hx-target="#payroll-contract-container" hx-vals='{"view":"table"}' class="oh-table__editable-input w-100" >
|
||||
{% for option in contract.CONTRACT_STATUS_CHOICES %}
|
||||
<option value="{{option.0}}"{% if option.0 == contract.contract_status %}selected{% endif %}>{{option.1}}</option>
|
||||
{% endfor %}
|
||||
|
||||
@@ -76,16 +76,6 @@
|
||||
name="search"
|
||||
placeholder="{% trans 'Search' %}"
|
||||
onkeyup="$('.filterButton')[0].click()"
|
||||
{%
|
||||
comment
|
||||
%}
|
||||
hx-get="{% url 'contract-filter' %}"
|
||||
hx-trigger="keyup changed delay:500ms, search"
|
||||
hx-target="#payroll-contract-container"
|
||||
hx-swap="innerHTML"
|
||||
{%
|
||||
endcomment
|
||||
%}
|
||||
/>
|
||||
</div>
|
||||
<div class="oh-dropdown" x-data="{open: false}">
|
||||
|
||||
Reference in New Issue
Block a user