* Move stuff around again

* Make answers save
This commit is contained in:
Zach Copley
2011-03-21 16:51:38 -07:00
parent 73c3344cc3
commit b0ed4cb89a
10 changed files with 511 additions and 40 deletions

View File

@@ -44,7 +44,7 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
class AnswerForm extends Form
class QnaanswerForm extends Form
{
protected $question;
@@ -89,7 +89,7 @@ class AnswerForm extends Form
*/
function action()
{
return common_local_url('answer', array('id' => $this->question->id));
return common_local_url('qnanewanswer', array('id' => $this->question->id));
}
/**

View File

@@ -44,7 +44,7 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
class QuestionForm extends Form
class QnaquestionForm extends Form
{
protected $title;
protected $description;
@@ -90,7 +90,7 @@ class QuestionForm extends Form
*/
function action()
{
return common_local_url('newquestion');
return common_local_url('qnanewquestion');
}
/**

View File

@@ -44,7 +44,7 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
class AnswerForm extends Form
class QnavoteForm extends Form
{
protected $question;
@@ -89,7 +89,7 @@ class AnswerForm extends Form
*/
function action()
{
return common_local_url('answer', array('id' => $this->question->id));
return common_local_url('qnavote', array('id' => $this->question->id));
}
/**
@@ -104,7 +104,7 @@ class AnswerForm extends Form
$id = "question-" . $question->id;
$out->element('p', 'answer', $question->question);
$out->element('input', array('type' => 'text', 'name' => 'answer'));
$out->element('input', array('type' => 'text', 'name' => 'vote'));
}
/**