/** * (non-PHPdoc) * @see \yii\widgets\ActiveForm::run() */ public function run() { parent::run(); Pjax::end(); if (!isset($this->template)) { $this->createDefaultTemplate(); } echo $this->render('template/footer', ['formModel' => $this->formModel, 'templateController' => $this->_module->templateController, 'displayedAttributes' => $this->displayedAttributes, 'fieldNames' => $this->template->fields, 'submitTitle' => $this->submitTitle]); Pjax::begin(['id' => 'template-panel-pjax']); echo $this->templatesPanel(); Pjax::end(); Pjax::end(); FlexibleFormAsset::register($this->view); }
public function run() { parent::run(); echo '</div>'; if ($this->footer) { echo '<div class="panel-footer">' . $this->footer . '</div>'; } echo '</div>'; }
public function run() { parent::run(); if (!isset($this->options['id'])) { $this->options['id'] = $this->getId(); } if ($this->beforeSubmit) { $id = $this->options['id']; $view = $this->getView(); $view->registerJs("jQuery('#{$id}').on('beforeSubmit', function() { return " . $this->beforeSubmit . "(this); });"); } }
public function run() { parent::run(); if ($this->append) { echo $this->append; } }
/** * @inheritdoc */ public function run() { parent::run(); $view = $this->getView(); ActiveFormAsset::register($view); }
/** * Will show the Stripe's simple form modal */ public function run() { parent::run(); $this->registerFormScripts(); if ($this->applyJqueryPaymentFormat || $this->applyJqueryPaymentValidation) { $this->registerJqueryPaymentScripts(); } }