-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Mark Janssen <[email protected]> Co-authored-by: HeleenSG <[email protected]> Co-authored-by: Jeroen Dekkers <[email protected]> Co-authored-by: Patrick <[email protected]>
- Loading branch information
1 parent
977cfd5
commit af08d69
Showing
29 changed files
with
296 additions
and
121 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
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
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
5 changes: 5 additions & 0 deletions
5
rocky/assets/src/bundles/app/css/themes/soft/manon/form-fieldset.scss
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,5 @@ | ||
/* Form fieldset - Variables */ | ||
|
||
:root { | ||
--form-horizontal-view-fieldset-label-margin-top: 0; | ||
} |
5 changes: 5 additions & 0 deletions
5
rocky/assets/src/bundles/app/css/themes/soft/manon/form-radio.scss
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,5 @@ | ||
/* Form fieldset - Variables */ | ||
|
||
:root { | ||
--form-radio-margin: 0.25rem var(--form-radio-margin-right) 0.25rem 0; | ||
} |
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
16 changes: 16 additions & 0 deletions
16
rocky/assets/src/bundles/app/css/vendors/manon-overrides/form-fieldset-required.scss
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 @@ | ||
/* Form fieldset required */ | ||
|
||
form.horizontal-view div.required { | ||
|
||
label { | ||
margin-top: calc(var(--form-horizontal-view-fieldset-nota-bene-required-margin-bottom) + var(--form-input-min-height) /2); | ||
} | ||
|
||
.help-button { | ||
margin-top: calc(var(--form-horizontal-view-fieldset-nota-bene-required-margin-bottom) + var(--form-input-min-height) /2); | ||
} | ||
|
||
select + div + .help-button { | ||
margin-top: 2rem; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
rocky/assets/src/bundles/app/css/vendors/manon-overrides/form-radio.scss
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,5 @@ | ||
/* Form radio */ | ||
|
||
form input[type="radio"] { | ||
margin: var(--form-radio-margin); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,45 @@ | ||
{% load i18n %} | ||
|
||
<fieldset> | ||
<legend> | ||
{{ field.label_tag }} | ||
</legend> | ||
{% if form_view != "vertical" %} | ||
<div {% if field.field.required %} class="required"{% endif %}> | ||
{% if field.field.required %} | ||
<span class="nota-bene">{% translate "This field is required" %}</span> | ||
{% endif %} | ||
{% if not field.field.widget.attrs.fixed_paws %} | ||
{{ field }} | ||
{% elif field.field.widget.attrs.fixed_paws < 0 %} | ||
{% translate "Unset" %} | ||
{% else %} | ||
{% include "partials/scan_level_indicator.html" with value=field.field.widget.attrs.fixed_paws custom_class=field.field.widget.attrs.class %} | ||
<div {% if field.field.required %} class="required"{% endif %}> | ||
{{ field.label_tag }} | ||
|
||
{% endif %} | ||
{% include "partials/form/field_input_help_text.html" with help_text=field.help_text %} | ||
{% include "partials/form/field_input_errors.html" %} | ||
|
||
{% if form_name == 'login' and field.name == "username" %} | ||
<div class="input-link"> | ||
<a href="{% url 'recover_email' %}">{% translate "Forgot email" %}</a> | ||
</div> | ||
{% endif %} | ||
{% if form_name == 'login' and field.name == "password" %} | ||
<div class="input-link"> | ||
<a href="{% url 'password_reset' %}">{% translate "Forgot password" %}</a> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</fieldset> | ||
{% else %} | ||
{{ field.label_tag }} | ||
<div {% if field.field.required %} class="required"{% endif %}> | ||
{% if form_view != "vertical" %} | ||
<div> | ||
{% if field.field.required %} | ||
<span class="nota-bene">{% translate "This field is required" %}</span> | ||
{% endif %} | ||
{{ field }} | ||
{% if not field.field.widget.attrs.fixed_paws %} | ||
{{ field }} | ||
{% elif field.field.widget.attrs.fixed_paws < 0 %} | ||
{% translate "Not set" %} | ||
{% else %} | ||
{% include "partials/scan_level_indicator.html" with value=field.field.widget.attrs.fixed_paws custom_class=field.field.widget.attrs.class %} | ||
{% endif %} | ||
|
||
{% include "partials/form/field_input_help_text.html" with help_text=field.help_text %} | ||
{% include "partials/form/field_input_errors.html" %} | ||
|
||
{% if form_name == "login" and field.name == "username" %} | ||
<div class="input-link"> | ||
<a href="{% url "recover_email" %}">{% translate "Forgot email" %}</a> | ||
</div> | ||
{% endif %} | ||
{% if form_name == "login" and field.name == "password" %} | ||
<div class="input-link"> | ||
<a href="{% url "password_reset" %}">{% translate "Forgot password" %}</a> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
{% else %} | ||
<div> | ||
{% if field.field.required %} | ||
<span class="nota-bene">{% translate "This field is required" %}</span> | ||
{% endif %} | ||
|
||
{{ field }} | ||
|
||
{% include "partials/form/field_input_help_text.html" with help_text=field.help_text %} | ||
{% include "partials/form/field_input_errors.html" %} | ||
</div> | ||
{% endif %} | ||
</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
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,8 +1,6 @@ | ||
{# include template for input type, with fallback field_input.html #} | ||
{% if field.field.widget.input_type in "checkbox,radio,hidden" %} | ||
{% include "partials/form/field_input_"|add:field.field.widget.input_type|add:".html" %} | ||
|
||
{% else %} | ||
{% include "partials/form/field_input.html" %} | ||
|
||
{% endif %} |
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
Oops, something went wrong.