{% extends 'Comitium5DesignerBundle:Common:base.html.twig' %}

{% block body_attr %}{{ parent() }} class="cs_editor_widget_form"{% endblock %}

{% set pace_options = { startOnPageLoad : false, ajax: false, restartOnPushState: false, restartOnRequestAfter: false } %}

{% block styles %}
    {% include 'Comitium5DesignerBundle:Common:admin-css.html.twig' %}

    <link href="{{ asset("bundles/comitium5designer/designer/css/modal.css") }}" rel="stylesheet" type="text/css"/>
{% endblock %}

{#{% block body_start %}#}
{#    <body class="{{ body_class|default('') }}">#}
{#{% endblock %}#}

{% block content_base %}{% endblock %}

{% block javascripts %}
    <!-- Translations -->
    <script src="{{ asset('bundles/bazingajstranslation/js/translator.min.js') }}" type="text/javascript"></script>
    <script src="{{ url('bazinga_jstranslation_js') }}" type="text/javascript"></script>
    <!-- /Translations -->

    <script type="text/javascript" src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cs-utils.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-1.11.0.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/lib/moment/min/moment.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-migrate-1.2.1.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/lib/devbridge-autocomplete/src/jquery.autocomplete.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap/js/bootstrap.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery.blockui.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/uniform/jquery.uniform.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-validation/js/jquery.validate.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/backstretch/jquery.backstretch.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/select2/select2.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/clockface/js/clockface.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery.cokie.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-daterangepicker/moment.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-daterangepicker/daterangepicker.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-touchspin/bootstrap.touchspin.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-editable/bootstrap-editable/js/bootstrap-editable.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery.mockjax.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/metronic.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/beautify-css.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/beautify-html.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/beautify.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/form.utils.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/flot/jquery.flot.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/form-components.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/form-editable.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/error-handler.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/form-validation.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/todo.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/layout/scripts/layout.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/layout/scripts/quick-sidebar.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/layout/scripts/demo.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/lib/js-signals/dist/signals.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/lib/jquery.tagsinput/src/jquery.tagsinput.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/lib/toastr/toastr.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/lib/components-underscore/underscore-min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/pagination.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/suggest.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/lib/q/q.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/datatables/media/js/jquery.dataTables.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/fuelux/js/spinner.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery.pulsate.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/datatables/extensions/TableTools/js/dataTables.tableTools.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/datatables/extensions/ColReorder/js/dataTables.colReorder.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/datatables/extensions/Scroller/js/dataTables.scroller.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-select/bootstrap-select.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-maxlength/bootstrap-maxlength.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-multi-select/js/jquery.multi-select.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-multi-select/js/jquery.multi-select.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery-nestable/jquery.nestable.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/components-form-tools.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jquery.input-ip-address-control-1.0.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/portlet-draggable.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/components-collection.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/components-pickers.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/scripts.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/ajax.tabs.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/form-wizard.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/ui-nestable.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-wizard/jquery.bootstrap.wizard.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/dropzone/dropzone.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/main.utils.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/class/DropzoneCS.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cscollection/SimpleFormCollection.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/class/Activity.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/class/Calendar.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/class/DeleteContentActivity.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/class/DropzoneCS.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/class/ModifyContentActivity.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/agency.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/agencyArticle.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/article.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/articleType.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/asset-advanced-filter.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/assets.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/auto-completion-helper.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/auto-field-completion.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/auto-populate.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/auto-save.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/categories.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/classifieds.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/clear-cache.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/comments.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/communications.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/config.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/contacts.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/contest.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/diaries.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/directories.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/dynamic-forms.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/form_change.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/gallery.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/html-template.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/image-crop.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/libraries.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/live-events.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/location.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/maps.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/pages.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/public-url-handler.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/SharedContent.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/spell_text.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/static-content.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/tags.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/templates.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/translate-form.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/js/widgets.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/form-dropzone.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/advanced-search.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/select-content.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/upload.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/scripts/related-content.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/jcrop/js/jquery.Jcrop.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.ca.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.es.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cslinks/cs-links.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/csasset/cs-asset.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/csrelatedcontent/cs-related-content.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cscustomhtml/cs-custom-html.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/hinclude.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/holder.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cscollection/MultiplePrototypeFormCollection.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/contentType/contentType.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/BlockContent/BlockContent.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/abstracts/SignalsAbstract.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/csformvalidation/FormValidation.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/fullcalendar/fullcalendar/fullcalendar.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/pages/scripts/calendar.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/class/Calendar.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/abstracts/SignalsAbstract.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/BlockContent/BlockContent.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/contentType/contentType.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/csasset/cs-asset.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cscollection/MultiplePrototypeFormCollection.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cscollection/SimpleFormCollection.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cscustomhtml/cs-custom-html.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/csformvalidation/FormValidation.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cslinks/cs-links.class.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/cs-utils.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/js/form-components.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/lib/speakingurl/speakingurl.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/global/plugins/fullcalendar/fullcalendar/fullcalendar-locale-all.js') }}"></script>
    <script type="text/javascript" src="{{ asset('bundles/comitium5designer/layout/scripts/menu-interaction.js') }}"></script>

    {# CKEDITOR #}
    <script src="{{ asset('/bundles/comitium5designer/js/jquery.spellchecker.js') }}"></script>

    {{ render(controller('Comitium5DesignerBundle:CommonConfig:renderCKEditorConfig')) }}

    <script type="text/javascript" src="{{ path('fos_js_routing_js', {'callback': 'fos.Router.setData'}) }}"></script>
    <script type="text/javascript">
        $(function() {
            var paramFormComponents = new FormComponents();
            paramFormComponents.initSpinners();
            $('a[data-toggle="tab"]').off('show.bs.tab');
            $('form[name="widget_parameters"]').CSFormValidation();
        });
    </script>
{% endblock %}
