
<section class="content-header">
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-home"></i>Home</a></li>
        <li class="active"><a href="#">Dashboard</a></li>
        <li class="active"><a href="<?php echo $this->url('templatesettings', array('action' => 'mail-template')); ?>">Mail Management</a></li>
    </ol>
</section>

<section class="content">
    <div class="row">
        <div class="col-sm-12">

            <div class="tabbable">
                <div class="tab-content no-border padding-24">
                    <div class="tab-pane fade in active" id="faq-tab-1">
                        <div class="space-8"></div>
                        <div class="panel-group accordion-style1 accordion-style2" id="faq-list-1">
                            <?php
                            $form = $this->form;
                            $form->prepare();
                            $form->setAttribute('action', $this->url('templatesettings', ['action' => 'edit-mail']));
                            $form->setAttribute('method', 'post');
                            echo $this->form()->openTag($form);
                            echo $this->FormElement($form->get('id'));
                            ?> 


                            <div class="panel panel-default">

                                <div class="panel-headingnew">  <?php echo $this->translate('Edit Mails'); ?> </div>

                                <div id="faq-1-1" class="panel-collapse collapse in" aria-expanded="true">
                                    <div class="panel-body">
                                        <form id="user_management">
                                            <div class="tab-content" id="myTabContent">
                                                <div id="home" class="tab-pane fade active in">
                                                    <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">

                                                        <div class="row">
                                                            <div class="col-sm-10">

                                                                <div class="form-group clearfix margintopbottom20">
                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new"><?php echo $this->translate('Name'); ?></label>
                                                                    <div class="col-sm-3 col-sm-4-new">
                                                                        <div class="row-fluid">
                                                                            <?php echo $this->FormElement($form->get('name')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('name'), ['class' => 'error']); ?>

                                                                        </div>
                                                                    </div>                                     
                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new"> 
                                                                        <?php echo $this->translate('Type'); ?></label>
                                                                    <div class="col-sm-3 col-sm-4-new">
                                                                        <div class="row-fluid">
                                                                            <?php echo $this->FormElement($form->get('type')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('type'), ['class' => 'error']); ?>


                                                                        </div>
                                                                    </div>  



                                                                </div>

                                                                <div class="form-group clearfix margintopbottom20">

                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new">
                                                                        <?php echo $this->translate('Header Text'); ?></label>
                                                                    <div class="col-sm-3 col-sm-4-new">
                                                                        <div class="row-fluid">
                                                                            <?php echo $this->FormElement($form->get('header_text')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('header_text'), ['class' => 'error']); ?>

                                                                        </div>
                                                                    </div>

                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new">  
                                                                        <?php echo $this->translate('Footer Text'); ?></label>
                                                                    <div class="col-sm-3 col-sm-4-new">


                                                                        <div class="row-fluid">
                                                                            <?php echo $this->FormElement($form->get('footer_text')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('footer_text'), ['class' => 'error']); ?>

                                                                        </div>
                                                                    </div>

                                                                </div>


                                                                <div class="form-group clearfix margintopbottom20">
                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new" >
                                                                        <?php echo $this->translate('Footer Text'); ?></label>
                                                                    <div class="col-sm-3 col-sm-4-new">
                                                                        <div class="row-fluid">
                                                                            <?php echo $this->FormElement($form->get('upload_img')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('upload_img'), ['class' => 'error']); ?>
                                                                        </div>
                                                                    </div>
                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="">Status   </label>

                                                                    <div class="col-sm-3 col-sm-4-new">
                                                                        <div class="col-sm-6 no-padding">
                                                                            <div class="carbooking">
 <input type="radio" name="is_active" id="active" value="1" <?php if($status==1){?> checked="checked"<?php }?> >
                                                                                <label for="active"><span class="radio">Active</span></label>
                                                                            </div>

                                                                        </div>

                                                                        <div class="col-sm-6 no-padding">

                                                                            <div class="carbooking">
                                                                                <input type="radio" name="is_active" id="deactive" <?php if($status==0){?> checked="checked"<?php }?> value="0">
                                                                                <label for="deactive"><span class="radio">In-Active</span></label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>



                                                                <div class="form-group clearfix margintopbottom20">

                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="Categorie Name"> 
                                                                        <?php echo $this->translate('Mail Description'); ?></label>
                                                                    <div class="col-sm-9 widthpersent79">


                                                                        <div class="row-fluid">
                                                                            <?php echo $this->FormElement($form->get('description')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('description'), ['class' => 'error']); ?>

                                                                        </div>
                                                                    </div>

                                                                </div>
                                                                <div class="form-group clearfix margintopbottom20">
                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new" id="">   </label>

                                                                    <div class="col-sm-3 col-sm-4-new">
                                                                        <div class="col-sm-6 no-padding">


                                                                        </div>

                                                                        <div class="col-sm-6 no-padding">


                                                                        </div>


                                                                    </div>

                                                                    <label class="col-sm-3 control-label labelalign col-sm-3-new"></label>
                                                                    <div class="col-sm-3 col-sm-4-new" align="right">

                                                                        <a href="<?php echo $this->url('templatesettings', array('action' => 'mail-template')); ?>" id="back" class="btn btn-github"><i class="fa fa-backward iconsearch" ></i>Back</a>
                                                                        <a href="#" class="btn btn-red defaultbtnsearch btn-warning"><i class="fa fa-sign-in iconsearch"></i><?php echo $this->FormElement($form->get('submit')); ?></a>


                                                                    </div>
                                                                </div>

                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>


                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                            <?php echo $this->form()->closeTag(); ?>

                        </div>
                    </div>
                </div>
            </div>              
        </div>            
    </div>
</section>   




<?php echo $this->inlineScript()->appendFile($this->basePath('/includes/ckeditor/ckeditor.js')); ?>
<script type="text/javascript">
    CKEDITOR.replace('description');
</script>