<?php if(!defined('APPLICATION')) exit();
/* Copyright 2013 Zachary Doll */

$Badges = $this->Data('Badges');
$Username = $this->Data('Username', 'Unknown');

$this->Form->setStyles('legacy');

echo '<div id="UserBadgeForm">';
echo Wrap(sprintf(T('Yaga.Badge.GiveTo'), $Username), 'h1');
echo $this->Form->Open();
echo $this->Form->Errors();

echo Wrap(
      Wrap(
        $this->Form->Label('Yaga.Badge', 'BadgeID') .
        $this->Form->Dropdown('BadgeID', $Badges),
        'li') .

      Wrap(
        $this->Form->Label('Yaga.Badge.Reason', 'Reason') .
        $this->Form->TextBox('Reason', array('Multiline' => TRUE)),
        'li') .
      Wrap(
              Anchor(T('Cancel'), 'badge/settings'),
              'li'),
        'ul'
);

echo $this->Form->Close('Yaga.Badge.Award');

echo '</div>';
