31 lines
773 B
PHP
Raw Permalink Normal View History

2013-11-13 16:17:08 -06:00
<?php if(!defined('APPLICATION')) exit();
/* Copyright 2013 Zachary Doll */
$Badges = $this->Data('Badges');
$Username = $this->Data('Username', 'Unknown');
echo '<div id="UserBadgeForm">';
echo Wrap(sprintf(T('Yaga.Badge.GiveTo'), $Username), 'h1');
2013-11-13 16:17:08 -06:00
echo $this->Form->Open();
echo $this->Form->Errors();
echo Wrap(
Wrap(
$this->Form->Label('Yaga.Badge', 'BadgeID') .
2013-11-13 16:17:08 -06:00
$this->Form->Dropdown('BadgeID', $Badges),
'li') .
2013-11-13 16:17:08 -06:00
Wrap(
$this->Form->Label('Yaga.Badge.Reason', 'Reason') .
2013-11-13 16:17:08 -06:00
$this->Form->TextBox('Reason', array('Multiline' => TRUE)),
'li') .
Wrap(
Anchor(T('Cancel'), 'badge/settings'),
'li'),
'ul'
);
echo $this->Form->Close('Yaga.Badge.Award');
2013-11-13 16:17:08 -06:00
echo '</div>';