<?php
/* Smarty version 3.1.33, created on 2024-01-04 14:43:03
  from '/home/excellentwriting/dashboard.topgradewriters.org/content/themes/_partials/_js_templates.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_6596c3f71443d6_96071399',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '3809ccf9f214d94e88ffb21dbaa1d27f88c6da68' => 
    array (
      0 => '/home/excellentwriting/dashboard.topgradewriters.org/content/themes/_partials/_js_templates.tpl',
      1 => 1656689820,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6596c3f71443d6_96071399 (Smarty_Internal_Template $_smarty_tpl) {
?><!-- Modals --><div id="modal" class="modal fade"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><div class="loader pt10 pb10"></div></div></div></div></div><?php echo '<script'; ?>
 id="modal-login" type="text/template"><div class="modal-header"><h5 class="modal-title">Not Logged In</h5></div><div class="modal-body"><p>Please log in to continue</p></div><div class="modal-footer"><a class="btn btn-info" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/signin">Login</a></div><?php echo '</script'; ?>
><?php echo '<script'; ?>
 id="modal-message" type="text/template"><div class="modal-header"><h5 class="modal-title">{{title}}</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><p>{{message}}</p></div><?php echo '</script'; ?>
><?php echo '<script'; ?>
 id="modal-success" type="text/template"><div class="modal-body text-center"><div class="big-icon success"><i class="fa fa-thumbs-up fa-3x"></i></div><h4>{{title}}</h4><p class="mt20">{{message}}</p></div><?php echo '</script'; ?>
><?php echo '<script'; ?>
 id="modal-error" type="text/template"><div class="modal-body text-center"><div class="big-icon error"><i class="fa fa-times fa-3x"></i></div><h4>{{title}}</h4><p class="mt20">{{message}}</p></div><?php echo '</script'; ?>
><?php echo '<script'; ?>
 id="modal-confirm" type="text/template"><div class="modal-header"><h5 class="modal-title">{{title}}</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><p>{{message}}</p></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="button" class="btn btn-info" id="modal-confirm-ok">Confirm</button></div><?php echo '</script'; ?>
><!-- Modals --><?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin']) {?><!-- Activate Module --><?php echo '<script'; ?>
 id="activateModule" type="text/template"><form class="js_ajax-forms p0 m0" data-url="/admin/modules" method="POST"><input type="hidden" name="do" value="activate"><input type="hidden" name="module_name" value="{{module_name}}"><div class="modal-header"><h5 class="modal-title">Activate Module</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><div class="form-group"><label class="control-label text-left">Activation Key</label><input name="activation_key" type="text" class="form-control" required=""></div><!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info">Activate</button></div></form><?php echo '</script'; ?>
><!-- Activate Module --><!-- Upload Plugin --><?php echo '<script'; ?>
 id="modalUploadPlugin" type="text/template">
        <form class="js_files-uploader p0 m0" method="POST" data-handle="plugin">
            <div class="modal-header">
                <h5 class="modal-title">Upload Plugin</h5>
                <span class="modal-close" data-dismiss="modal" aria-label="Close">
                    <i class="fa fa-times"></i>
                </span>
            </div>
            
            <div class="modal-body">
                <div class="files-control js_dropzone" data-handle="plugin">
                    <div class="files-control--files"></div>
                    <div class="dropzone-description">
                        <button class="browse-button btn btn-info" type="button">Browse </button>
                        <span class="control-or">or</span>
                        <span class="control-drop-here">Drop plugin here</span>
                    </div>
                    <div class="dropzone-static">
                        <div class="dropzone-border">Drop files here</div>
                    </div>
                    <input accept=".zip" multiple="" type="file" style="display: none;" data-handle="plugin">
                </div>
                <!-- error -->
                <div class="alert alert-danger mt20 mb0 x-hidden" role="alert"></div>
                <!-- error -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                <button type="submit" class="btn btn-info" id="modal-confirm-ok" disabled="true">Upload</button>
            </div>
        </form>
    <?php echo '</script'; ?>
><?php }
if ($_smarty_tpl->tpl_vars['user']->value['is_admin'] || $_smarty_tpl->tpl_vars['user']->value['is_sub_admin']) {?><!-- Additional Pay --><?php echo '<script'; ?>
 id="modal-additional-payment" type="text/template"><form class="js_ajax-forms p0 m0" data-url="/orders/{{order_id}}/additional-payment" method="POST"><div class="modal-header"><h5 class="modal-title">Request Additional Payment</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><div class="form-group form-row"><label class="col-sm-3 control-label text-left">Amount</label><div class="col-sm-5"><div class="input-group"><div class="input-group-prepend"><span class="input-group-text d-none d-sm-block">$</span></div><input name="amount" type="text" class="form-control force-integer"></div></div></div><div class="form-group form-row"><label class="col-sm-3 control-label text-left">Pages</label><div class="col-sm-9"><div class="control-stepper"><button type="button" class="btn control-stepper__minus-button incr-btn" data-action="decrease">-</button><input name="pages" type="text" class="form-control control-stepper__input force-integer quantity" data-minvalue="0" value="0"><button type="button" class="btn control-stepper__plus-button incr-btn" data-action="increase">+</button></div><div class="help-block">Additional pages to be added to the order when the payment is done</div></div></div><div class="form-group form-row"><label class="col-sm-3 control-label text-left">Charts</label><div class="col-sm-9"><div class="control-stepper"><button type="button" class="btn control-stepper__minus-button incr-btn" data-action="decrease">-</button><input name="charts" type="text" class="form-control control-stepper__input force-integer quantity" data-minvalue="0" value="0"><button type="button" class="btn control-stepper__plus-button incr-btn" data-action="increase">+</button></div><div class="help-block">Additional charts to be added to the order when the payment is done</div></div></div><div class="form-group form-row"><label class="col-sm-3 control-label text-left">PowerPoint slides</label><div class="col-sm-9"><div class="control-stepper"><button type="button" class="btn control-stepper__minus-button incr-btn" data-action="decrease">-</button><input name="slides" type="text" class="form-control control-stepper__input force-integer quantity" data-minvalue="0" value="0"><button type="button" class="btn control-stepper__plus-button incr-btn" data-action="increase">+</button></div><div class="help-block">Additional slides to be added to the order when the payment is done</div></div></div><div class="form-group form-row"><label class="col-sm-3 control-label text-left">Comments</label><div class="col-sm-9"><textarea name="comments" type="text" class="form-control js_autosize"></textarea><div class="help-block">Comments regarding this additional payment</div></div></div><!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info" id="modal-confirm-ok">Confirm</button></div></form><?php echo '</script'; ?>
><!-- Additional Pay --><!-- Order Status --><?php echo '<script'; ?>
 id="editStatusModal" type="text/template"><form class="js_ajax-forms p0 m0" data-url="/orders/{{order_id}}/edit-status" method="POST"><div class="modal-header"><h5 class="modal-title">Change Status</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><div class="form-group"><label class="form-label">Select status</label> 
                    <select class="form-control" name="status_id">
                        <option value="-1" selected="">Select Status</option>
                        <option value="13" {{#status_id=13}}selected=""{{/status_id=13}}>Free Inquiry</option>
                        <option value="0" {{#status_id=0}}selected=""{{/status_id=0}}>Waiting for Payment</option>
                        <option value="12" {{#status_id=12}}selected=""{{/status_id=12}}>New Paid</option>
                        <option value="19" {{#status_id=19}}selected=""{{/status_id=19}}>Available</option>
                        <option value="6" {{#status_id=6}}selected=""{{/status_id=6}}>Writer Assigned</option>
                        <?php if ($_smarty_tpl->tpl_vars['editor_account_enabled']->value) {?><option value="8" {{#status_id=8}}selected=""{{/status_id=8}}>Done/Editing</option><?php }?>
                        <option value="11" {{#status_id=11}}selected=""{{/status_id=11}}>Delivered</option>
                        <option value="10" {{#status_id=10}}selected=""{{/status_id=10}}>Finished</option>
                        <option value="14" {{#status_id=14}}selected=""{{/status_id=14}}>Revision</option>
                        <option value="9" {{#status_id=9}}selected=""{{/status_id=9}}>Cancelled</option>
                        <option value="1" {{#status_id=1}}selected=""{{/status_id=1}}>Dispute</option>
                    </select>
                    </div><!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info" id="modal-confirm-ok">Save Changes</button></div></form><?php echo '</script'; ?>
><!-- Order Status --><!-- Change Deadline --><?php echo '<script'; ?>
 id="extendDeadlineModal" type="text/template"><form class="js_ajax-forms p0 m0" data-url="/orders/{{order_id}}/deadline" method="POST" autocomplete="off"><input type="hidden" name="handle" value="{{handle}}"/><div class="modal-header"><h5 class="modal-title">Change Deadline</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><div class="form-group mb0"><label class="form-control-label">Select Deadline</label><div class="input-group date js_datetimepicker" id="deadline" data-target-input="nearest"><input type='text' class="form-control datetimepicker-input" data-target="#deadline" name="deadline" /><div class="input-group-append" data-target="#deadline" data-toggle="datetimepicker"><span class="input-group-text"><i class="fa fa-calendar"></i></span></div></div></div><!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info" id="modal-confirm-ok">Change Deadline</button></div></form><?php echo '</script'; ?>
><!-- Change Deadline --><!-- Bulk Actions --><?php echo '<script'; ?>
 id="modal-bulk-actions" type="text/template"><form class="js_ajax-forms" data-url="/admin/bulk-actions" method="POST"><div class="modal-header"><h5 class="modal-title">Bulk Actions</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><input name="orderIds" value="{{orderIds}}" type="hidden"><div class="form-group"><label class="form-label">Select an Action</label><select data-combo="bulk-actions-combo" name="action" class="form-control custom-select"><option value="status" selected="">Change order status</option><option value="mark-paid">Mark as Client Paid</option><option value="writer-paid">Mark as Writer Paid</option><option value="delete">Delete</option></select></div><div id="bulk-actions-combo" class="mt-3"><div data-combo-value="status" class="switch-combo"><label class="form-label">Status ID</label><select name="status_id" class="form-control custom-select"><option value="13">Free Inquiry</option><option value="0">Waiting for Payment</option><option value="12">New Paid</option><option value="19">Available</option><option value="6">Writer Assigned</option><?php if ($_smarty_tpl->tpl_vars['editor_account_enabled']->value) {?><option value="8">Done/Editing</option><?php }?><option value="11">Delivered</option><option value="10">Finished</option><option value="14">Revision</option><option value="9">Cancelled</option><option value="1">Dispute</option></select></div></div></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info">Confirm</button></div></form><?php echo '</script'; ?>
><!-- Bulk Actions --><!-- Feedback Modal --><?php echo '<script'; ?>
 id="modal-feedback" type="text/template"><form class="js_ajax-forms p0 m0" data-url="/feedback/{{feedback_id}}/reply" method="POST"><div class="modal-header"><h5 class="modal-title">Reply to Feedback</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><div class="form-group"><label>Reply</label><textarea name="reply" type="text" class="form-control js_autosize"></textarea></div><!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info" id="modal-confirm-ok">Reply</button></div></form><?php echo '</script'; ?>
><!-- Feedback Modal --><!-- Employee Pay --><?php echo '<script'; ?>
 id="modal-edit-pay" type="text/template"><form class="js_ajax-forms p0 m0" data-url="/orders/{{order_id}}/edit-cost" method="POST"><div class="modal-header"><h5 class="modal-title">Edit Pay</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body">{{#edit_customer_pay}}{{#customer_pay}}<div class="form-group"><label class="form-label">Customer Pay</label><input name="customer_pay" class="form-control force-integer" value="{{customer_pay}}"/></div>{{/customer_pay}}{{^customer_pay}}<div class="form-group"><label class="form-label">Customer Pay</label><input name="customer_pay" class="form-control force-integer" value="0.00"/></div>{{/customer_pay}}{{/edit_customer_pay}}{{#edit_writer_pay}}{{#writer_pay}}<div class="form-group"><label class="form-label">Writer Pay</label><input name="writer_pay" class="form-control force-integer" value="{{writer_pay}}"/></div>{{/writer_pay}}{{^writer_pay}}<div class="form-group"><label class="form-label">Writer Pay</label><input name="writer_pay" class="form-control force-integer" value="0.00"/></div>{{/writer_pay}}{{/edit_writer_pay}}{{#edit_editor_pay}}{{#editor_pay}}<div class="form-group"><label class="form-label">Editor Pay</label><input name="editor_pay" class="form-control force-integer" value="{{editor_pay}}"/></div>{{/editor_pay}}{{^editor_pay}}<div class="form-group"><label class="form-label">Editor Pay</label><input name="editor_pay" class="form-control force-integer" value="0.00"/></div>{{/editor_pay}}{{/edit_editor_pay}}<!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info" id="modal-confirm-ok">Save Changes</button></div></form><?php echo '</script'; ?>
><!-- Employee Pay --><!-- Progressive Delivery --><?php echo '<script'; ?>
 id="modal-progressive-delivery" type="text/template"><form class="js_ajax-forms p0 m0" data-url="/orders/{{order_id}}/pd_schedule" method="POST"><div class="modal-header"><h5 class="modal-title">Add Delivery Schedule</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><div class="form-group form-row"><label class="col-sm-3 control-label text-left">Pages</label><div class="col-sm-4"><div class="control-stepper"><button type="button" class="btn control-stepper__minus-button incr-btn" data-action="decrease">-</button><input name="pages" type="text" class="form-control control-stepper__input force-integer quantity" data-minvalue="0" value="0"><button type="button" class="btn control-stepper__plus-button incr-btn" data-action="increase">+</button></div></div></div><div class="form-group form-row"><label class="col-sm-3 control-label text-left">Charts</label><div class="col-sm-4"><div class="control-stepper"><button type="button" class="btn control-stepper__minus-button incr-btn" data-action="decrease">-</button><input name="charts" type="text" class="form-control control-stepper__input force-integer quantity" data-minvalue="0" value="0"><button type="button" class="btn control-stepper__plus-button incr-btn" data-action="increase">+</button></div></div></div><div class="form-group form-row"><label class="col-sm-3 control-label text-left">PowerPoint slides</label><div class="col-sm-4"><div class="control-stepper"><button type="button" class="btn control-stepper__minus-button incr-btn" data-action="decrease">-</button><input name="slides" type="text" class="form-control control-stepper__input force-integer quantity" data-minvalue="0" value="0"><button type="button" class="btn control-stepper__plus-button incr-btn" data-action="increase">+</button></div></div></div><div class="divider"></div><div class="form-group form-row"><label class="form-control-label">Customer Deadline</label><div class="input-group date js_datetimepicker" id="customer_deadline" data-target-input="nearest"><input type='text' class="form-control datetimepicker-input" data-target="#customer_deadline" name="customer_deadline" /><div class="input-group-append" data-target="#customer_deadline" data-toggle="datetimepicker"><span class="input-group-text"><i class="fa fa-calendar"></i></span></div></div></div><div class="form-group form-row"><label class="form-control-label">Writer Deadline</label><div class="input-group date js_datetimepicker" id="writer_deadline" data-target-input="nearest"><input type='text' class="form-control datetimepicker-input" data-target="#writer_deadline" name="writer_deadline" /><div class="input-group-append" data-target="#writer_deadline" data-toggle="datetimepicker"><span class="input-group-text"><i class="fa fa-calendar"></i></span></div></div></div><div class="divider"></div><div class="form-group form-row"><label class="col-sm-3 control-label text-left">Comments</label><div class="col-sm-9"><textarea name="comments" type="text" class="form-control js_autosize"></textarea></div></div><!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info" id="modal-confirm-ok">Add Schedule</button></div></form><?php echo '</script'; ?>
><!-- Progressive Delivery --><?php }
if ($_smarty_tpl->tpl_vars['user']->value['logged']) {
echo '<script'; ?>
 id="newMessage" type="text/template"><form class="js_ajax-forms p0 m0" autocomplete="off" data-url="/messages/send" method="POST"><input type="hidden" name="order_id" value="{{order_id}}"/><div class="modal-header"><h5 class="modal-title">New message</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><div class="form-group"><label class="form-label">Recepient</label><select name="recepient" data-combo="recepient" class="form-control" required=""><?php if ($_smarty_tpl->tpl_vars['user']->value['is_writer']) {?><option value="7">Customer</option><option value="8">Support Department</option><?php } elseif ($_smarty_tpl->tpl_vars['user']->value['is_editor']) {?><option value="6">Writer</option><option value="8">Support Department</option><?php } elseif ($_smarty_tpl->tpl_vars['user']->value['is_admin'] || $_smarty_tpl->tpl_vars['user']->value['is_sub_admin']) {?><option value="7">Customer</option><option value="6">Writer</option><?php }?></select></div><?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin'] || $_smarty_tpl->tpl_vars['user']->value['is_sub_admin']) {?><div class="form-group"><label class="form-label">Subject</label><input name="subject" class="form-control"/></div><?php } else { ?><div id="recepient"><div class="switch-combo x-hidden" data-combo-value="8"><div class="form-group"><label class="form-label">Subject</label><input name="subject" class="form-control"/></div></div></div><?php }?><div class="form-group"><label class="form-label">Message</label><textarea id="summernote" name="message" class="form-control" data-height="200"></textarea></div><!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info">Send</button></div></form><?php echo '</script'; ?>
><!-- Revision --><?php echo '<script'; ?>
 id="revision" type="text/template"><form class="js_ajax-forms p0 m0" autocomplete="off" data-url="/orders/{{order_id}}/sendToRevision" method="POST"><div class="modal-header"><h5 class="modal-title">Send order to revision</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><div class="form-group"><label class="form-label">Revision Note</label><textarea id="summernote" name="revision_note" class="form-control"></textarea></div><!-- success --><div class="alert alert-success mt10 x-hidden" role="alert"></div><!-- success --><!-- error --><div class="alert alert-danger mt10 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info">Submit</button></div></form><?php echo '</script'; ?>
><!-- Upload --><?php echo '<script'; ?>
 id="modal-upload" type="text/template"><form class="js_files-uploader p0 m0" data-oid="{{order_id}}" <?php if (!$_smarty_tpl->tpl_vars['user']->value['is_admin']) {?>data-upload-me=""<?php }?> method="POST"><div class="modal-header"><h5 class="modal-title">Upload files</h5><span class="modal-close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times"></i></span></div><div class="modal-body"><?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin'] || $_smarty_tpl->tpl_vars['user']->value['is_sub_admin']) {?><div class="row mb10"><label class="col-sm-12 control-label text-left">Upload on behalf of</label><div class="selectgroup col-sm-12"><label class="selectgroup-item"><input type="radio" name="upload_for" value="customer" class="selectgroup-input" checked=""><span class="selectgroup-button">Customer</span></label><label class="selectgroup-item"><input type="radio" name="upload_for" value="writer" class="selectgroup-input"><span class="selectgroup-button">Writer</span></label><label class="selectgroup-item"><input type="radio" name="upload_for" value="editor" class="selectgroup-input"><span class="selectgroup-button">Editor</span></label><label class="selectgroup-item"><input type="radio" name="upload_for" value="support" class="selectgroup-input"><span class="selectgroup-button">Support</span></label></div></div><?php }?><div class="files-control js_dropzone" data-handle="order"><div class="files-control--files"></div><div class="dropzone-description"><button class="browse-button btn btn-info" type="button">Browse </button><span class="control-or">or</span><span class="control-drop-here">Drop files here</span></div><div class="dropzone-static"><div class="dropzone-border">Drop files here</div></div><input multiple="" type="file" style="display: none;" data-handle="order" data-id="{{order_id}}"></div><!-- error --><div class="alert alert-danger mt20 mb0 x-hidden" role="alert"></div><!-- error --></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button><button type="submit" class="btn btn-info" id="modal-confirm-ok" disabled="true">Upload</button></div></form><?php echo '</script'; ?>
><!-- Upload --><!-- Form File --><?php echo '<script'; ?>
 id="form-file" type="text/template"><div class="FormFile" data-id="{{id}}"><div class="FormFile__controls"><div class="FormFile__icon"><div class="FormFile__icon__badge FormFile__icon__badge--jpg">{{extension}}</div></div><button type="button" class="FormFile__info"><div class="FormFile__title">{{filename}}</div><span class="FormFile__size">{{size}}</span></button>{{#is_order}}<div class="FormFile__upload-type-control"><select name="uploadTypeId" class="form-control" disabled><option value="-1" selected="">Select file type</option><?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['upload_types']->value, 'upload_type');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['upload_type']->value) {
?><option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['upload_type']->value['id'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['upload_type']->value['title'], ENT_QUOTES, 'UTF-8');?>
</option><?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?></select></div>{{/is_order}}<button {{^isUploaded}}disabled{{/isUploaded}} type="button" class="FormFile__remove-button"></button></div><!-- error --><div class="alert alert-danger mt20 mb0 x-hidden pt5 pb5" role="alert"></div><!-- error --><div class="FormFile__upload-progress"><div class="FormFile__upload-progress-bar" style="width:0;"></div></div></div><?php echo '</script'; ?>
><!-- Form File -->

    <!-- x-uploader -->
    <?php echo '<script'; ?>
 id="x-uploader" type="text/template">
        <form class="x-uploader" action="{{url}}" method="post" enctype="multipart/form-data">
            {{#multiple}}
            <input name="file[]" type="file" multiple="multiple">
            {{/multiple}}
            {{^multiple}}
            <input name="file" type="file">
            {{/multiple}}
            <input type="hidden" name="secret" value="{{secret}}">
        </form>
    <?php echo '</script'; ?>
>
    <!-- x-uploader -->

<?php }
}
}
