parent
8dcd58126d
commit
cd0b1f3199
@ -1,8 +1,6 @@ |
||||
liip_theme: |
||||
themes: ['default', 'my_theme'] |
||||
active_theme: 'default' |
||||
path_patterns: |
||||
bundle_resource: |
||||
- '%kernel.root_dir%/../templates/themes/%%current_theme%%/%%bundle_name%%/%%template%%' |
||||
# %%current_theme%% is the variable representing active_theme defined above |
||||
# %%bundle_name%% and %%template%% are managed by liip depending on the page loaded |
||||
#liip_theme: |
||||
# themes: ['default', 'my_theme'] |
||||
# active_theme: 'default' |
||||
# path_patterns: |
||||
# bundle_resource: |
||||
# - '%kernel.root_dir%/../templates/themes/%%current_theme%%/%%bundle_name%%/%%template%%' |
||||
|
@ -1,23 +1,20 @@ |
||||
# see https://github.com/phiamo/MopaBootstrapBundle/blob/master/Resources/doc/misc/configuration-reference.md |
||||
mopa_bootstrap: |
||||
# Adds twig form theme support |
||||
# horizontal_label_class: 'aa' |
||||
# horizontal_input_wrapper_class: 'dd' |
||||
menu: ~ # enables twig helpers for menu |
||||
form: |
||||
show_legend: true # default is true |
||||
show_child_legend: false # default is true |
||||
error_type: block # or inline which is default |
||||
render_optional_text: true |
||||
collection: |
||||
widget_remove_btn: |
||||
icon: trash |
||||
attr: |
||||
class: btn btn-danger |
||||
widget_add_btn: |
||||
icon: plus-sign |
||||
attr: |
||||
class: btn btn-primary |
||||
icons: |
||||
icon_set: fontawesome4 |
||||
shortcut: icon |
||||
#mopa_bootstrap: |
||||
# menu: ~ # enables twig helpers for menu |
||||
# form: |
||||
# show_legend: true # default is true |
||||
# show_child_legend: false # default is true |
||||
# error_type: block # or inline which is default |
||||
# render_optional_text: true |
||||
# collection: |
||||
# widget_remove_btn: |
||||
# icon: trash |
||||
# attr: |
||||
# class: btn btn-danger |
||||
# widget_add_btn: |
||||
# icon: plus-sign |
||||
# attr: |
||||
# class: btn btn-primary |
||||
# icons: |
||||
# icon_set: fontawesome4 |
||||
# shortcut: icon |
||||
|
@ -1,5 +1,4 @@ |
||||
{% include '@ChamiloTheme/Admin/switcher_links.html.twig' %} |
||||
{#{% include '@ChamiloTheme/Admin/switcher_links.html.twig' %}#} |
||||
|
||||
{{ render(controller('ChamiloUserBundle:Security:loginSideBar')) }} |
||||
|
||||
{{ mopa_bootstrap_menu('ChamiloCoreBundle:LeftMenuBuilder:loginMenu', {'automenu': 'pills', 'stacked':true}) }} |
||||
{#{{ render(controller('ChamiloUserBundle:Security:loginSideBar')) }}#} |
||||
{#{{ mopa_bootstrap_menu('ChamiloCoreBundle:LeftMenuBuilder:loginMenu', {'automenu': 'pills', 'stacked':true}) }}#} |
||||
|
@ -1,37 +1,35 @@ |
||||
<!-- sidebar menu: : style can be found in sidebar.less --> |
||||
{% import '@ChamiloTheme/Macros/box.html.twig' as macro %} |
||||
{#<!-- sidebar menu: : style can be found in sidebar.less -->#} |
||||
{#{% import '@ChamiloTheme/Macros/box.html.twig' as macro %}#} |
||||
|
||||
{% autoescape false %} |
||||
{#{% autoescape false %}#} |
||||
{#{% if is_granted('IS_AUTHENTICATED_FULLY') %}#} |
||||
{# #}{#'Profile' | trans,#} |
||||
{# #}{#mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:mainMenu', {'automenu': 'pills', 'stacked':true})) }}#} |
||||
|
||||
{% if is_granted('IS_AUTHENTICATED_FULLY') %} |
||||
{#{{ macro.panel(#} |
||||
{#'Profile' | trans,#} |
||||
{#mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:mainMenu', {'automenu': 'pills', 'stacked':true})) }}#} |
||||
{# {{ macro.panel(#} |
||||
{# 'Courses' | trans,#} |
||||
{# mopa_bootstrap_menu('ChamiloCoreBundle:CourseMenuBuilder:courseMenu', {'automenu': 'pills', 'stacked':true})) }}#} |
||||
|
||||
{{ macro.panel( |
||||
'Courses' | trans, |
||||
mopa_bootstrap_menu('ChamiloCoreBundle:CourseMenuBuilder:courseMenu', {'automenu': 'pills', 'stacked':true})) }} |
||||
{# {{ macro.panel(#} |
||||
{# 'Skills' | trans,#} |
||||
{# mopa_bootstrap_menu('ChamiloCoreBundle:CourseMenuBuilder:skillsMenu', {'automenu': 'pills', 'stacked':true})) }}#} |
||||
|
||||
{{ macro.panel( |
||||
'Skills' | trans, |
||||
mopa_bootstrap_menu('ChamiloCoreBundle:CourseMenuBuilder:skillsMenu', {'automenu': 'pills', 'stacked':true})) }} |
||||
{#{% else %}#} |
||||
{# <div class="user-panel">switcher#} |
||||
{# </div>#} |
||||
{# <form action="{{ path("fos_user_security_check") }}" method="post" role="form" class="sidebar-form">#} |
||||
{# <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>#} |
||||
{# <div class="form-group">#} |
||||
{# <label for="username">{{ 'security.login.username' | trans({}, 'FOSUserBundle') }}</label>#} |
||||
{# <input type="text" class="form-control" id="username" name="_username" >#} |
||||
{# </div>#} |
||||
{# <div class="form-group">#} |
||||
{# <label for="password">{{ 'security.login.password' | trans({}, 'FOSUserBundle') }}</label>#} |
||||
{# <input type="password" class="form-control" id="password" name="_password">#} |
||||
{# </div>#} |
||||
{# <button type="submit" class="btn btn-default">{{ 'security.login.submit' | trans({}, 'FOSUserBundle') }}</button>#} |
||||
{# </form>#} |
||||
{# {{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:notLoginMenu', {'automenu': 'pills', 'stacked':true}) }}#} |
||||
{#{% endif %}#} |
||||
|
||||
{% else %} |
||||
<div class="user-panel">switcher |
||||
</div> |
||||
<form action="{{ path("fos_user_security_check") }}" method="post" role="form" class="sidebar-form"> |
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/> |
||||
<div class="form-group"> |
||||
<label for="username">{{ 'security.login.username' | trans({}, 'FOSUserBundle') }}</label> |
||||
<input type="text" class="form-control" id="username" name="_username" > |
||||
</div> |
||||
<div class="form-group"> |
||||
<label for="password">{{ 'security.login.password' | trans({}, 'FOSUserBundle') }}</label> |
||||
<input type="password" class="form-control" id="password" name="_password"> |
||||
</div> |
||||
<button type="submit" class="btn btn-default">{{ 'security.login.submit' | trans({}, 'FOSUserBundle') }}</button> |
||||
</form> |
||||
{{ mopa_bootstrap_menu('ChamiloCoreBundle:SimpleMenuBuilder:notLoginMenu', {'automenu': 'pills', 'stacked':true}) }} |
||||
{% endif %} |
||||
|
||||
{% endautoescape %} |
||||
{#{% endautoescape %}#} |
||||
|
Loading…
Reference in new issue