Skip to content

Commit 4aadb5a

Browse files
committed
Tweaked the admin form views
1 parent d579b49 commit 4aadb5a

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

app/Resources/views/admin/blog/new.html.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
{{ form_row(form.title) }}
1010
{{ form_row(form.summary) }}
1111
{{ form_row(form.content) }}
12-
{{ form_row(form.authorEmail) }}
1312
{{ form_row(form.publishedAt) }}
1413

1514
<input type="submit" value="{{ 'label.create_post'|trans }}" class="btn btn-primary" />
16-
1715
{{ form_widget(form.saveAndCreateNew, { label: 'label.save_and_create_new', attr: { class: 'btn btn-primary' } }) }}
18-
1916
<a href="{{ path('admin_post_index') }}" class="btn btn-link">
2017
{{ 'action.back_to_list'|trans }}
2118
</a>

src/AppBundle/Form/PostType.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5252
'attr' => ['rows' => 20],
5353
'label' => 'label.content',
5454
])
55-
->add('authorEmail', null, [
56-
'label' => 'label.author_email',
57-
])
5855
->add('publishedAt', DateTimePickerType::class, [
5956
'label' => 'label.published_at',
6057
])

web/css/main.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,13 @@ footer #footer-resources i {
142142
padding: 1em
143143
}
144144

145-
.form-group.has-error .help-block ul {
145+
.form-group.has-error .help-block ul,
146+
.form-group.has-error .help-block li {
146147
margin-bottom: 0
147148
}
149+
.form-group.has-error .help-block li + li {
150+
margin-top: 0.5em;
151+
}
148152

149153
textarea {
150154
max-width: 100%

0 commit comments

Comments
 (0)