Minor - Fix UI, fix js URL

pull/3432/head
Julio Montoya 4 years ago
parent 936ee2c966
commit 2e596027c5
  1. 18
      public/main/group/settings.php
  2. 1
      public/main/group/tutor_settings.php
  3. 6
      public/main/inc/lib/api.lib.php

@ -41,9 +41,14 @@ if (!$groupMember && !api_is_allowed_to_edit(false, true)) {
// Build form
$form = new FormValidator('group_edit', 'post', api_get_self().'?'.api_get_cidreq());
$form->addElement('hidden', 'action');
$form->addHtml('<div class="row">');
$form->addElement('html', '<div class="col-md-12">');
$form->addElement('header', $nameTools);
$form->addElement('html', '</div>');
$form->addHtml('</div>');
$form->addHtml('</div>');
$form->addHtml('<div class="row">');
$form->addElement('html', '<div class="col-md-6">');
// Group name
@ -63,12 +68,10 @@ $form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-6">');
$form->addElement('textarea', 'description', get_lang('Description'));
$form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-12">');
$form->addElement('header', '');
$form->addElement('html', '</div>');
$form->addHtml('</div>');
$form->addHtml('</div>');
$form->addHtml('<div class="row">');
$form->addElement('html', '<div class="col-md-6">');
// Members per group
@ -129,6 +132,7 @@ $form->addGroup(
);
$form->addElement('html', '</div>');
$form->addHtml('</div>');
$form->addElement('html', '<div class="col-md-12">');
$form->addElement('header', get_lang('Default settings for new groups'));
@ -398,8 +402,6 @@ Display::display_header($nameTools, 'Group');
$form->setDefaults($defaults);
echo GroupManager::getSettingBar('settings');
echo '<div class="row">';
$form->display();
echo '</div>';
Display :: display_footer();

@ -148,7 +148,6 @@ $group_tutors_element = $form->addElement(
'group_tutors',
get_lang('Coaches'),
$possible_users,
'style="width: 280px;"'
);
// submit button

@ -6426,10 +6426,8 @@ function api_get_jquery_ui_js()
function api_get_jqgrid_js()
{
$routePublic = Container::getRouter()->generate('home');
return api_get_css($routePublic.'build/free-jqgrid.css').PHP_EOL
.api_get_js_simple($routePublic.'build/free-jqgrid.js');
return api_get_build_css('free-jqgrid.css').PHP_EOL
.api_get_build_js('free-jqgrid.js');
}
/**

Loading…
Cancel
Save