wrap long lines
This commit is contained in:
parent
6461f33ee0
commit
8ad299aef1
|
@ -83,14 +83,22 @@ class DeviceUpdateForm(forms.ModelForm):
|
||||||
Div(
|
Div(
|
||||||
Div('location', id="htmx-location-target"),
|
Div('location', id="htmx-location-target"),
|
||||||
HTML("""
|
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>
|
<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"),
|
css_class="input-group"),
|
||||||
'user',
|
'user',
|
||||||
Div(
|
Div(
|
||||||
Div('category', id="htmx-category-target"),
|
Div('category', id="htmx-category-target"),
|
||||||
HTML("""
|
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>
|
<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"),
|
css_class="input-group"),
|
||||||
'serialnumber',
|
'serialnumber',
|
||||||
|
@ -98,7 +106,8 @@ class DeviceUpdateForm(forms.ModelForm):
|
||||||
FormActions(
|
FormActions(
|
||||||
Submit('save_device', 'Save'),
|
Submit('save_device', 'Save'),
|
||||||
HTML(
|
HTML(
|
||||||
"""<a href="{{ request.META.HTTP_REFERER }}" class="btn btn-secondary">Cancel</a>""")
|
"""<a href="{{ request.META.HTTP_REFERER }}"
|
||||||
|
class="btn btn-secondary">Cancel</a>""")
|
||||||
),
|
),
|
||||||
Div(css_id='htmx-modal-position', css_class="col")
|
Div(css_id='htmx-modal-position', css_class="col")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue