mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
Choice widget expanded use the .inline_choice class & choice_with_other_widget display the label and the input on the same line
This commit is contained in:
parent
4674369ce9
commit
0f632be80b
@ -4967,28 +4967,32 @@ input, label, select {
|
||||
font-size: $form-font-size; */ }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000313}}
|
||||
label.inline {
|
||||
display: inline;
|
||||
line-height: 2em;
|
||||
margin-right: 1em;
|
||||
font-weight: normal; }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000320}}
|
||||
label {
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0.375em; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000326}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000319}}
|
||||
label.required:after {
|
||||
content: "*";
|
||||
color: #df4949;
|
||||
font-weight: 900; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000332}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000325}}
|
||||
label abbr {
|
||||
display: none; }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000337}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000330}}
|
||||
.inline-choice {
|
||||
white-space: nowrap; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000332}}
|
||||
.inline-choice label {
|
||||
white-space: normal;
|
||||
display: inline;
|
||||
line-height: 2em;
|
||||
margin-right: 1em;
|
||||
font-weight: normal; }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000341}}
|
||||
textarea,
|
||||
input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"], input:not([type]), textarea,
|
||||
select[multiple=multiple] {
|
||||
@ -5004,12 +5008,12 @@ select[multiple=multiple] {
|
||||
margin-bottom: 0.375em;
|
||||
padding: 0.5em 0.5em;
|
||||
width: 100%; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000355}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000359}}
|
||||
textarea:hover,
|
||||
input[type="color"]:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="email"]:hover, input[type="month"]:hover, input[type="number"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="text"]:hover, input[type="time"]:hover, input[type="url"]:hover, input[type="week"]:hover, input:not([type]):hover, textarea:hover,
|
||||
select[multiple=multiple]:hover {
|
||||
border-color: #000; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000359}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000363}}
|
||||
textarea:focus,
|
||||
input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="email"]:focus, input[type="month"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus, input:not([type]):focus, textarea:focus,
|
||||
select[multiple=multiple]:focus {
|
||||
@ -5017,58 +5021,58 @@ select[multiple=multiple] {
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 5px rgba(42, 63, 76, 0.7);
|
||||
outline: none; }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000366}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000370}}
|
||||
textarea {
|
||||
resize: vertical; }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000374}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000378}}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
display: inline;
|
||||
margin-right: 0.375em; }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000380}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000384}}
|
||||
input[type="file"] {
|
||||
padding-bottom: 0.75em;
|
||||
width: 100%; }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000385}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000389}}
|
||||
select {
|
||||
margin-bottom: 0.375em;
|
||||
padding-top: 0.3em;
|
||||
padding-bottom: 0.3em;
|
||||
width: 100%; }
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000394}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\0000398}}
|
||||
form p.tip {
|
||||
font-size: .875em;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
margin-top: -.3em; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003101}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003105}}
|
||||
form p.label {
|
||||
padding: 0;
|
||||
white-space: normal; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003109}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003113}}
|
||||
form fieldset {
|
||||
border: none;
|
||||
margin-bottom: 1.5em;
|
||||
padding: 0;
|
||||
margin: 0; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003115}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003119}}
|
||||
form fieldset legend {
|
||||
font-size: 1.438em;
|
||||
font-weight: 700;
|
||||
width: 100%;
|
||||
border-bottom: 3px solid #ddd;
|
||||
margin-bottom: 1em; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003122}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003126}}
|
||||
form fieldset legend + * {
|
||||
-webkit-margin-top-collapse: separate; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003126}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003130}}
|
||||
form fieldset legend h2 {
|
||||
margin-bottom: 0; }
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003133}}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/modules\/_forms\.scss}line{font-family:\00003137}}
|
||||
form li label {
|
||||
display: inline-block;
|
||||
font-weight: normal; }
|
||||
|
File diff suppressed because one or more lines are too long
@ -52,25 +52,42 @@
|
||||
{% spaceless %}
|
||||
<div {{ block('widget_container_attributes') }}>
|
||||
{% for child in form %}
|
||||
{{ form_widget(child) }}
|
||||
{{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }}
|
||||
<span class="inline-choice">
|
||||
{{ form_widget(child) }}
|
||||
{{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }}
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endspaceless %}
|
||||
{% endblock choice_widget_expanded %}
|
||||
|
||||
|
||||
{% block choice_with_other_widget %}
|
||||
{% spaceless %}
|
||||
{% for child in form._choices %}
|
||||
<div class="blop">
|
||||
{{ form_widget(child) }}
|
||||
{{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }}
|
||||
</div>
|
||||
{%- if child.vars.value != '_other' -%}
|
||||
<div class="inline-choice">
|
||||
{{ form_widget(child) }}
|
||||
{{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }}
|
||||
</div>
|
||||
{%- else -%}
|
||||
<div class="container">
|
||||
<div class="grid-6 grid-tablet-12 gid-mobile-12 no-gutter">
|
||||
<span class="inline-choice">
|
||||
{{ form_widget(child) }}
|
||||
{{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="grid-6 grid-tablet-12 gid-mobile-12 no-gutter">
|
||||
{{ form_widget(form._other, {'attr': {'class': 'input-text-other-value'} }) }}
|
||||
</div>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{% endfor %}
|
||||
{{ form_widget(form._other, {'attr': {'class': 'input-text-other-value'} }) }}
|
||||
{% endspaceless %}
|
||||
{% endblock choice_with_other_widget %}
|
||||
|
||||
|
||||
{% block date_widget %}
|
||||
{% spaceless %}
|
||||
{% if widget == 'single_text' %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user