forked from Uninett/nav
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Uninett#3139 from Uninett/uncrispyfy/navbar-link-f…
…ormset Uncrispyfy NavbarlinkForm and NavbarLinkFormSet
- Loading branch information
Showing
4 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
@import "../navsettings"; | ||
|
||
#navigation-preferences { | ||
#navigation-preferences { | ||
.asteriskField { | ||
display:none; | ||
} | ||
|
||
.link-delete label{ | ||
color:$alert-color; | ||
} | ||
} | ||
|
||
.row { | ||
display: flex; | ||
} | ||
|
||
.row .link-delete { | ||
align-self: center; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% load forms %} | ||
<div class="row"> | ||
{% for field in form %} | ||
{% if field in form.attrs.form_fields %} | ||
<div class="columns medium-5"> | ||
{% show_field field %} | ||
</div> | ||
{% elif field.name == 'DELETE' and navbar_formset.can_delete %} | ||
<div class="columns link-delete medium-2"> | ||
{% include 'custom_crispy_templates/horizontal_checkbox.html' %} | ||
</div> | ||
{% elif form.render_unmentioned_fields %} | ||
{{ field }} | ||
{% endif %} | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters