sonata_admin.yml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. sonata_admin:
  2. # default value, change it to sonata.admin.security.handler.acl to use ACL
  3. security:
  4. handler: sonata.admin.security.handler.role
  5. title: %sonata_admin.title%
  6. title_logo: %sonata_admin.logo_title%
  7. options:
  8. html5_validate: false # does not use html5 validation
  9. pager_links: 5 # pager max links to display
  10. templates:
  11. # default global templates
  12. # the layout template include javascript/stylesheet to the formatter bundle,
  13. # if you don't need it use the default one: SonataAdminBundle::standard_layout.html.
  14. layout: ApplicationSonataAdminBundle::layout.html.twig
  15. #layout: ApplicationSonataAdminBundle::standard_layout.html.twig
  16. #layout: ApplicationSonataAdminBundle::demo_layout.html.twig
  17. #layout: SonataAdminBundle::standard_layout.html.twig
  18. ajax: SonataAdminBundle::ajax_layout.html.twig
  19. # default value if done set, actions templates, should extends a global templates
  20. list: SonataAdminBundle:CRUD:list.html.twig
  21. show: SonataAdminBundle:CRUD:show.html.twig
  22. edit: SonataAdminBundle:CRUD:edit.html.twig
  23. dashboard:
  24. blocks:
  25. - { position: left, type: sonata.admin.block.admin_list }
  26. # - { position: right, type: sonata.admin_doctrine_orm.block.audit}
  27. - { position: center, type: sonata.block.service.text, settings: { content: "<h2>Welcome!</h2> You can customize this dashboard by editing the sonata_admin.yml file. The current dashboard presents the recent items from the NewsBundle and a timeline with the latest action"} }
  28. - { position: center, type: sonata.timeline.block.timeline, settings: { context: SONATA_ADMIN, max_per_page: 25 }}
  29. #- { position: center, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 7, mode: admin }}
  30. - { position: left, type: sonata.block.service.text, settings: { content: "<div class='panel panel-default'><div class='panel-heading'><h3 class='panel-title'>Welcome!</h3></div><div class='panel-body'>You can customize this dashboard by editing the <code>sonata_admin.yml</code> file. The current dashboard presents the recent items from the NewsBundle and a non-statistical e-commerce information.</div></div>"} }
  31. - { position: center, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 7, mode: admin }}
  32. #- { position: right, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: admin }}
  33. #- { position: right, type: sonata.customer.block.recent_customers, settings: { title: Recent Customers, number: 5, mode: admin }}
  34. #- { position: right, type: sonata.block.service.rss, settings: { title: Sonata Project's Feeds, url: http://sonata-project.org/blog/archive.rss }}
  35. groups:
  36. sonata.admin.group.content:
  37. label: Content
  38. label_catalogue: SonataDemoBundle
  39. icon: '<i class="fa fa-th"></i>'
  40. items:
  41. #- sonata.page.admin.page
  42. - sonata.news.admin.comment
  43. - sonata.news.admin.post
  44. - sonata.media.admin.media
  45. - sonata.media.admin.gallery
  46. - sonata.comment.admin.thread
  47. #sonata.admin.group.ecommerce:
  48. # label: sonata_ecommerce
  49. # label_catalogue: SonataAdminBundle
  50. # items:
  51. # - sonata.customer.admin.customer
  52. # - sonata.invoice.admin.invoice
  53. # - sonata.order.admin.order
  54. # - sonata.product.admin.product
  55. sonata.admin.group.classification:
  56. label: sonata_classification
  57. label_catalogue: SonataClassificationBundle
  58. icon: '<i class="fa fa-sitemap"></i>'
  59. items:
  60. - sonata.classification.admin.category
  61. - sonata.classification.admin.tag
  62. - sonata.classification.admin.collection
  63. sonata.admin.group.site_builder:
  64. label: Site Builder
  65. label_catalogue: SonataDemoBundle
  66. icon: '<i class="fa fa-puzzle-piece"></i>'
  67. items:
  68. - sonata.page.admin.page
  69. - sonata.page.admin.site
  70. sonata.admin.group.administration:
  71. label: sonata_administration
  72. label_catalogue: SonataAdminBundle
  73. icon: '<i class="fa fa-cogs"></i>'
  74. items:
  75. - sonata.page.admin.site
  76. - sonata.page.admin.page
  77. - sonata.notification.admin.message
  78. - sonata.admin.settings_current
  79. - sonata.admin.tool
  80. sonata.admin.group.user:
  81. label: Users
  82. icon: '<i class="fa fa-play-circle"></i>'
  83. label_catalogue: SonataAdminBundle
  84. items:
  85. - sonata.user.admin.user
  86. - sonata.user.admin.group
  87. - sonata.admin.user_group
  88. - sonata.admin.user_field
  89. - sonata.admin.user_field_values
  90. sonata.admin.group.course:
  91. label: Courses
  92. icon: '<i class="fa fa-play-circle"></i>'
  93. label_catalogue: SonataAdminBundle
  94. items:
  95. - sonata.admin.course
  96. - sonata.admin.course_category
  97. - sonata.admin.course_request
  98. - sonata.admin.notebook
  99. sonata.admin.group.session:
  100. label: Sessions
  101. icon: '<i class="fa fa-play-circle"></i>'
  102. label_catalogue: SonataAdminBundle
  103. items:
  104. - sonata.admin.session
  105. - sonata.admin.session_category
  106. - sonata.admin.career
  107. - sonata.admin.promotion
  108. sonata.admin.group.url:
  109. label: URLs
  110. icon: '<i class="fa fa-play-circle"></i>'
  111. label_catalogue: SonataAdminBundle
  112. items:
  113. - sonata.admin.access_url
  114. assets:
  115. stylesheets:
  116. # The sandbox includes default pre-optimized version of some css and js
  117. # So you can either use them, and add your custom assets here
  118. # ~ or ~
  119. # tweak the assetic.yml and the following lines
  120. - assetic/sonata_admin_css.css
  121. - assetic/sonata_formatter_css.css
  122. - assetic/sonata_jqueryui_css.css
  123. #- bundles/sonatademo/css/demo.css
  124. - bundles/sonataformatter/markitup/skins/sonata/style.css
  125. - bundles/sonataformatter/markitup/sets/markdown/style.css
  126. - bundles/sonataformatter/markitup/sets/html/style.css
  127. - bundles/sonataformatter/markitup/sets/textile/style.css
  128. # - bundles/sonataadmin/vendor/bootstrap/dist/css/bootstrap.min.css
  129. # - bundles/sonataadmin/vendor/AdminLTE/css/font-awesome.min.css
  130. # - bundles/sonataadmin/vendor/AdminLTE/css/ionicons.min.css
  131. # - bundles/sonataadmin/vendor/AdminLTE/css/AdminLTE.css
  132. # - bundles/sonataadmin/vendor/jqueryui/themes/flick/jquery-ui.min.css
  133. # - bundles/sonataadmin/vendor/select2/select2.css
  134. # - bundles/sonataadmin/vendor/select2/select2-bootstrap.css
  135. # - bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/css/bootstrap-editable.css
  136. # - bundles/sonataadmin/css/styles.css
  137. # - bundles/sonataadmin/css/layout.css
  138. javascripts:
  139. - assetic/sonata_admin_js.js
  140. - assetic/sonata_jqueryui_js.js
  141. - assetic/sonata_formatter_js.js
  142. - bundles/sonataformatter/vendor/ckeditor/ckeditor.js