Ejemplo n.º 1
0
 public function initConfigForm(Am_Form $form)
 {
     $form->addTextarea('questions', array('rows' => 10, 'class' => 'el-wide'))->setLabel(___("Questions with possible answers\n" . "one question per line\n" . "question and answers should be\n" . "separated by pipe, for example\n" . "Question1?|Answer1|Answer2|Answer3\n" . "Question2?|Answer1|Answer2\n" . "register of answers does not matter"));
 }
Ejemplo n.º 2
0
 public function initConfigForm(Am_Form $form)
 {
     $form->addAdvCheckbox("isHtml")->setLabel("Is Html?");
     $form->addTextarea("text", array('cols' => 80, 'rows' => 20))->setLabel("Agreement text");
 }