ソースを参照

fix actions groups CT#7539

aragonc 9 年 前
コミット
44aa9fee94
1 ファイル変更24 行追加13 行削除
  1. 24 13
      main/group/group_overview.php

+ 24 - 13
main/group/group_overview.php

@@ -83,39 +83,50 @@ if (!isset ($_GET['origin']) || $_GET['origin'] != 'learnpath') {
     Display::display_reduced_header();
 }
 
-// Action links
-echo '<div class="actions">';
-    echo '<a href="group_creation.php?'.api_get_cidreq().'">'.
+$actions = '<a href="group_creation.php?'.api_get_cidreq().'">'.
         Display::return_icon('add.png', get_lang('NewGroupCreate'), '', ICON_SIZE_MEDIUM).'</a>';
 
-    echo GroupManager::getSearchForm();
-
     if (api_get_setting('allow_group_categories') == 'true') {
-        echo '<a href="group_category.php?'.api_get_cidreq().'&action=add_category">'.
+        $actions.= '<a href="group_category.php?'.api_get_cidreq().'&action=add_category">'.
             Display::return_icon('new_folder.png', get_lang('AddCategory'), '', ICON_SIZE_MEDIUM).'</a>';
     } else {
-        echo '<a href="group_category.php?'.api_get_cidreq().'&id=2">'.
+        $actions.= '<a href="group_category.php?'.api_get_cidreq().'&id=2">'.
             Display::return_icon('settings.png', get_lang('PropModify'), '', ICON_SIZE_MEDIUM).'</a>';
     }
-    echo  '<a href="import.php?'.api_get_cidreq().'&action=import">'.
+    $actions.= '<a href="import.php?'.api_get_cidreq().'&action=import">'.
         Display::return_icon('import_csv.png', get_lang('Import'), '', ICON_SIZE_MEDIUM).'</a>';
 
-    echo  '<a href="group_overview.php?'.api_get_cidreq().'&action=export_all&type=csv">'.
+    $actions.= '<a href="group_overview.php?'.api_get_cidreq().'&action=export_all&type=csv">'.
         Display::return_icon('export_csv.png', get_lang('Export'), '', ICON_SIZE_MEDIUM).'</a>';
 
-    echo '<a href="group_overview.php?'.api_get_cidreq().'&action=export&type=xls">'.
+    $actions.= '<a href="group_overview.php?'.api_get_cidreq().'&action=export&type=xls">'.
     Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).'</a>';
 
-   echo  '<a href="group_overview.php?'.api_get_cidreq().'&action=export_pdf">'.
+    $actions.= '<a href="group_overview.php?'.api_get_cidreq().'&action=export_pdf">'.
         Display::return_icon('pdf.png', get_lang('ExportToPDF'), '', ICON_SIZE_MEDIUM).'</a>';
 
-    echo '<a href="group.php?'.api_get_cidreq().'">'.
+    $actions.= '<a href="group.php?'.api_get_cidreq().'">'.
         Display::return_icon('group.png', get_lang('Groups'),'',ICON_SIZE_MEDIUM).'</a>';
 
 
-    echo '<a href="../user/user.php?'.api_get_cidreq().'">'.
+    $actions.= '<a href="../user/user.php?'.api_get_cidreq().'">'.
     Display::return_icon('user.png', get_lang('GoTo').' '.get_lang('Users'), '', ICON_SIZE_MEDIUM).'</a>';
 
+// Action links
+echo '<div class="actions">';
+echo '<div class="row">';
+echo '<div class="col-md-6">';
+echo $actions;
+echo '</div>';
+echo '<div class="col-md-6">';
+echo '<div class="pull-right">';
+echo GroupManager::getSearchForm();
+echo '</div>';
+echo '</div>';
+echo '</div>';
+    
+    
+
 echo '</div>';
 
 echo GroupManager::getOverview($courseId, $keyword);