
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h2 class="modal-title">
        Login
    </h2>
</div>
<div class="modal-body">
   <?php
    $form = $this->form;
    $form->prepare();
    $form->setAttribute('action', $this->url('user', ['action' => 'login']));
    $form->setAttribute('method', 'post');
    $form->setAttribute('id', 'login-form');
    echo $this->form()->openTag($form);
?>
<div class="row" id="reg_form">

        <div class="col-sm-12" align="center" id="login_detail">

        <h4><?php echo $this->translate('Login Detail'); ?></h4>
        <div class="col-sm-4" style="float:none;" align="left">
            <div class="form-group">
                <span class="col-sm-12"><?php echo $this->translate('User Name'); ?></span>
                <div class="col-sm-12">
                    <?php echo $this->formElement($form->get('username')); ?>
                    <span class="showerror">
                        <?php echo $this->formElementErrors($form->get('username'), ['class' => 'error']); ?>
                    </span>
                    <?php echo $this->formElement($form->get('registration_type')); ?>
                </div>
            </div>

            <div class="form-group">
                <span class="col-sm-12"><?php echo $this->translate('Password'); ?></span>
                <div class="col-sm-12">
                    <?php echo $this->formElement($form->get('password')); ?>
                    <span class="showerror">
                        <?php echo $this->formElementErrors($form->get('password'), ['class' => 'error']); ?>
                    </span>
                </div>
            </div>



            <div class="form-group">
                <div class="col-sm-12">
                    <?php echo $this->FormElement($form->get('login_form')); ?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php echo $this->form()->openTag($form); ?>
    <div></div>
</div>
<div class="modal-footer" style=" padding-top:2px !important;">
    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
