fix actions bar add class - refs CT#8247

1.10.x
Alex Aragon 9 years ago
parent 6cd10f4fcd
commit 1f0b7589bf
  1. 3
      app/Resources/public/css/base.css
  2. BIN
      main/img/icons/32/add-class.png
  3. 3538
      main/img/icons/svg/add-class.svg
  4. 15
      main/user/class.php

@ -4156,6 +4156,9 @@ i.size-32.icon-new-work{
display:block;
width: 100%;
}
.actions #groups .bootstrap-select{
width: 300px;
}
ul.holder{
list-style: none;
margin: 0;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 53 KiB

@ -37,15 +37,16 @@ $(document).ready( function() {
});
</script>';
$actions = '';
$actionsLeft = '';
$actionsRight = '';
$usergroup = new UserGroup();
if (api_is_allowed_to_edit()) {
$actions .= '<div class="actions">';
if ($type == 'registered') {
$actions .= '<a href="class.php?'.api_get_cidreq().'&type=not_registered">'.
$actionsLeft .= '<a href="class.php?'.api_get_cidreq().'&type=not_registered">'.
Display::return_icon('add-class.png', get_lang("AddClassesToACourse"), array(), ICON_SIZE_MEDIUM).'</a>';
} else {
$actions .= '<a href="class.php?'.api_get_cidreq().'&type=registered">'.
$actionsLeft .= '<a href="class.php?'.api_get_cidreq().'&type=registered">'.
Display::return_icon('back.png', get_lang("Classes"), array(), ICON_SIZE_MEDIUM).'</a>';
$form = new FormValidator('groups', 'post', api_get_self(), '', '', FormValidator::LAYOUT_INLINE);
@ -56,9 +57,11 @@ if (api_is_allowed_to_edit()) {
];
$form->addSelect('group_filter', get_lang('Groups'), $options, ['id' => 'group_filter']);
$form->setDefaults(['group_filter' => $groupFilter]);
$actions .= $form->returnForm();
$actionsRight = $form->returnForm();
}
$actions .= '</div>';
$actions .= Display::toolbarAction('actions-class', array(0=>$actionsLeft, 1=> $actionsRight));
}
if (api_is_allowed_to_edit()) {

Loading…
Cancel
Save