* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class PollResponseForm extends Form
{
protected $poll;
*
* @return void
*/
-
function __construct(Poll $poll, HTMLOutputter $out)
{
parent::__construct($out);
*
* @return int ID of the form
*/
-
function id()
{
return 'pollresponse-form';
*
* @return string class of the form
*/
-
function formClass()
{
- return 'form_settings';
+ return 'form_settings ajax';
}
/**
*
* @return string URL of the action
*/
-
function action()
{
return common_local_url('respondpoll', array('id' => $this->poll->id));
*
* @return void
*/
-
function formData()
{
$poll = $this->poll;
*
* @return void
*/
-
function formActions()
{
- $this->out->submit('submit', _m('BUTTON', 'Submit'));
+ // TRANS: Button text for submitting a poll response.
+ $this->out->submit('poll-response-submit', _m('BUTTON', 'Submit'), 'submit', 'submit');
}
}