mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-22 07:26:46 +02:00
add plus button to DeviceUpdateForm
This commit is contained in:
parent
29906d9a9a
commit
9064a08b4f
|
@ -80,7 +80,11 @@ class DeviceUpdateForm(forms.ModelForm):
|
|||
self.helper.layout = Layout(
|
||||
'name',
|
||||
'customer',
|
||||
'location',
|
||||
Div(Field('location'),
|
||||
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"),
|
||||
'user',
|
||||
Div(Field('category'),
|
||||
HTML("""
|
||||
|
|
Loading…
Reference in New Issue
Block a user