1
0
Fork 0

Add add button on admin post list

This commit is contained in:
Ethanell 2021-01-16 19:02:19 +01:00
parent c2a468c66d
commit 441443e426
4 changed files with 16 additions and 0 deletions

View file

@ -1,4 +1,8 @@
@import '~mdb-ui-kit/src/scss/mdb.free'; @import '~mdb-ui-kit/src/scss/mdb.free';
@import '~@fortawesome/fontawesome-free/scss/fontawesome.scss';
@import '~@fortawesome/fontawesome-free/scss/solid.scss';
@import '~@fortawesome/fontawesome-free/scss/regular.scss';
@import '~@fortawesome/fontawesome-free/scss/brands.scss';
#body { #body {
width: 80vw; width: 80vw;

6
package-lock.json generated
View file

@ -1074,6 +1074,12 @@
"to-fast-properties": "^2.0.0" "to-fast-properties": "^2.0.0"
} }
}, },
"@fortawesome/fontawesome-free": {
"version": "5.15.2",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.2.tgz",
"integrity": "sha512-7l/AX41m609L/EXI9EKH3Vs3v0iA8tKlIOGtw+kgcoanI7p+e4I4GYLqW3UXWiTnjSFymKSmTTPKYrivzbxxqA==",
"dev": true
},
"@stimulus/core": { "@stimulus/core": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/@stimulus/core/-/core-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@stimulus/core/-/core-2.0.0.tgz",

View file

@ -1,5 +1,6 @@
{ {
"devDependencies": { "devDependencies": {
"@fortawesome/fontawesome-free": "^5.15.2",
"@symfony/stimulus-bridge": "^1.1.0", "@symfony/stimulus-bridge": "^1.1.0",
"@symfony/webpack-encore": "^0.32.0", "@symfony/webpack-encore": "^0.32.0",
"bootstrap": "^4.5.3", "bootstrap": "^4.5.3",

View file

@ -3,6 +3,11 @@
{% block title %}Administration - Posts{% endblock %} {% block title %}Administration - Posts{% endblock %}
{% block body %} {% block body %}
<div style="position:fixed; bottom: 45px; right: 24px; z-index: 100">
<a href="{{ path('post-add') }}" class="btn btn-primary btn-floating" >
<i class="fas fa-plus"></i>
</a>
</div>
<div class="container-fluid"> <div class="container-fluid">
{% for post in posts %} {% for post in posts %}
<div class="card text-center"> <div class="card text-center">