sonata_admin.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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: Chamilo #%sonata_admin.title%
  6. title_logo: build/css/themes/chamilo/images/header-logo.png #%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: '@ChamiloAdmin/layout.html.twig'
  15. ajax: '@SonataAdmin/ajax_layout.html.twig'
  16. # default value if done set, actions templates, should extends a global templates
  17. # list: '@SonataAdmin/CRUD/list.html.twig'
  18. # filter: '@SonataAdmin/Form/filter_admin_fields.html.twig'
  19. # show: '@SonataAdmin/CRUD/show.html.twig'
  20. # edit: '@SonataAdmin/CRUD/edit.html.twig'
  21. # user_block: ChamiloCoreBundle:Admin:admin_topnav.html.twig
  22. extensions:
  23. # cmf_core.admin_extension.translatable:
  24. # implements:
  25. # - Symfony\Cmf\Bundle\CoreBundle\Translatable\TranslatableInterface
  26. #
  27. # cmf_core.admin_extension.publish_workflow.publishable:
  28. # implements:
  29. # - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface
  30. # cmf_core.admin_extension.publish_workflow.time_period:
  31. # implements:
  32. # - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
  33. dashboard:
  34. blocks:
  35. - {position: left, type: sonata.admin.block.admin_list}
  36. # - {position: right, type: sonata.timeline.block.timeline, settings: {context: SONATA_ADMIN, max_per_page: 25, template: 'ChamiloTimelineBundle:Block:timeline.html.twig'}}
  37. # - {position: right, type: sonata.admin_doctrine_orm.block.audit}
  38. # - { 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"} }
  39. #- { position: center, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 7, mode: admin }}
  40. # - { 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>"} }
  41. # - { position: center, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 7, mode: admin }}
  42. #- { position: right, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: admin }}
  43. #- { position: right, type: sonata.customer.block.recent_customers, settings: { title: Recent Customers, number: 5, mode: admin }}
  44. #- { position: right, type: sonata.block.service.rss, settings: { title: Sonata Project's Feeds, url: http://sonata-project.org/blog/archive.rss }}
  45. groups:
  46. sonata.admin.group.content:
  47. label: Content
  48. label_catalogue: SonataDemoBundle
  49. #icon: '<i class="fa fa-th"></i>'
  50. items:
  51. - sonata.page.admin.page
  52. # - sonata.news.admin.comment
  53. # - sonata.news.admin.post
  54. - sonata.media.admin.media
  55. - sonata.media.admin.gallery
  56. # - sonata.comment.admin.thread
  57. sonata.admin.group.site_builder:
  58. label: Site Builder
  59. label_catalogue: SonataDemoBundle
  60. #icon: '<i class="fa fa-puzzle-piece"></i>'
  61. items:
  62. - sonata.page.admin.page
  63. - sonata.page.admin.site
  64. - sonata.admin.contact_category
  65. sonata.admin.group.faq:
  66. label: FAQ
  67. label_catalogue: Faq
  68. #icon: '<i class="fa fa-puzzle-piece"></i>'
  69. items:
  70. - sonata.admin.faq_category
  71. - sonata.admin.faq_question
  72. sonata.admin.group.classification:
  73. label: sonata_classification
  74. label_catalogue: SonataClassificationBundle
  75. #icon: '<i class="fa fa-sitemap"></i>'
  76. items:
  77. - sonata.classification.admin.category
  78. - sonata.classification.admin.tag
  79. - sonata.classification.admin.collection
  80. sonata.admin.group.administration:
  81. label: sonata_administration
  82. label_catalogue: SonataAdminBundle
  83. #icon: '<i class="fa fa-cogs"></i>'
  84. items:
  85. # - sonata.notification.admin.message
  86. # - sonata.admin.settings_current
  87. # - sonata.admin.tool
  88. sonata.admin.group.user:
  89. label: Users
  90. #icon: '<i class="fa fa-play-circle"></i>'
  91. label_catalogue: SonataAdminBundle
  92. items:
  93. - sonata.user.admin.user
  94. - sonata.user.admin.group
  95. # - sonata.admin.user_group
  96. # - sonata.admin.user_field
  97. # - sonata.admin.user_field_values
  98. # sonata.admin.group.course:
  99. # label: Courses
  100. # #icon: '<i class="fa fa-play-circle"></i>'
  101. # label_catalogue: SonataAdminBundle
  102. # items:
  103. # - sonata.admin.course
  104. # - sonata.admin.course_category
  105. # - sonata.admin.course_request
  106. # - sonata.admin.c_group_info
  107. ## - sonata.admin.notebook
  108. # sonata.admin.group.session:
  109. # label: Sessions
  110. # #icon: '<i class="fa fa-play-circle"></i>'
  111. # label_catalogue: SonataAdminBundle
  112. # items:
  113. # - sonata.admin.session
  114. # - sonata.admin.session_category
  115. # - sonata.admin.career
  116. # - sonata.admin.promotion
  117. # sonata.admin.group.url:
  118. # label: URLs
  119. # #icon: '<i class="fa fa-play-circle"></i>'
  120. # label_catalogue: SonataAdminBundle
  121. # items:
  122. # - sonata.admin.access_url
  123. sonata.admin.resource:
  124. label: Resource
  125. label_catalogue: SonataDemoBundle
  126. #icon: '<i class="fa fa-th"></i>'
  127. items:
  128. - sonata.admin.resource_node
  129. - sonata.admin.resource_link
  130. - sonata.admin.resource_right
  131. - sonata.admin.resource_file
  132. - sonata.admin.resource_type
  133. - sonata.admin.c_document
  134. assets:
  135. stylesheets:
  136. # The default stylesheet list:
  137. - bundles/sonatacore/vendor/bootstrap/dist/css/bootstrap.min.css
  138. - bundles/sonatacore/vendor/components-font-awesome/css/font-awesome.min.css
  139. - bundles/sonatacore/vendor/ionicons/css/ionicons.min.css
  140. - bundles/sonataadmin/vendor/admin-lte/dist/css/AdminLTE.min.css
  141. - bundles/sonataadmin/vendor/admin-lte/dist/css/skins/skin-black.min.css
  142. - bundles/sonataadmin/vendor/iCheck/skins/square/blue.css
  143. - bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css
  144. - bundles/sonataadmin/vendor/jqueryui/themes/base/jquery-ui.css
  145. - bundles/sonatacore/vendor/select2/select2.css
  146. - bundles/sonatacore/vendor/select2-bootstrap-css/select2-bootstrap.min.css
  147. - bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/css/bootstrap-editable.css
  148. - bundles/sonataadmin/css/styles.css
  149. - bundles/sonataadmin/css/layout.css
  150. - bundles/sonataadmin/css/tree.css
  151. - bundles/sonataadmin/css/colors.css
  152. javascripts:
  153. - 'bundles/sonatacore/vendor/jquery/dist/jquery.min.js'
  154. - 'bundles/sonataadmin/vendor/jquery.scrollTo/jquery.scrollTo.min.js'
  155. - 'bundles/sonataadmin/vendor/jqueryui/ui/minified/jquery-ui.min.js'
  156. - 'bundles/sonataadmin/vendor/jqueryui/ui/minified/i18n/jquery-ui-i18n.min.js'
  157. - 'bundles/sonatacore/vendor/moment/min/moment.min.js'
  158. - 'bundles/sonatacore/vendor/bootstrap/dist/js/bootstrap.min.js'
  159. - 'bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js'
  160. - 'bundles/sonataadmin/vendor/jquery-form/jquery.form.js'
  161. - 'bundles/sonataadmin/jquery/jquery.confirmExit.js'
  162. - 'bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/js/bootstrap-editable.min.js'
  163. - 'bundles/sonatacore/vendor/select2/select2.min.js'
  164. - 'bundles/sonataadmin/vendor/admin-lte/dist/js/app.min.js'
  165. - 'bundles/sonataadmin/vendor/iCheck/icheck.min.js'
  166. - 'bundles/sonataadmin/vendor/slimScroll/jquery.slimscroll.min.js'
  167. - 'bundles/sonataadmin/vendor/waypoints/lib/jquery.waypoints.min.js'
  168. - 'bundles/sonataadmin/vendor/waypoints/lib/shortcuts/sticky.min.js'
  169. - 'bundles/sonataadmin/vendor/readmore-js/readmore.min.js'
  170. - 'bundles/sonataadmin/vendor/masonry/dist/masonry.pkgd.min.js'
  171. - 'bundles/sonataadmin/Admin.js'
  172. - 'bundles/sonataadmin/treeview.js'
  173. - 'bundles/sonataadmin/sidebar.js'
  174. extra_javascripts:
  175. - bundles/sonatapage/sonata-page.back.min.js
  176. - libs/ckeditor/ckeditor.js
  177. - bundles/sonataformatter/vendor/markitup-markitup/markitup/jquery.markitup.js
  178. - bundles/sonataformatter/markitup/sets/markdown/set.js
  179. - bundles/sonataformatter/markitup/sets/html/set.js
  180. - bundles/sonataformatter/markitup/sets/textile/set.js
  181. extra_stylesheets:
  182. - bundles/sonatapage/sonata-page.back.min.css
  183. - bundles/sonataformatter/markitup/skins/sonata/style.css
  184. - bundles/sonataformatter/markitup/sets/markdown/style.css
  185. - bundles/sonataformatter/markitup/sets/html/style.css
  186. - bundles/sonataformatter/markitup/sets/textile/style.css