Minor CSS group fixes

skala
Julio Montoya 13 years ago
parent 47bc3d19dc
commit 09b5a6d00f
  1. 6
      main/css/base.css
  2. 20
      main/group/group_creation.php
  3. 12
      main/group/group_edit.php

@ -75,17 +75,17 @@ button.add, button.save, button.cancel, button.refresh, button.upload, button.se
}
/* button << */
button.arrowl, button.arrowr{
button.arrowl, button.arrowr, input.arrowl, input.arrowr {
margin: 0px 15px 0px 15px;
padding:15px 18px;
background-position:7px;
}
/*including "arrowl" image*/
button.arrowl, button.arrowr {
button.arrowl, button.arrowr, input.arrowl, input.arrowr {
background-repeat:no-repeat;
}
button.arrowl:hover, button.arrowr:hover{
button.arrowl:hover, button.arrowr:hover , input.arrowl:hover, input.arrowr:hover {
background-position:7px;
}

@ -19,7 +19,6 @@ api_protect_course_script(true);
require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';
require_once api_get_path(LIBRARY_PATH).'classmanager.lib.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
/* Create the groups */
@ -134,13 +133,6 @@ elseif (isset($_POST['number_of_groups'])) {
}
$group_categories = GroupManager :: get_categories();
$group_id = GroupManager :: get_number_of_groups() + 1;
/*$tutors = GroupManager :: get_all_tutors();
$tutor_options[0] = get_lang('GroupNoTutor');
foreach ($tutors as $index => $tutor) {
$tutor_options[$tutor['user_id']] = api_get_person_name($tutor['firstname'], $tutor['lastname']);
}
$cat_options = array ();
*/
foreach ($group_categories as $index => $category) {
// Don't allow new groups in the virtual course category!
if ($category['id'] != VIRTUAL_COURSE_CATEGORY) {
@ -165,8 +157,6 @@ elseif (isset($_POST['number_of_groups'])) {
EOT;
$renderer->setElementTemplate($element_template);
//$form->addElement('header', '', $nameTools);
$form->addElement('hidden', 'action');
$form->addElement('hidden', 'number_of_groups');
$defaults = array ();
@ -196,9 +186,8 @@ EOT;
$group_el[] = & $form->createElement('text', 'group_'.$group_number.'_name');
if (api_get_setting('allow_group_categories') == 'true') {
$group_el[] = & $form->createElement('select', 'group_'.$group_number.'_category', null, $cat_options, array('id' => 'category_'.$group_number));
}
//$group_el[] = & $form->createElement('select', 'group_'.$group_number.'_tutor', null, $tutor_options, array('id' => 'tutor_'.$group_number));
$group_el[] = & $form->createElement('text', 'group_'.$group_number.'_places', null, array('size' => 3, 'id' => 'places_'.$group_number));
}
$group_el[] = & $form->createElement('text', 'group_'.$group_number.'_places', null, array('class' => 'span1', 'id' => 'places_'.$group_number));
if ($_POST['number_of_groups'] < 10000) {
if ($group_id < 10) {
@ -234,7 +223,7 @@ EOT;
$create_groups_form->addElement('header', '', $nameTools);
$group_el = array ();
$group_el[] = & $create_groups_form->createElement('static', null, null, get_lang('Create'));
$group_el[] = & $create_groups_form->createElement('text', 'number_of_groups', null, array('size' => 3));
$group_el[] = & $create_groups_form->createElement('text', 'number_of_groups', null, array('class' => 'span1'));
$group_el[] = & $create_groups_form->createElement('static', null, null, get_lang('NewGroups'));
$group_el[] = & $create_groups_form->createElement('style_submit_button', 'submit', get_lang('ProceedToCreateGroup'), 'class="save"');
$create_groups_form->addGroup($group_el, 'create_groups', null, ' ', false);
@ -339,5 +328,4 @@ EOT;
}
/* FOOTER */
Display :: display_footer();
Display :: display_footer();

@ -123,7 +123,7 @@ $form->addElement('hidden', 'referer');
$form->add_textfield('name', get_lang('GroupName'));
// Description
$form->addElement('textarea', 'description', get_lang('Description'), array ('cols' => 50, 'rows' => 6));
$form->addElement('textarea', 'description', get_lang('Description'), array ('class' => 'span6', 'rows' => 6));
// Search Members of group
@ -191,8 +191,8 @@ $group_tutors_element->setElementTemplate('
</table>
');
$group_tutors_element->setButtonAttributes('add', array('class' => 'arrowr'));
$group_tutors_element->setButtonAttributes('remove', array('class' => 'arrowl'));
$group_tutors_element->setButtonAttributes('add', array('class' => 'btn arrowr'));
$group_tutors_element->setButtonAttributes('remove', array('class' => 'btn arrowl'));
// Group members
$group_member_list = GroupManager :: get_subscribed_users($current_group['id']);
@ -223,8 +223,8 @@ $group_members_element->setElementTemplate('
</tr>
</table>');
$group_members_element->setButtonAttributes('add', array('class' => 'arrowr'));
$group_members_element->setButtonAttributes('remove', array('class' => 'arrowl'));
$group_members_element->setButtonAttributes('add', array('class' => 'btn arrowr'));
$group_members_element->setButtonAttributes('remove', array('class' => 'btn arrowl'));
$form->addFormRule('check_group_members');
@ -244,7 +244,7 @@ $form->addFormRule('check_group_members');
$form->addElement('radio', 'max_member_no_limit', get_lang('GroupLimit'), get_lang('NoLimit'), MEMBER_PER_GROUP_NO_LIMIT);
$group = array();
$group[] = & $form->createElement('radio', 'max_member_no_limit', null, get_lang('MaximumOfParticipants'), 1);
$group[] = & $form->createElement('text', 'max_member', null, array('size' => 2));
$group[] = & $form->createElement('text', 'max_member', null, array('class' => 'span1'));
$group[] = & $form->createElement('static', null, null, get_lang('GroupPlacesThis'));
$form->addGroup($group, 'max_member_group', null, '', false);
$form->addRule('max_member_group', get_lang('InvalidMaxNumberOfMembers'), 'callback', 'check_max_number_of_members');

Loading…
Cancel
Save