\$(this).val('');
                        }
                    });

                    \$.fancybox.close();
                });
            }
JS
)]);
echo \yii\bootstrap\Alert::widget(['options' => ['class' => 'alert-success sx-success-message', 'style' => 'display: none;'], 'closeButton' => false, 'body' => '<div class="sx-body">Ok</div>']);
?>

<?php 
echo \yii\bootstrap\Alert::widget(['options' => ['class' => 'alert-danger sx-error-message', 'style' => 'display: none;'], 'closeButton' => false, 'body' => '<div class="sx-body">Ok</div>']);
?>

<? if ($properties = $modelHasRelatedProperties->relatedProperties) : ?>
    <? foreach ($properties as $property) : ?>
        <?php 
echo $property->renderActiveForm($form, $modelHasRelatedProperties);
?>
    <? endforeach; ?>
<? endif; ?>

<?php 
echo \yii\helpers\Html::submitButton("" . \Yii::t('skeeks/form2/app', $widget->btnSubmit), ['class' => $widget->btnSubmitClass]);
?>

<?php 
ActiveForm::end();
                        }
                    });
                });
            }
JS
)]);
?>

<?php 
echo \yii\bootstrap\Alert::widget(['options' => ['class' => 'alert-success sx-success-message', 'style' => 'display: none;'], 'closeButton' => false, 'body' => '<div class="sx-body">Ok</div>']);
?>

<?php 
echo \yii\bootstrap\Alert::widget(['options' => ['class' => 'alert-danger sx-error-message', 'style' => 'display: none;'], 'closeButton' => false, 'body' => '<div class="sx-body">Ok</div>']);
?>

<? if ($properties = $modelHasRelatedProperties->relatedProperties) : ?>
    <? foreach ($properties as $property) : ?>
        <?php 
echo $property->renderActiveForm($form, $modelHasRelatedProperties);
?>
    <? endforeach; ?>
<? endif; ?>

<?php 
echo \yii\helpers\Html::submitButton("" . \Yii::t('skeeks/form2/app', $widget->btnSubmit), ['class' => $widget->btnSubmitClass]);
?>

<?php 
\skeeks\modules\cms\form2\widgets\ActiveFormConstructForm::end();