

    <?= $this->Form->create(null, ['url' => ['Controller' => 'Gallery', 'action' => 'edit'], 'enctype' => 'multipart/form-data', 'class'=>'form-horizontal row-fluid']) ?>
<div class="row form-area">
    
     <p style="margin:0px 0px;">&nbsp;</p>
    <div class="container">

    
     
       
     <div class="row form-group">
      <div class="row form-group">
             <div class="col-md-4 col-sm-3fieldlabel"></div>          
                  <div class="col-md-4 col-sm-4  text-input">  
                  <input type="file", class='form-control' style="max-width: 100%", name="files[]" multiple >
            </div>
     </div>

     

     <div class="row form-group">
        <div class="col-md-4 col-sm-4 fieldlabel"></div>
            <div class="col-md-4 col-sm-4  text-input">
            <?= $this->Form->input('name', ['class' => 'form-control', 'label' => false,'placeholder'=>'Name']);?>
            </div>
        <div class="col-md-4 col-sm-4 fieldlabel"></div>
    </div>
    <?= $this->Form->hidden('id',['value'=>$listing->id]);?>
    <?php echo $listing->id;?>

    </div>
       
    <p style="margin:0px 0px;">&nbsp;</p>
    <div class="row">
    <div class="col-md-5 col-sm-12  fieldlabel">&nbsp;</div><div class="col-md-2 col-sm-12 "><?= $this->Form->button(__('Save'),['class'=>'btn btn-primary pull-left','style'=>'width:100%']) ?></div>
</div>
  <p style="margin:0px 0px;">&nbsp;</p>
 </div>   
</div>
<?= $this->Form->end() ?> 