Initial import of animal_management module
This commit is contained in:
31
views/animals/transfer.php
Normal file
31
views/animals/transfer.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user