Added Pre-Commit Hooks (#175)

* Added pre commit hook

* Run pre commit hook on all files

---------

Co-authored-by: Horilla <131998600+horilla-opensource@users.noreply.github.com>
This commit is contained in:
Ashwanth Balakrishnan
2024-05-07 12:23:36 +05:30
committed by GitHub
parent 117e8e88c2
commit 58be33a8d7
1117 changed files with 11976 additions and 11690 deletions

View File

@@ -5,7 +5,9 @@ Horilla forms
"""
from typing import Any, Dict
from django import forms
from horilla_widgets.widgets.horilla_multi_select_field import HorillaMultiSelectField

View File

@@ -42,7 +42,7 @@
class="oh-dropdown__menu oh-dropdown__menu--left oh-dropdown__filter p-4"
x-show="open"
@click.outside="open = false"
>
>
<div id="wodgetFilterContainer">
{% comment %} {% include filter_template_path %} {% endcomment %}
</div>

View File

@@ -5,4 +5,4 @@
data-target="#addEmployeeModal"
>Page 1 of 1</span
>
</div>
</div>

View File

@@ -46,13 +46,13 @@
$(this).toggleClass("tag-badge--outline");
updateSelectedCount()
});
$("#selectSelected").click(function (e) {
$("#selectSelected").click(function (e) {
e.preventDefault();
$(".tag-badge").removeClass("tag-badge--outline");
updateSelectedCount()
});
$("#unselectSelected").click(function (e) {
$("#unselectSelected").click(function (e) {
e.preventDefault();
$(".tag-badge").addClass("tag-badge--outline");
updateSelectedCount()

View File

@@ -200,16 +200,16 @@
});
});
});
$("#choose-all-user").click(function (e) {
$("#choose-all-user").click(function (e) {
setTimeout(() => {
$("#choose-all-user").closest(".oh-sticky-table__th--custom")[0].click()
$("#choose-all-user").closest(".oh-sticky-table__th--custom")[0].click()
}, 2);
});
$(".all-choose-user-row").click(function (e) {
$(".all-choose-user-row").click(function (e) {
e.preventDefault();
setTimeout(() => {
$(this).closest(".oh-sticky-table__tr--custom")[0].click()
$(this).closest(".oh-sticky-table__tr--custom")[0].click()
}, 1);
});
</script>

View File

@@ -3,8 +3,8 @@ horilla_widget/urls.py
"""
from django.urls import path
from horilla_widgets import views
from horilla_widgets import views
urlpatterns = [
path("get-filter-form", views.get_filter_form, name="get-filter-form"),

View File

@@ -5,6 +5,7 @@ This module is used to write horilla form select widgets
"""
import datetime
from django import forms
from base import thread_local_middleware