Browse Source

Minor - UI changes.

Julio Montoya 11 years ago
parent
commit
3e1bc9f115
2 changed files with 5 additions and 4 deletions
  1. 2 2
      plugin/before_login/index.php
  2. 3 2
      plugin/before_login/plugin.php

+ 2 - 2
plugin/before_login/index.php

@@ -39,7 +39,7 @@ if (api_is_anonymous()) {
     $renderer->setFormTemplate('<form{attributes}><table border="0" cellpadding="5" cellspacing="0" width="100%">{content}</table></form>');
     $renderer->setElementTemplate('<tr><td>{element}</td></tr>');
 
-    $form->addElement('header', $option1);
+    $form->addElement('html', $option1);
     $form->addElement('checkbox', 'left', null, get_lang('Yes'));
     $form->addElement('button', 'submit', get_lang('Send'));
 
@@ -59,7 +59,7 @@ if (api_is_anonymous()) {
     $renderer->setFormTemplate('<form{attributes}><table border="0" cellpadding="5" cellspacing="0" width="100%">{content}</table></form>');
     $renderer->setElementTemplate('<tr><td>{element}</td></tr>');
 
-    $form->addElement('header', $option2);
+    $form->addElement('html', $option2);
     $form2->addElement('checkbox', 'right', null, get_lang('Yes'));
     $form2->addElement('button', 'submit', get_lang('Send'));
 

+ 3 - 2
plugin/before_login/plugin.php

@@ -23,17 +23,18 @@ $form = new FormValidator('form');
 $form->addElement('select', 'language', get_lang('Language'), api_get_languages_to_array());
 
 $form->addElement('header', 'Option 1');
-$form->addElement('textarea', 'option1', get_lang('Description'));
+$form->addElement('textarea', 'option1', get_lang('Description'), array('rows' => 10, 'class' => 'span6'));
 $form->addElement('text', 'option1_url', get_lang('RedirectTo'));
 
 $form->addElement('header', 'Option 2');
-$form->addElement('textarea', 'option2', get_lang('Description'));
+$form->addElement('textarea', 'option2', get_lang('Description'), array('rows' => 10, 'class' => 'span6'));
 $form->addElement('text', 'option2_url', get_lang('RedirectTo'));
 $form->addElement('button', 'submit_button', get_lang('Save'));
 
 // Get default value for form
 
 $defaults = array();
+$defaults['language'] = api_get_plugin_setting('before_login', 'language');
 $defaults['option1'] = api_get_plugin_setting('before_login', 'option1');
 $defaults['option2'] = api_get_plugin_setting('before_login', 'option2');