<?php
/**
 * baserCMS :  Based Website Development Project <https://basercms.net>
 * Copyright (c) baserCMS Users Community <https://basercms.net/community/>
 *
 * @copyright       Copyright (c) baserCMS Users Community
 * @link            https://basercms.net baserCMS Project
 * @since           baserCMS v 0.1.0
 * @license         https://basercms.net/license/index.html
 */

/**
 * [ADMIN] パスワードリセット画面
 */
$userModel = Configure::read('BcPrefixAuth.' . $currentPrefix . '.userModel');
if (!$userModel) {
  $userModel = 'User';
}
?>


<div class="section">
  <p><?php echo __d('baser_core', 'パスワードを忘れた方は、登録されているメールアドレスを送信してください。<br />新しいパスワードをメールでお知らせします。') ?></p>
  <?php if ($currentPrefix == 'front'): ?>
    <?php echo $this->BcAdminForm->create($userModel, ['url' => ['action' => 'reset_password']]) ?>
  <?php else: ?>
    <?php echo $this->BcAdminForm->create($userModel, ['url' => ['action' => 'reset_password', $this->request->getParam('prefix') => true]]) ?>
  <?php endif ?>
  <div class="submit">
    <?php echo $this->BcAdminForm->control($userModel . '.email', ['type' => 'text', 'size' => 34]) ?>
    <?php echo $this->BcAdminForm->submit(__d('baser_core', '送信'), ['div' => false, 'class' => 'button bca-btn', 'data-bca-btn-status' => 'warning']) ?>
  </div>
  <?php echo $this->BcAdminForm->end() ?>
</div>
