Skip to content

Commit

Permalink
Merge pull request #6986 from Simounet/feat/entry-tag-form-button
Browse files Browse the repository at this point in the history
Add tag form submit button always displayed
  • Loading branch information
nicosomb committed Sep 29, 2023
2 parents e4d69ca + 6fab27f commit 9ec351e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions app/Resources/static/themes/material/css/article.scss
Expand Up @@ -235,6 +235,12 @@
z-index: 9999;
}

.tags-add-form {
display: flex;
align-items: center;
gap: 20px;
}

@media only screen and (max-width: 640px) {
.entry-info {
margin-bottom: 20px;
Expand All @@ -258,4 +264,12 @@
#article .entry-info .chip-action {
min-width: 40px;
}

.tags-add-form {
display: block;
}

.tags-add-form-submit {
margin-top: 10px;
}
}
@@ -1,4 +1,4 @@
<form name="tag" method="post" action="{{ path('new_tag', {'entry': entry.id}) }}">
<form class="tags-add-form" name="tag" method="post" action="{{ path('new_tag', {'entry': entry.id}) }}">
{% if form_errors(form) %}
<span class="black-text">{{ form_errors(form) }}</span>
{% endif %}
Expand All @@ -9,6 +9,6 @@

{{ form_widget(form.label, {'attr': {'autocomplete': 'off'}}) }}

{{ form_widget(form.add, {'attr': {'class': 'btn waves-effect waves-light hide-on-large-only'}}) }}
{{ form_widget(form.add, {'attr': {'class': 'btn waves-effect waves-light tags-add-form-submit'}}) }}
{{ form_widget(form._token) }}
</form>

0 comments on commit 9ec351e

Please sign in to comment.