= Yii::t('SpaceProfilesModule.base', 'Module Setup') ?>
= Yii::t('SpaceProfilesModule.base', 'Space Profiles publishes a branded rescue profile page for this space and can set it as the default space home page.') ?>
= Yii::t('SpaceProfilesModule.base', 'Run setup to apply any pending Space Profiles migrations and configure this space home route automatically.') ?>
= Html::a(
Yii::t('SpaceProfilesModule.base', 'Run Space Profiles Setup'),
$model->contentContainer->createUrl('/space_profiles/settings/setup'),
[
'class' => 'btn btn-primary btn-sm',
'data-method' => 'post',
'data-confirm' => Yii::t('SpaceProfilesModule.base', 'Run Space Profiles setup now for this space?'),
]
) ?>
= Yii::t('SpaceProfilesModule.base', 'Configure your rescue profile content, optional HTML regions, and branding assets.') ?>
= Yii::t('SpaceProfilesModule.base', 'Rescue name and description are inherited from this Space\'s name and about/description settings.') ?>
['enctype' => 'multipart/form-data']]); ?>
= $form->errorSummary($model, ['class' => 'alert alert-danger']) ?>
= $form->field($model, 'template_key')->dropDownList($model->getTemplateOptions()) ?>
= $form->field($model, 'address') ?>
= $form->field($model, 'city') ?>
= $form->field($model, 'state') ?>
= $form->field($model, 'zip') ?>
= $form->field($model, 'email') ?>
= $form->field($model, 'phone') ?>
= $form->field($model, 'animals_we_accept')->textarea(['rows' => 3]) ?>
= $form->field($model, 'mission_statement')->textarea(['rows' => 4]) ?>
= $form->field($model, 'header_html')->textarea(['rows' => 4]) ?>
= $form->field($model, 'body_html')->textarea(['rows' => 6]) ?>
= $form->field($model, 'footer_html')->textarea(['rows' => 4]) ?>
= Yii::t('SpaceProfilesModule.base', 'Only HTML/CSS for profile regions is allowed. JavaScript and script-like content are removed automatically.') ?>
= Yii::t('SpaceProfilesModule.base', 'Allowed image formats: {formats}. Maximum file size: {size} MB.', [
'formats' => implode(', ', UploadStandards::imageExtensions()),
'size' => number_format(UploadStandards::IMAGE_MAX_BYTES / 1024 / 1024, 1),
]) ?>
icon_path)): ?>
= $form->field($model, 'iconFile')->fileInput(['accept' => '.jpg,.jpeg,.png,.webp']) ?>
= $form->field($model, 'removeIcon')->checkbox() ?>
background_image_path)): ?>
= $form->field($model, 'backgroundImageFile')->fileInput(['accept' => '.jpg,.jpeg,.png,.webp']) ?>
= $form->field($model, 'removeBackgroundImage')->checkbox() ?>
= Button::save()->submit() ?>