{% extends "base.html.twig" %}

{% block stylesheet %}
    <link rel="stylesheet" type="text/css" href="{{ Layout_getPath() }}style/adm.css?v={{ Template_getVersion() }}"/>
    <link rel="stylesheet" type="text/css" href="{{ Layout_getPath() }}style/lms-to-review.css?v={{ Template_getVersion() }}"/>
    <link rel="stylesheet" type="text/css" href="{{ Layout_getPath() }}style/reset-fonts-grids.css?v={{ Template_getVersion() }}" />

{% endblock %}

{% block javascript %}
    <script type="text/javascript" src="{{ Layout_getPath() }}script/jquery.smartmenus.js"></script>
    <script type="text/javascript">
        YAHOO.util.Event.onDOMReady(function () {
            checkSelect(document.getElementById('course_type').value);

            YAHOO.util.Event.on(
                YAHOO.util.Selector.query('select#course_type'), 'change', function (e) {
                    checkSelect(this.value);
                });

        });

        function checkSelect(val) {
            if (val == 'elearning') {
                document.getElementById("auto_subscription").removeAttribute("disabled");
            }
            else {
                document.getElementById("auto_subscription").disabled = "disabled";
                document.getElementById("auto_subscription").checked = false;
            }
        }
         $(function() {
          // Forma SmartMenu init
          $('#main-menu').smartmenus({   
            subMenusSubOffsetX: 1,
            subMenusSubOffsetY: -8
          });
          // feedback
          $('#container-feedback').click(function(){
              $( this ).fadeOut( 500 );
          });
        });        
        
        
    </script>
{% endblock %}

{% block content %}

<!-- menu_over -->
{{ Layout_getZone('menu_over') }}

<!-- blind nav -->
{{ Layout_getZone('blind_navigation') }}
<!-- container -->

<div id="admcontainer">

    <!-- feedback -->
    {{ Layout_getZone('feedback') }}

    <!-- content -->
    <div class="layout_colum_container">
        {{ Layout_getZone('content') }}
        <div class="nofloat"></div>
    </div>
</div>
<!-- footer -->
<div id="footer" class="layout_footer">
    {{ Layout_getZone('footer') }}
        {{ Layout_getCopyright() }}
</div>

<!-- scripts -->
{{ Layout_getZone('scripts') }}
<!-- debug -->
{{ Layout_getZone('debug') }}
<!-- def_lang -->
{{ Layout_getZone('def_lang') }}
{% endblock %}