<?php
use app\models\forms\SiteCreateForm;
use yii\helpers\Html;

/**
 * @var SiteCreateForm $model
 * @var \Callable $t
 */

?>
<div class="step-pane active" id="panelMotionWho" data-tab="stepMotions">
    <fieldset class="motionWho">
        <legend>
            <span class="only-motion"><?= $t('motwho_mot_title') ?></span>
            <span class="only-manifesto"><?= $t('motwho_man_title') ?></span>
        </legend>
        <div class="description">&nbsp;</div>
        <div class="options">
            <label class="radio-label value-1">
                <span class="title"><?= $t('motwho_admins') ?></span>
                <span class="description"></span>
                <span class="input">
                    <?= Html::radio(
                        'SiteCreateForm[motionsInitiatedBy]',
                        $model->motionsInitiatedBy == SiteCreateForm::MOTION_INITIATED_ADMINS,
                        ['value' => SiteCreateForm::MOTION_INITIATED_ADMINS]
                    ); ?>
                </span>
            </label>
            <label class="radio-label two-lines value-2">
                <span class="title long"><?= $t('motwho_loggedin') ?></span>
                <span class="description"></span>
                <span class="input">
                    <?= Html::radio(
                        'SiteCreateForm[motionsInitiatedBy]',
                        $model->motionsInitiatedBy == SiteCreateForm::MOTION_INITIATED_LOGGED_IN,
                        ['value' => SiteCreateForm::MOTION_INITIATED_LOGGED_IN]
                    ); ?>
                </span>
            </label>
            <label class="radio-label value-3">
                <span class="title"><?= $t('motwho_all') ?></span>
                <span class="description"></span>
                <span class="input">
                    <?= Html::radio(
                        'SiteCreateForm[motionsInitiatedBy]',
                        $model->motionsInitiatedBy == SiteCreateForm::MOTION_INITIATED_ALL,
                        ['value' => SiteCreateForm::MOTION_INITIATED_ALL]
                    ); ?>
                </span>
            </label>
        </div>
    </fieldset>
    <div class="navigation">
        <button class="btn btn-lg btn-prev"><span class="icon-chevron-left"></span> <?= $t('prev') ?></button>
        <button class="btn btn-lg btn-next btn-primary"><span class="icon-chevron-right"></span> <?= $t('next') ?>
        </button>
    </div>
</div>
