32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
<?php
|
|
|
|
use humhub\modules\animal_management\models\Animal;
|
|
use humhub\modules\animal_management\models\forms\TransferRequestForm;
|
|
use humhub\modules\space\models\Space;
|
|
use humhub\widgets\Button;
|
|
use yii\bootstrap\ActiveForm;
|
|
|
|
/* @var Space $space */
|
|
/* @var Animal $animal */
|
|
/* @var TransferRequestForm $model */
|
|
?>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<?= Yii::t('AnimalManagementModule.base', '<strong>Transfer Request</strong> for {animal}', ['animal' => $animal->getDisplayName()]) ?>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?php $form = ActiveForm::begin(); ?>
|
|
|
|
<?= $form->field($model, 'to_space_id')->dropDownList($model->getTargetOptions(), ['prompt' => Yii::t('AnimalManagementModule.base', 'Select destination rescue')]) ?>
|
|
<?= $form->field($model, 'request_message')->textarea(['rows' => 4]) ?>
|
|
<?= $form->field($model, 'conditions_text')->textarea(['rows' => 3]) ?>
|
|
|
|
<?= Button::save(Yii::t('AnimalManagementModule.base', 'Send Request'))->submit() ?>
|
|
<?= Button::asLink(Yii::t('AnimalManagementModule.base', 'Cancel'))
|
|
->link($space->createUrl('/animal_management/animals/index')) ?>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
</div>
|
|
</div>
|