portal.mkgtu.ru/backend/views/oauth/_form.php

25 lines
646 B
PHP
Raw Normal View History

2024-03-28 09:51:45 +03:00
<?php
use kartik\form\ActiveForm;
use yii\helpers\Html;
?>
<div class="oauth-form card-body">
<?php $form = ActiveForm::begin(); ?>
<?php echo $form->field($model, 'client_id') ?>
<?php echo $form->field($model, 'client_secret') ?>
<?php echo $form->field($model, 'redirect_uri') ?>
<?php echo $form->field($model, 'grant_types')->textInput(['readonly' => true]) ?>
<div class="form-group">
<?php echo Html::submitButton(Yii::t('backend', 'Сохранить'), ['class' => 'btn btn-primary', 'name' => 'oauth-button']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>