diff --git a/public/assets/default_theme/css/widgets/buttons.css b/public/assets/default_theme/css/widgets/buttons.css index a14bcfc818..95a9d949bb 100644 --- a/public/assets/default_theme/css/widgets/buttons.css +++ b/public/assets/default_theme/css/widgets/buttons.css @@ -2,13 +2,6 @@ input { all: unset; } -input+label { - -webkit-align-self: center; - -ms-flex-item-align: center; - -ms-grid-row-align: center; - align-self: center; -} - input[type=checkbox],input[type=radio] { all: unset; display: inline-block; diff --git a/src/Controller/Feeds.php b/src/Controller/Feeds.php index b19ceda874..dbbbb5798b 100644 --- a/src/Controller/Feeds.php +++ b/src/Controller/Feeds.php @@ -147,10 +147,10 @@ class Feeds extends Controller $form_definitions = []; foreach ($feeds as $feed) { $md5 = md5($feed->getUrl()); - $form_definitions[] = [$md5 . '-url', TextType::class, ['data' => $feed->getUrl(), 'label' => ' ']]; - $form_definitions[] = [$md5 . '-order', IntegerType::class, ['data' => $feed->getOrdering(), 'label' => ' ']]; - $form_definitions[] = [$md5 . '-title', TextType::class, ['data' => $feed->getTitle(), 'label' => ' ']]; - $form_definitions[] = [$md5 . '-remove', SubmitType::class, ['label' => _m('Remove')]]; + $form_definitions[] = [$md5 . '-url', TextType::class, ['data' => $feed->getUrl(), 'label' => _m('URL'), 'block_prefix' => 'row_url']]; + $form_definitions[] = [$md5 . '-order', IntegerType::class, ['data' => $feed->getOrdering(), 'label' => _m('Order'), 'block_prefix' => 'row_order']]; + $form_definitions[] = [$md5 . '-title', TextType::class, ['data' => $feed->getTitle(), 'label' => _m('Title'), 'block_prefix' => 'row_title']]; + $form_definitions[] = [$md5 . '-remove', SubmitType::class, ['label' => _m('Remove'), 'block_prefix' => 'row_remove']]; } $form_definitions[] = ['url', TextType::class, ['label' => _m('New feed'), 'required' => false]]; @@ -242,8 +242,8 @@ class Feeds extends Controller } return [ - '_template' => 'feeds/edit_feeds.html.twig', - 'form' => $form->createView(), + '_template' => 'feeds/edit_feeds.html.twig', + 'edit_feeds' => $form->createView(), ]; } diff --git a/templates/feeds/edit_feeds.html.twig b/templates/feeds/edit_feeds.html.twig index 2d021b55d6..a51356ac68 100644 --- a/templates/feeds/edit_feeds.html.twig +++ b/templates/feeds/edit_feeds.html.twig @@ -1,7 +1,40 @@ {% extends 'base.html.twig' %} +{% block stylesheets %} + {{ parent() }} + +{% endblock stylesheets %} + {% block body %} -