<section class="content-header">
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-home"></i>Home</a></li>
        <li class="active"><a href="<?php echo $this->url('master-module', array('action' => 'add-module')); ?>">Deshboard</a></li>
        <li class="active">Manage Module</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">
                            <div class="panel panel-default">
                                <div class="panel-headingnew"><?php echo $this->translate('Module Details'); ?> </div>
                                <div class="left_panel col-sm-12 padding_margin0" id="add_detail" style="float:left; background:#fff;">
                                    <div class="tab-content tab_editprofile col-sm-12" style="padding-left:0; margin-top:10px; margin-bottom:10px;">
                                        <div class="tab-pane fade in tab_editprofile tab_editprofile1 active">
                                            <div class="change_password tab_editprofile">
                                                <div class="tab-content">
                                                    <div class="tab-pane fade active in">
                                                        <div style="margin: 10px auto 0px !important;padding: 0 10px;" class="col-sm-col-sm-offset-1">
                                                            <?php
                                                            $form = $this->form;
                                                            $form->prepare();
                                                            $form->setAttribute('action', $this->url('master-module', ['action' => 'add-module']));
                                                            $form->setAttribute('enctype', 'multipart/form-data');
                                                            echo $this->form()->openTag($form);
                                                            echo $this->FormElement($form->get('module_id'));


                                                            ?>
                                                            <div class="row">
                                                                <div class="col-sm-10">
                                                                    <div class="form-group clearfix margintopbottom20">
                                                                        <?php if($this->moduleId==''){ ?>
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="Categorie Name">
                                                                            <?php echo $this->translate($this->formLabel($form->get('parent_module'))); ?>

                                                                        </label>

                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('parent_module')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('parent_module'), ['class' => 'error']); ?>
                                                                        </div>
                                                                        <?php } ?>
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('module_name'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('module_name')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('module_name'), ['class' => 'error']); ?>
                                                                        </div>
                                                                    </div>

                                                                    <div class="form-group clearfix margintopbottom20">
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('namespace'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('namespace')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('namespace'), ['class' => 'error']);
                                                                            ?>
                                                                        </div>

                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('controller_name'))); ?></label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('controller_name')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('controller_name'), ['class' => 'error']); ?>
                                                                        </div>
                                                                    </div>
                                                                    <div class="form-group clearfix margintopbottom20">
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('order'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('order')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('order'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('action'))); ?></label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('action')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('action'), ['class' => 'error']); ?>
                                                                        </div>
                                                                    </div>
                                                                    <div class="form-group clearfix margintopbottom20">
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('url'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('url')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('url'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('icon_class'))); ?></label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('icon_class')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('icon_class'), ['class' => 'error']); ?>
                                                                        </div>
                                                                    </div>

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


                                                                        <label class="col-sm-6 control-label labelalign col-sm-3-new" id="point-airport">
                                                                            <?php echo $this->translate('Status'); ?> <span  class="defaultcolor">*</span> </label>


                                                                        <div class="col-md-6 no-padding">
                                                                            <div class="group">
                                                                                <div class="col-sm-12 padding0">
                                                                                    <div class="col-md-5 padding0 margin-left44">
                                                                                        <div class="carbooking">
                                                                                            <input type="radio" name="status" id="Active"  checked="checked" value="1">
                                                                                            <label for="Active"><span class="radio">Active</span></label>

                                                                                        </div>
                                                                                    </div>

                                                                                    <div class="col-md-5 margin-left35" >
                                                                                        <div class="form-group-lg form-group-select-plus">
                                                                                            <div class="carbooking">
                                                                                                <input type="radio" name="status" id="De-active" value="0">
                                                                                                <label for="De-active"><span class="radio">De-Active</span></label>

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

                                                                        </div>

                                                                    </div>


                                                                    <div class="col-sm-12 " align="right">

                                                                        <div class="carbooking">
                                                                            <a class="publish_all btn btn-unapublish" href="<?php echo $this->url('master-module', array('action' => 'index')); ?>" ><i class="fa fa-chevron-left" ></i> Back</a>
                                                                            <a >
                                                                                <?php echo $this->FormElement($form->get('save')); ?></a>
                                                                            <a class="reset_btn btn btn-success reset_btn" href="#"><i class="fa fa-retweet"></i>Reset</a>


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