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">';
|
2013-12-04 14:09:26 -06:00
|
|
|
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(
|
2013-12-04 14:09:26 -06:00
|
|
|
$this->Form->Label('Yaga.Badge', 'BadgeID') .
|
2013-11-13 16:17:08 -06:00
|
|
|
$this->Form->Dropdown('BadgeID', $Badges),
|
|
|
|
'li') .
|
2013-12-18 21:38:12 -05:00
|
|
|
|
2013-11-13 16:17:08 -06:00
|
|
|
Wrap(
|
2014-08-26 15:49:47 -05:00
|
|
|
$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'
|
|
|
|
);
|
|
|
|
|
2013-12-04 14:09:26 -06:00
|
|
|
echo $this->Form->Close('Yaga.Badge.Award');
|
2013-11-13 16:17:08 -06:00
|
|
|
|
|
|
|
echo '</div>';
|