improvements

This commit is contained in:
Kevin Papst
2016-10-23 21:27:11 +02:00
parent c492d30be3
commit 8940b766b6
27 changed files with 728 additions and 138 deletions

View File

@@ -58,7 +58,9 @@ twig:
- "bootstrap_3_layout.html.twig"
- "form/fields.html.twig"
globals:
admin_skin: skin-blue
kimai_context:
date_1: "d.m.Y" # used for display in timesheets
box_color: "green"
# Assetic Configuration (used for managing web assets: CSS, JavaScript, Sass, etc.)
assetic:
@@ -89,5 +91,13 @@ swiftmailer:
password: "%mailer_password%"
spool: { type: memory }
#avanzu_admin_theme:
# use_assetic: false
avanzu_admin_theme:
use_twig : true
theme:
default_avatar : avatars/default.png
skin : skin-blue
fixed_layout : false
boxed_layout : false
collapsed_sidebar: true
mini_sidebar : true
control_sidebar : false

View File

@@ -7,9 +7,9 @@ framework:
strict_requirements: true
profiler: { only_exceptions: false }
web_profiler:
toolbar: '%kernel.debug%'
intercept_redirects: false
#web_profiler:
# toolbar: '%kernel.debug%'
# intercept_redirects: false
monolog:
handlers:
@@ -40,3 +40,6 @@ services:
class: Twig_Extensions_Extension_Text
tags:
- name: twig.extension
avanzu_admin_theme:
enable_demo: false

View File

@@ -34,6 +34,6 @@ homepage:
permanent: true
avanzu_admin_profile:
path: /profile/{userid}/
avanzu_admin_logout:
path: /logout
path: /{_locale}/profile/{ident}/
options:
avanzu_admin_route: profile

View File

@@ -1,17 +1,18 @@
# this imports the routes used to display the web debug toolbar at the bottom of each page
_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix: /_wdt
#_wdt:
# resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
# prefix: /_wdt
# this imports the routes needed to display the Symfony Profiler information
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler
#_profiler:
# resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
# prefix: /_profiler
# this imports the route used to test error pages. Just browse the following URL:
# /{_locale}/_error/{status_code}.{format}
# (e.g. /en/_error/404, /en/_error/403.json, /fr/_error/500.xml)
# See http://symfony.com/doc/current/cookbook/controller/error_pages.html#testing-error-pages-during-development
_errors:
resource: "@TwigBundle/Resources/config/routing/errors.xml"
prefix: /{_locale}/_error
@@ -20,6 +21,76 @@ _errors:
defaults:
_locale: '%locale%'
# ======================================================================
# Template routes, that we need once we use those features
# ======================================================================
#avanzu_admin_login:
# path: /{_locale}/login
# options:
# avanzu_admin_route: login
#
#avanzu_admin_logout:
# path: /logout
# options:
# avanzu_admin_route: logout
#
#avanzu_admin_all_tasks:
# path: /tasks/
# options:
# avanzu_admin_route: all_tasks
#
#avanzu_admin_show_task:
# path: /tasks/{ident}/
# options:
# avanzu_admin_route: task
#
#avanzu_admin_all_notifications:
# path: /notifications/
# options:
# avanzu_admin_route: all_notifications
#
#avanzu_admin_show_notification:
# path: /notifications/{ident}/
# options:
# avanzu_admin_route: notification
#
#avanzu_admin_all_messages:
# path: /messages/
# options:
# avanzu_admin_route: all_messages
#
#avanzu_admin_show_message:
# path: /messages/{ident}/
# options:
# avanzu_admin_route: message
# ======================================================================
# Template demo screen
# Activate full demo mode by setting "enable_demo" in config_dev.xml
# ======================================================================
avanzu_admin_home:
path: /{_locale}/demo-admin/
defaults: {_controller: AvanzuAdminThemeBundle:Default:index}
options:
avanzu_admin_route: welcome
avanzu_admin_form_demo:
path: /{_locale}/demo-admin/form-demo/
defaults: {_controller: AvanzuAdminThemeBundle:Default:form}
avanzu_admin_login_demo:
path: /{_locale}/demo-admin/login/
defaults: {_controller: AvanzuAdminThemeBundle:Default:login}
avanzu_admin_dash_demo:
path: /{_locale}/demo-admin/dashboard/
defaults: {_controller: AvanzuAdminThemeBundle:Default:dashboard}
# ======================================================================
# this loads the main routing file, which usually defines the routes available
# in any environment (production, development, etc.)
_main:

View File

@@ -37,7 +37,7 @@ security:
# The route name the user can go to in order to logout
path: security_logout
# The name of the route to redirect to after logging out
target: timesheet
target: homepage
role_hierarchy:
ROLE_USER: ROLE_CUSTOMER

View File

@@ -61,3 +61,31 @@ services:
#
# // same code using repository services
# $posts = $this->get('app.post_repository')->findAll();
avanzu_admin_theme.navbar_user_listener:
class: AppBundle\EventListener\NavbarShowUserListener
arguments: ["@security.token_storage"]
tags:
- { name: kernel.event_listener, event: theme.navbar_user, method: onShowUser }
- { name: kernel.event_listener, event: theme.sidebar_user, method: onShowUser }
# avanzu_admin_theme.navbar_task_listener:
# class: "%avanzu_admin_theme.navbar_task_listener.class%"
# tags:
# - { name: kernel.event_listener, event: theme.tasks, method: onListTasks }
#
# avanzu_admin_theme.navbar_notify_listener:
# class: "%avanzu_admin_theme.navbar_notify_listener.class%"
# tags:
# - { name: kernel.event_listener, event: theme.notifications, method: onListNotifications }
#
# avanzu_admin_theme.navbar_msg_listener:
# class: "%avanzu_admin_theme.navbar_msg_listener.class%"
# tags:
# - { name: kernel.event_listener, event: theme.messages, method: onListMessages }
#
# avanzu_admin_theme.setup_menu_listener:
# class: "%avanzu_admin_theme.setup_menu_listener.class%"
# tags:
# - { name: kernel.event_listener, event: theme.sidebar_setup_menu, method: onSetupMenu }
# - { name: kernel.event_listener, event: theme.breadcrumb, method: onSetupMenu }