*/
function action()
{
- return common_local_url('qnareviseanswer', array('id' => $this->question->id));
+ return common_local_url('qnareviseanswer');
}
/**
*/
function formData()
{
- $question = $this->question;
- $out = $this->out;
- $id = "question-" . $question->id;
-
- $out->element('p', 'Your answer to:', $question->title);
- $out->textarea('answerText', 'You said:', $this->answer->content);
+ $out = $this->out;
+ $out->element('p', 'revise-answer', 'Your answer');
+ $id = "answer-" . $this->answer->id;
+ $out->hidden('id', $id);
+ $out->textarea('answer', 'answer', $this->answer->content);
}
/**
*/
function formActions()
{
- // TRANS: Button text for submitting a poll response.
+ // TRANS: Button text for submitting a revised answer.
$this->out->submit('submit', _m('BUTTON', 'Submit'));
}
}