sonata_admin.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. sonata_notification:
  2. class:
  3. message: Chamilo\NotificationBundle\Entity\Message
  4. sonata_admin:
  5. # default value, change it to sonata.admin.security.handler.acl to use ACL
  6. security:
  7. handler: sonata.admin.security.handler.role
  8. title: Chamilo #%sonata_admin.title%
  9. title_logo: bundles/chamilocore/css/themes/chamilo/images/header-logo.png #%sonata_admin.logo_title%
  10. options:
  11. html5_validate: false # does not use html5 validation
  12. pager_links: 5 # pager max links to display
  13. templates:
  14. # default global templates
  15. # the layout template include javascript/stylesheet to the formatter bundle,
  16. # if you don't need it use the default one: SonataAdminBundle::standard_layout.html.
  17. # layout: ChamiloAdminBundle::layout.html.twig
  18. # layout: ApplicationSonataAdminBundle::standard_layout.html.twig
  19. #layout: ApplicationSonataAdminBundle::demo_layout.html.twig
  20. layout: SonataAdminBundle::standard_layout.html.twig
  21. ajax: SonataAdminBundle::ajax_layout.html.twig
  22. # default value if done set, actions templates, should extends a global templates
  23. list: SonataAdminBundle:CRUD:list.html.twig
  24. show: SonataAdminBundle:CRUD:show.html.twig
  25. edit: SonataAdminBundle:CRUD:edit.html.twig
  26. user_block: ChamiloCoreBundle:Admin:admin_topnav.html.twig
  27. extensions:
  28. # cmf_core.admin_extension.translatable:
  29. # implements:
  30. # - Symfony\Cmf\Bundle\CoreBundle\Translatable\TranslatableInterface
  31. #
  32. # cmf_core.admin_extension.publish_workflow.publishable:
  33. # implements:
  34. # - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface
  35. # cmf_core.admin_extension.publish_workflow.time_period:
  36. # implements:
  37. # - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
  38. dashboard:
  39. blocks:
  40. - { position: left, type: sonata.admin.block.admin_list }
  41. # - { position: right, type: sonata.timeline.block.timeline, settings: { context: SONATA_ADMIN, max_per_page: 25, template: 'ChamiloTimelineBundle:Block:timeline.html.twig'}}
  42. - { position: right, type: sonata.admin_doctrine_orm.block.audit}
  43. # - { 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"} }
  44. #- { position: center, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 7, mode: admin }}
  45. # - { 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>"} }
  46. # - { position: center, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 7, mode: admin }}
  47. #- { position: right, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: admin }}
  48. #- { position: right, type: sonata.customer.block.recent_customers, settings: { title: Recent Customers, number: 5, mode: admin }}
  49. #- { position: right, type: sonata.block.service.rss, settings: { title: Sonata Project's Feeds, url: http://sonata-project.org/blog/archive.rss }}
  50. groups:
  51. sonata.admin.group.content:
  52. label: Content
  53. label_catalogue: SonataDemoBundle
  54. #icon: '<i class="fa fa-th"></i>'
  55. items:
  56. # - sonata.page.admin.page
  57. # - sonata.news.admin.comment
  58. # - sonata.news.admin.post
  59. - sonata.media.admin.media
  60. - sonata.media.admin.gallery
  61. # - sonata.comment.admin.thread
  62. sonata.admin.group.site_builder:
  63. label: Site Builder
  64. label_catalogue: SonataDemoBundle
  65. #icon: '<i class="fa fa-puzzle-piece"></i>'
  66. items:
  67. - sonata.page.admin.page
  68. - sonata.page.admin.site
  69. - sonata.admin.contact_category
  70. sonata.admin.group.faq:
  71. label: FAQ
  72. label_catalogue: Faq
  73. #icon: '<i class="fa fa-puzzle-piece"></i>'
  74. items:
  75. - sonata.admin.faq_category
  76. - sonata.admin.faq_question
  77. sonata.admin.group.classification:
  78. label: sonata_classification
  79. label_catalogue: SonataClassificationBundle
  80. #icon: '<i class="fa fa-sitemap"></i>'
  81. items:
  82. - sonata.classification.admin.category
  83. - sonata.classification.admin.tag
  84. - sonata.classification.admin.collection
  85. sonata.admin.group.administration:
  86. label: sonata_administration
  87. label_catalogue: SonataAdminBundle
  88. #icon: '<i class="fa fa-cogs"></i>'
  89. items:
  90. - sonata.notification.admin.message
  91. - sonata.admin.settings_current
  92. - sonata.admin.tool
  93. sonata.admin.group.user:
  94. label: Users
  95. #icon: '<i class="fa fa-play-circle"></i>'
  96. label_catalogue: SonataAdminBundle
  97. items:
  98. - sonata.user.admin.user
  99. - sonata.user.admin.group
  100. # - sonata.admin.user_group
  101. # - sonata.admin.user_field
  102. # - sonata.admin.user_field_values
  103. sonata.admin.group.course:
  104. label: Courses
  105. #icon: '<i class="fa fa-play-circle"></i>'
  106. label_catalogue: SonataAdminBundle
  107. items:
  108. - sonata.admin.course
  109. - sonata.admin.course_category
  110. - sonata.admin.course_request
  111. - sonata.admin.c_group_info
  112. # - sonata.admin.notebook
  113. sonata.admin.group.session:
  114. label: Sessions
  115. #icon: '<i class="fa fa-play-circle"></i>'
  116. label_catalogue: SonataAdminBundle
  117. items:
  118. - sonata.admin.session
  119. - sonata.admin.session_category
  120. - sonata.admin.career
  121. - sonata.admin.promotion
  122. sonata.admin.group.url:
  123. label: URLs
  124. #icon: '<i class="fa fa-play-circle"></i>'
  125. label_catalogue: SonataAdminBundle
  126. items:
  127. - sonata.admin.access_url
  128. assets:
  129. stylesheets:
  130. # The sandbox includes default pre-optimized version of some css and js
  131. # So you can either use them, and add your custom assets here
  132. # ~ or ~
  133. # tweak the assetic.yml and the following lines
  134. - assetic/sonata_admin_css.css
  135. - assetic/sonata_formatter_css.css
  136. - assetic/sonata_jqueryui_css.css
  137. - bundles/sonataadmin/vendor/admin-lte/dist/css/skins/skin-black.min.css
  138. # Default admin assets
  139. # - bundles/sonatacore/vendor/bootstrap/dist/css/bootstrap.min.css
  140. # - bundles/sonatacore/vendor/components-font-awesome/css/font-awesome.min.css
  141. # - bundles/sonatacore/vendor/ionicons/css/ionicons.min.css
  142. # - bundles/sonataadmin/vendor/admin-lte/dist/css/AdminLTE.min.css
  143. # - bundles/sonataadmin/vendor/iCheck/skins/flat/blue.css
  144. # - bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css
  145. # - bundles/sonataadmin/vendor/jqueryui/themes/base/jquery-ui.css
  146. # - bundles/sonatacore/vendor/select2/select2.css
  147. # - bundles/sonatacore/vendor/select2-bootstrap-css/select2-bootstrap.min.css
  148. # - bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/css/bootstrap-editable.css
  149. # - bundles/sonataadmin/css/styles.css
  150. # - bundles/sonataadmin/css/layout.css
  151. # - bundles/sonataadmin/css/tree.css
  152. # Formatter assets
  153. # - bundles/sonataformatter/markitup/skins/sonata/style.css
  154. # - bundles/sonataformatter/markitup/sets/markdown/style.css
  155. # - bundles/sonataformatter/markitup/sets/html/style.css
  156. # - bundles/sonataformatter/markitup/sets/textile/style.css
  157. # Page assets
  158. # - bundles/sonatapage/sonata-page.back.min.css
  159. javascripts:
  160. - assetic/sonata_admin_js.js
  161. # - bundles/sonataadmin/Admin.js
  162. # - bundles/sonataadmin/treeview.js
  163. - assetic/sonata_jqueryui_js.js
  164. - assetic/sonata_formatter_js.js
  165. - bundles/sonataformatter/vendor/ckeditor/ckeditor.js
  166. # Default admin assets
  167. # - bundles/sonatacore/vendor/jquery/dist/jquery.min.js
  168. # - bundles/sonataadmin/vendor/jquery.scrollTo/jquery.scrollTo.min.js
  169. # - bundles/sonatacore/vendor/moment/min/moment.min.js
  170. # - bundles/sonatacore/vendor/bootstrap/dist/js/bootstrap.min.js
  171. # - bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js
  172. # - bundles/sonataadmin/vendor/jqueryui/ui/minified/jquery-ui.min.js
  173. # - bundles/sonataadmin/vendor/jqueryui/ui/minified/i18n/jquery-ui-i18n.min.js
  174. # - bundles/sonataadmin/jquery/jquery.form.js
  175. # - bundles/sonataadmin/jquery/jquery.confirmExit.js
  176. # - bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/js/bootstrap-editable.min.js
  177. # - bundles/sonatacore/vendor/select2/select2.min.js
  178. # - bundles/sonataadmin/vendor/admin-lte/dist/js/app.min.js
  179. # - bundles/sonataadmin/vendor/iCheck/icheck.min.js
  180. # - bundles/sonataadmin/vendor/slimScroll/jquery.slimscroll.min.js
  181. # - bundles/sonataadmin/Admin.js
  182. # - bundles/sonataadmin/treeview.js
  183. # Formatter assets
  184. # - bundles/sonataformatter/vendor/markitup-markitup/markitup/jquery.markitup.js
  185. # - bundles/sonataformatter/markitup/sets/markdown/set.js
  186. # - bundles/sonataformatter/markitup/sets/html/set.js
  187. # - bundles/sonataformatter/markitup/sets/textile/set.js
  188. # Page assets
  189. # - bundles/sonatapage/sonata-page.back.js