Browse Source

backports murph-skeleton

develop
Simon Vieille 2 weeks ago
parent
commit
ced59844c4
  1. 29
      assets/css/admin.scss
  2. 6
      core/Resources/views/account/admin/edit.html.twig
  3. 6
      core/Resources/views/setting/setting_admin/index.html.twig
  4. 8
      core/Resources/views/site/navigation_admin/edit.html.twig
  5. 10
      core/Resources/views/site/navigation_admin/index.html.twig
  6. 8
      core/Resources/views/site/navigation_admin/new.html.twig
  7. 8
      core/Resources/views/site/navigation_admin/show.html.twig
  8. 8
      core/Resources/views/site/page_admin/edit.html.twig
  9. 6
      core/Resources/views/site/page_admin/index.html.twig
  10. 6
      core/Resources/views/site/tree_admin/navigation.html.twig
  11. 8
      core/Resources/views/user/user_admin/edit.html.twig
  12. 8
      core/Resources/views/user/user_admin/index.html.twig
  13. 8
      core/Resources/views/user/user_admin/new.html.twig
  14. 8
      core/Resources/views/user/user_admin/show.html.twig
  15. 8
      templates/blog/category_admin/edit.html.twig
  16. 8
      templates/blog/category_admin/index.html.twig
  17. 8
      templates/blog/category_admin/new.html.twig
  18. 8
      templates/blog/category_admin/show.html.twig
  19. 8
      templates/blog/comment_admin/edit.html.twig
  20. 6
      templates/blog/comment_admin/index.html.twig
  21. 8
      templates/blog/comment_admin/show.html.twig
  22. 8
      templates/blog/post_admin/edit.html.twig
  23. 8
      templates/blog/post_admin/index.html.twig
  24. 8
      templates/blog/post_admin/new.html.twig
  25. 8
      templates/blog/post_admin/show.html.twig

29
assets/css/admin.scss

@ -420,6 +420,35 @@ fieldset.form-group {
margin-bottom: 0;
}
.crud-header {
&-title {
font-size: 2em;
}
&-actions {
text-align: right;
margin-bottom: 10px;
}
@media screen and (min-width: 770px) {
&-title {
float: left;
font-size: 2em;
}
&-actions {
float: right;
}
}
&::after {
display: block;
content: "";
clear: both;
}
}
.CodeMirror-fullscreen, .editor-toolbar.fullscreen {
z-index: 2000;
}

6
core/Resources/views/account/admin/edit.html.twig

@ -5,8 +5,10 @@
{% block title %}{{ 'My account'|trans }} - {{ parent() }}{% endblock %}
{% block body %}
<div class="row">
<h1 class="h2 p-4 mr-auto">{{ 'My account'|trans }}</h1>
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="crud-header">
<h1 class="crud-header-title">{{ 'My account'|trans }}</h1>
</div>
</div>
<div class="row">

6
core/Resources/views/setting/setting_admin/index.html.twig

@ -4,10 +4,8 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 {% if pager.paginationData.pageCount < 2 %}pb-5{% endif %}">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ 'Settings'|trans }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ 'Settings'|trans }}</h1>
</div>
{{ knp_pagination_render(pager) }}

8
core/Resources/views/site/navigation_admin/edit.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.label }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.label }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_site_navigation_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

10
core/Resources/views/site/navigation_admin/index.html.twig

@ -4,14 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 {% if pager.paginationData.pageCount < 2 %}pb-5{% endif %}">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">
{{ 'Navigations'|trans }}
</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ 'Navigations'|trans }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_site_navigation_new') }}" class="btn btn-primary">
<span class="fa fa-plus pr-1"></span>

8
core/Resources/views/site/navigation_admin/new.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">Nouvelle navigation</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">Nouvelle navigation</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_site_navigation_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

8
core/Resources/views/site/navigation_admin/show.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.label }}</h1>
</div>:
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.label }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_site_navigation_index') }}" class="btn btn-secondary">
<span class="fa fa-list pr-1"></span>

8
core/Resources/views/site/page_admin/edit.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.name }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.name }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<button type="submit" form="form-main" class="btn btn-primary">
<span class="fa fa-save pr-1"></span>

6
core/Resources/views/site/page_admin/index.html.twig

@ -4,10 +4,8 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 {% if pager.paginationData.pageCount < 2 %}pb-5{% endif %}">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ 'Pages'|trans }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ 'Pages'|trans }}</h1>
</div>
<div class="row">

6
core/Resources/views/site/tree_admin/navigation.html.twig

@ -4,8 +4,8 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<div class="crud-header">
<div class="crud-header-title">
<button type="button" class="btn btn-outline-dark dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="font-weight-bold">
{{ navigation.label }}
@ -20,7 +20,7 @@
</div>
</div>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<button class="btn btn-primary" data-toggle="modal" data-target="#modal-menu-new">
<span class="fa fa-plus pr-1"></span>

8
core/Resources/views/user/user_admin/edit.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.displayName }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.displayName }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_user_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

8
core/Resources/views/user/user_admin/index.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 {% if pager.paginationData.pageCount < 2 %}pb-5{% endif %}">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ 'Users'|trans }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ 'Users'|trans }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_user_new') }}" class="btn btn-primary">
<span class="fa fa-plus pr-1"></span>

8
core/Resources/views/user/user_admin/new.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ 'New'|trans }}⋅elle utilisateur⋅tice</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ 'New'|trans }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_user_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

8
core/Resources/views/user/user_admin/show.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.displayName }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.displayName }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_user_index') }}" class="btn btn-secondary">
<span class="fa fa-list pr-1"></span>

8
templates/blog/category_admin/edit.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.title }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.title }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_category_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

8
templates/blog/category_admin/index.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 {% if pager.paginationData.pageCount < 2 %}pb-5{% endif %}">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">Catégories</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">Catégories</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_category_new') }}" class="btn btn-primary">
<span class="fa fa-plus pr-1"></span>

8
templates/blog/category_admin/new.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">Nouvelle catégorie</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">Nouvelle catégorie</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_category_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

8
templates/blog/category_admin/show.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.title }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.title }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_category_index') }}" class="btn btn-secondary">
<span class="fa fa-list pr-1"></span>

8
templates/blog/comment_admin/edit.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.author }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.author }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_comment_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

6
templates/blog/comment_admin/index.html.twig

@ -4,10 +4,8 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ 'Commentaires'|trans }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ 'Commentaires'|trans }}</h1>
</div>
<div class="row pb-3">

8
templates/blog/comment_admin/show.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.author }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.author }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_comment_index') }}" class="btn btn-secondary">
<span class="fa fa-list pr-1"></span>

8
templates/blog/post_admin/edit.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.title }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.title }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_post_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

8
templates/blog/post_admin/index.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">Articles</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">Articles</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_post_new') }}" class="btn btn-primary">
<span class="fa fa-plus pr-1"></span>

8
templates/blog/post_admin/new.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">Nouvel article</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">Nouvel article</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_post_index') }}" class="btn btn-light">
<span class="fa fa-list pr-1"></span>

8
templates/blog/post_admin/show.html.twig

@ -4,12 +4,10 @@
{% block body %}
<div class="bg-light pl-5 pr-4 pt-5 pb-5">
<div class="d-flex">
<div class="mr-auto w-50">
<h1 class="display-5">{{ entity.title }}</h1>
</div>
<div class="crud-header">
<h1 class="crud-header-title">{{ entity.title }}</h1>
<div class="ml-auto">
<div class="crud-header-actions">
<div class="btn-group">
<a href="{{ path('admin_blog_post_index') }}" class="btn btn-secondary">
<span class="fa fa-list pr-1"></span>

Loading…
Cancel
Save