really correct the htmx targets
This commit is contained in:
parent
b118e07d5c
commit
48e78be967
|
@ -80,17 +80,19 @@ class DeviceUpdateForm(forms.ModelForm):
|
|||
self.helper.layout = Layout(
|
||||
'name',
|
||||
'customer',
|
||||
Div('location',
|
||||
Div(
|
||||
Div('location', id="htmx-location-target"),
|
||||
HTML("""
|
||||
<a hx-get="{% url 'htmx_create_location' %}" hx-swap="innerHTML" hx-target="#htmx-modal-position" href="" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a>
|
||||
"""),
|
||||
css_class="input-group", id="htmx-location-target"),
|
||||
css_class="input-group"),
|
||||
'user',
|
||||
Div(Field('category'),
|
||||
Div(
|
||||
Div('category', id="htmx-category-target"),
|
||||
HTML("""
|
||||
<a hx-get="{% url 'device_category_create' %}" hx-swap="innerHTML" hx-target="#htmx-modal-position" href="" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a>
|
||||
"""),
|
||||
css_class="input-group", id="htmx-category-target"),
|
||||
css_class="input-group"),
|
||||
'serialnumber',
|
||||
'description',
|
||||
FormActions(
|
||||
|
|
Loading…
Reference in New Issue