jablonka.czprosek.czf

freenet-router

Subversion Repositories:
[/] [trunk/] [freenet-router/] [var/] [www/] [freenet-router/] [Framework/] [Resources/] [templates/] [UI/] [Window.twig] - Rev 2

Compare with Previous - Blame - Download


<div style="width:{{component.width}};
            height:{{component.height}};
            z-index: {{component.zIndex}};
            left:{{component.left}};
            top:{{component.top}};
            position: absolute;
            background-color:{{component.backgroundColor}};"
     class="window {% if component.draggable %}draggable{% endif %} panel panel-primary"
     {%if component.onDrag|length > 0 %}ondrag="invokeStrongEvent(this,event);"{% endif %}
     {%if component.onMouseDown|length > 0 %}onmousedown="invokeStrongEvent(this,event);"{% endif %}
     id="{{component.name}}">
    <div class="panel-heading" style="cursor:pointer;float:left;width:100%">

        {#<div class="icon-wrapper">
            <span class="ui-icon {% block window_icon %}ui-icon-gear{% endblock %}"></span>
        </div>#}
        <span class="glyphicon {{component.titleIcon}}"></span>
        {% block window_caption %}
            {{ component.title }}
        {% endblock %}
              <div class="btn-group pull-right">
                <a href="#" class="btn btn-default btn-xs"> X </a>
              </div>
        {#<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" role="button" aria-disabled="false" title="close"><span class="ui-button-icon-primary ui-icon ui-icon-closethick"></span><span class="ui-button-text">close</span></button>
        #}
        {#<div class="buttons-wrapper">
            {% block window_buttons %}{% endblock %}
        </div>#}
    </div>
    <div class="panel-body c-container" style="height:100%;width: 100%">
    {% for control in component.controls %}
        {{ include('@Phem/UI/' ~ control.templateName ~ '.twig', {component: control}, with_context = false) }}
    {% endfor %}
    </div>
    <script>
                    $(document).ready(function(){
                        $("#{{component.name}}").draggable();
                    });        
    </script>    
</div>

Powered by WebSVN 2.2.1