Add add button on admin post list
This commit is contained in:
parent
c2a468c66d
commit
441443e426
4 changed files with 16 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
@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 {
|
||||
width: 80vw;
|
||||
|
|
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -1074,6 +1074,12 @@
|
|||
"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": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@stimulus/core/-/core-2.0.0.tgz",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"@fortawesome/fontawesome-free": "^5.15.2",
|
||||
"@symfony/stimulus-bridge": "^1.1.0",
|
||||
"@symfony/webpack-encore": "^0.32.0",
|
||||
"bootstrap": "^4.5.3",
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
{% block title %}Administration - Posts{% endblock %}
|
||||
|
||||
{% 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">
|
||||
{% for post in posts %}
|
||||
<div class="card text-center">
|
||||
|
|
Reference in a new issue