This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.btn { | |
transition: all 0.5s ease 0s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= Html::a('Ausschreibung publizieren', ['create'], ['class' => 'btn btn-info']) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col-xs-12 col-md-6"><?= Html::submitButton('Anmelden', ['class' => 'btn btn-success btn-block btn-lg ']) ?></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= Html::a('Alle ' .$model->skill->skill . ' anzeigen', ['coach/faehigkeiten', 'id' => $model->id_skill], ['class' => 'btn']) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function actionUpdate($id) | |
{ | |
$model = $this->findModel($id); | |
if ($model->load(Yii::$app->request->post())) { | |
if (isset ($model->id_trainingslevel)) { | |
$model->id_trainingslevel = implode(",", $model->id_trainingslevel); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function Checktoken($id) { | |
$model = Tuser::find()->where(['password' => $id ])->count(); | |
if( $model > 0 ) { | |
return true; | |
} else { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$form->field($model, 'termsofuse')->checkbox(['label' => Yii::t('app', 'I understand and agree to the <a href="#termsofuse">Terms of Use</a>.')])->label(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Or you could add a getDischargedLabel() function in your model :--> | |
public function getDischargedLabel() | |
{ | |
return $this->discharged ? 'Yes' : 'No'; | |
} | |
<!--And in your gridview :--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= GridView::widget([ | |
'dataProvider' => $dataProvider, | |
'layout' => '{items}{pager}', | |
'columns' => [ | |
'bezeichnung', | |
[ | |
'header' => 'Kategorie 2', | |
'value' => 'kat2.bezeichnung', | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $this->registerMetaTag(['name' => $model->skill, 'content' => $model->beschreibung]); ?> |
OlderNewer