<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE BAR -->
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </ul>
        </div>
        <!-- END PAGE BAR -->
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-eyeglasses font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">Show visits in {$shcontrollname}</span>
                        </div>

                        <div class="actions">

                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/controllers/{$controllname}.php?ac=patientLogout" data-container="body" data-placement="top" data-original-title="log out patient">
                                <i class="icon-logout"></i>
                               patient exit
                            </a>
                        </div>
                    </div>


                    <!--div class="portlet-body form">


                        <div class="dd" id="nestable_list_3">
                            <ol class="dd-list">


                                {$show_patients}
                            </ol>
                        </div>
                        <input type="hidden" id="is_control" value="10">


                    </div-->
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->

        <div class="row">
            <div class="col-md-12">
                <h4>Screen images</h4>
                <form action="{$hosturl}/controllers/{$controllname}.php?ac=uploadSlider" class="dropzone dropzone-file-area" id="my-dropzone" style="margin-top: 50px;">
                    <h3 class="sbold">Drop files here or click to upload.</h3>

                    <div class="dz-message" data-dz-message><span>Drop here</span></div>

                    <div class="row">
                        {foreach $screen_slider as $single}
                        <div class="dz-preview dz-processing dz-image-preview dz-success dz-complete">
                            {if $single->image|strstr:".mp4" == ".mp4" }
                            <div class="dz-image">
                                <p style="text-align: center">video</p>
                            </div>
                            {else}
                            <div class="dz-image">
                                <img data-dz-thumbnail="" alt="slider_image" src="{$hosturl}/../upload/screen_slider/{$single->image}" style="width: 90px;height: 90px;">
                            </div>
                            {/if}

                            <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress="" style="width: 100%;"></span></div>
                            <div class="dz-error-message"><span data-dz-errormessage=""></span></div>
                            <a href="javascript:;" class="btn red btn-sm btn-block remove_slider_item" data-id="{$single->id}">Remove </a>
                        </div>

                        {/foreach}
                    </div>

                    <div class="clearfix"></div>

                </form>


            </div>
        </div>
    </div>
</div>
<!-- END CONTENT -->

<input type="hidden" id="what_control" value="visits">

<style>
    .dz-default .dz-message{
        display: none !important;
    }
</style>