<?= $this->Form->create($cmsbanners, ['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="col-sm-2 col-xs-12 field-label">
                title
            </div>
            <div class="col-sm-10 col-xs-12 text-input">
                <?= $this->Form->input('title', ['class' => 'form-control', 'label' => false]);?>
            </div>
        </div>

        <div class="row form-group">
            <div class="col-sm-2 col-xs-12 field-label">
                Description
            </div>
            <div class="col-sm-10 col-xs-12 text-input">
                <?= $this->Form->input('description', ['class' => 'form-control', 'label' => false]);?>
            </div>
        </div>


        <div class="row form-group">
            <div id="upload-new">
                <div class="col-md-2 col-sm-3fieldlabel">Picture</div>
                <?php if(!empty($cmsbanners->image_path)):?>
                <div class="col-md-2 col-sm-2">
                    <?= $this->Html->image(Cake\Core\Configure::read('IMAGE_PREPATH').$cmsbanners->image_path,[ 'height' => '100px',"class"=>"img-responsive"]);?>
                </div>
                <?php endif ?>
                <div class="col-md-6 col-sm-6">
                    <div id="moreUploads">

                    </div>

                    <div id="moreUploadsLink">
                        <a href="javascript:addFileInput2();" id="img"
                            onclick="document.getElementById('moreUploadsLink').style.display='';" id='imag'></a>
                    </div>
                </div>

            </div>
        </div>

        <?php if (1 ==2 ) { ?>
        <div class="row form-group">
            <div class="col-sm-2 col-xs-12 field-label">
                <b> List of Sections</b>
            </div>
        </div>
        <?php foreach ($sectionlist as $section) {?>

        <div class="row form-group">
            <div class="col-sm-2 col-xs-12 field-label">
                <?= $section->name ?>
            </div>
            <div class="col-sm-10 col-xs-12 select-input">
                <div style="float: left; margin-right: 20px; margin-top: -30px">
                    <input type="radio" name="<?= $section->id ?>" class="radio" value="1" id="<?= $section->id ?>-0">
                    <label for="<?= $section->id ?>-0" class="radio-label">Yes</label>
                </div>
                <div style="float: left; margin-right: 20px; margin-top: -30px">
                    <input type="radio" name="<?= $section->id ?>" class="radio" value="0" id="<?= $section->id ?>-1"
                        class="radio" checked="checked">
                    <label for="<?= $section->id ?>-1" class="radio-label">No</label>
                </div>
            </div>
        </div>
        <?php  } ?>
        <?php  } ?>

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