diff --git a/CHANGELOG.md b/CHANGELOG.md index da3b1c469..545f163e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,3 +97,5 @@ Branch CRUD-Init ================ - create an api for rendering entities +- css: render the placeholder in expanded choice item as italic (the "no specified" choice") +- css: add an extra space around choices expanded widget diff --git a/Resources/public/sass/modules/_forms.scss b/Resources/public/sass/modules/_forms.scss index 970d33a48..b01c802b6 100644 --- a/Resources/public/sass/modules/_forms.scss +++ b/Resources/public/sass/modules/_forms.scss @@ -25,10 +25,17 @@ label { abbr { display: none; } + + // mark the label for empty placeholder + &[for$="_placeholder"] { + font-style: italic; + } } .inline-choice { white-space:nowrap; + display: inline-block; + label { white-space:normal; display: inline; @@ -38,6 +45,11 @@ label { } } +div.choice-widget-expanded { + margin-top: 0.5em; + margin-bottom: 0.5em; +} + textarea, //input, #{$all-text-inputs}, diff --git a/Resources/views/Form/fields.html.twig b/Resources/views/Form/fields.html.twig index 841dd72e2..97e2896dc 100644 --- a/Resources/views/Form/fields.html.twig +++ b/Resources/views/Form/fields.html.twig @@ -52,7 +52,7 @@ {% block choice_widget_expanded %} {% spaceless %} -
+
{% for child in form %} {{ form_widget(child) }}