diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index eea9d23fb0..b2c69d54d8 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -303,7 +303,7 @@ ul#navigation .report a { .actions { background:#ffffff; border:1px solid #dddddd; - padding: 15px; + padding: 10px; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; @@ -341,18 +341,41 @@ ul#navigation .report a { .muted { color: #999999 !important; } -.actions a { +.actions .btn-default{ + padding: 6px; + border: 1px solid #DDD +} +/* .actions a img{ + margin-right: 5px; +}*/ +.actions a{ + border: 1px solid #ddd; + border-radius: 5px; display: inline-block; - margin-right: 10px; + margin-left: 5px; + padding: 5px; + background: #ffffff; /* Old browsers */ + background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ + background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ +} +.actions a:hover{ + background: #f4f4f4; /* Old browsers */ + background: -moz-linear-gradient(top, #f4f4f4 0%, #dddddd 71%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f4f4), color-stop(71%,#dddddd)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #f4f4f4 0%,#dddddd 71%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #f4f4f4 0%,#dddddd 71%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, #f4f4f4 0%,#dddddd 71%); /* IE10+ */ + background: linear-gradient(to bottom, #f4f4f4 0%,#dddddd 71%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#dddddd',GradientType=0 ); /* IE6-9 */ } .actions .btn-toolbar { margin : 0px; } -.actions span { - display: inline-block; - margin-right: 10px; - vertical-align:middle; -} .actions form { margin-right: 10px; vertical-align:middle; @@ -848,7 +871,7 @@ a.personal_agenda:hover, a.personal_agenda:hover { } .right { - float:right !important; + text-align: right; } /* Nice buttons v2 */ @@ -2800,7 +2823,8 @@ form .formw .freeze { line-height: 18px; padding-top: 10px; padding-bottom: 10px; - text-align: center; + padding-left: 10px; + padding-right: 10px; } .data_table th { @@ -3401,6 +3425,82 @@ div#no-data-view div.controls { padding-top: 1px; } +/* styles for the star rater +.star-rating{ + list-style:none; + margin: 0px; + padding:0px; + width: 125px; + height: 25px; + position: relative; + overflow:hidden; + background: url(../../main/img/alt_star.png) top left repeat-x; +} +.star-rating li{ + padding:0px; + margin:0px; + width:25px; + height:25px; + float: left; +} +.star-rating li a{ + display:block; + width:25px; + height: 25px; + line-height:25px; + text-decoration: none; + text-indent: -9000px; + z-index: 20; + position: absolute; + padding: 0px; + overflow:hidden; +} +.star-rating li a:hover{ + background: url(../../main/img/alt_star.png) left bottom; + z-index: 2; + left: 0px; + border:none; +} +.star-rating a.one-star{ + left: 0px; +} +.star-rating a.one-star:hover{ + width:25px; +} +.star-rating a.two-stars{ + left:25px; +} +.star-rating a.two-stars:hover{ + width: 50px; +} +.star-rating a.three-stars{ + left: 50px; +} +.star-rating a.three-stars:hover{ + width: 75px; +} +.star-rating a.four-stars{ + left: 75px; +} +.star-rating a.four-stars:hover{ + width: 100px; +} +.star-rating a.five-stars{ + left: 100px; +} +.star-rating a.five-stars:hover{ + width: 125px; +} +.star-rating li.current-rating{ + background: url(../../main/img/alt_star.png) left center; + position: absolute; + height: 25px; + display: block; + text-indent: -9000px; + z-index: 1; +} +remove halo effect in firefox */ + /* styles for the star rater */ .star-rating{ list-style:none; @@ -3475,7 +3575,7 @@ div#no-data-view div.controls { text-indent: -9000px; z-index: 1; } -/* remove halo effect in firefox */ + a:active{ outline: none; } @@ -3915,20 +4015,34 @@ a.forum_group_link { text-align: center; } .new_actions { - background-color: #EEEEEE; - background-image: -moz-linear-gradient(center top , #F5F5F5 0%, #EEEEEE 100%); - background-repeat: repeat-x; + background: #ffffff; /* Old browsers */ + background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ + background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ border: 1px solid #E5E5E5; border-radius: 4px 4px 4px 4px; - height: 53px; + min-height: 50px; } .new_actions .nav > li > a { - border-left: 1px solid #F5F5F5; + border-radius: 0 0 0 0; border-right: 1px solid #E5E5E5; margin: 0; - padding-bottom: 11px; - padding-top: 11px; + padding: 10px; +} +.new_actions .nav li a:hover{ + background: #f4f4f4; /* Old browsers */ + background: -moz-linear-gradient(top, #f4f4f4 0%, #dddddd 71%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f4f4), color-stop(71%,#dddddd)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #f4f4f4 0%,#dddddd 71%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #f4f4f4 0%,#dddddd 71%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, #f4f4f4 0%,#dddddd 71%); /* IE10+ */ + background: linear-gradient(to bottom, #f4f4f4 0%,#dddddd 71%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#dddddd',GradientType=0 ); /* IE6-9 */ } .new_actions-fixed { border-color: #D5D5D5; @@ -3940,17 +4054,25 @@ a.forum_group_link { top: 0px; z-index: 1030; } -.new_actions .nav > .active > a, .new_actions .nav > .active > a:hover { - background-color: #E9E9E9; +.new_actions .nav .active a:hover { + background: #E9E9E9; border-left: 0 none; border-right-color: #DDDDDD; box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05) inset; color: #777777; - padding-left: 13px; } .new_actions .nav-tabs > li > a, .new_actions .nav-pills > li > a { - padding-left: 6px; - padding-right: 6px; + padding:8px; +} +.new_actions .nav-pills li.active a{ + background: #dddddd; /* Old browsers */ + background: -moz-linear-gradient(top, #dddddd 10%, #f4f4f4 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(10%,#dddddd), color-stop(100%,#f4f4f4)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #dddddd 10%,#f4f4f4 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #dddddd 10%,#f4f4f4 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, #dddddd 10%,#f4f4f4 100%); /* IE10+ */ + background: linear-gradient(to bottom, #dddddd 10%,#f4f4f4 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dddddd', endColorstr='#f4f4f4',GradientType=0 ); /* IE6-9 */ } .subnav .nav > li > .logout { padding-top:8px; @@ -4992,7 +5114,8 @@ i.size-32.icon-new-work{ display: inline-block; } .actions .form-inline { - display:inline-block; + display:block; + width: 100%; } ul.holder{ list-style: none; @@ -5823,7 +5946,10 @@ div#chat-remote-video video { font-size:22px; margin-top:5px; } -#work-list{ +#student-list-work{ + padding: 10px; +} +#work-list, #session-list{ padding: 10px; border:1px solid #dddddd; border-radius: 5px; @@ -5831,6 +5957,12 @@ div#chat-remote-video video { -webkit-border-radius: 5px; margin-bottom: 10px; } +.list-category{ + display: inline-block; +} +.list-category .chosen-container{ + width: 450px !important; +} .ui-accordion .ui-accordion-content-active{ } @@ -5884,34 +6016,35 @@ div#chat-remote-video video { .ui-jqgrid .ui-pg-table td{ font-size: 12px; } -/* .ui-state-hover,.ui-widget-content .ui-state-hover, -.ui-widget-header .ui-state-hover, -.ui-state-focus, -.ui-widget-content .ui-state-focus, -.ui-widget-header .ui-state-focus{ - border:none; - background: #ECF0F1; - font-weight:normal; - color:#212121 -} -.ui-state-hover a, -.ui-state-hover a:hover, -.ui-state-hover a:link, -.ui-state-hover a:visited, -.ui-state-focus a, -.ui-state-focus a:hover, -.ui-state-focus a:link, -.ui-state-focus a:visited { - color:#212121;text-decoration:none -} -.ui-state-active, -.ui-widget-content .ui-state-active, -.ui-widget-header .ui-state-active{ - border:1px solid #aaa; - background: #fff; - font-weight:normal; - color:#212121 -}*/ +.ui-jqgrid .ui-widget-content .ui-state-default{ + background: #EEEEEE; +} +.ui-tabs .ui-widget-header{ + background: none; + border-top: none; + border-left: none; + border-right: none; + border-radius: 0px; + border-bottom-color: #dedede; +} +.ui-tabs.ui-widget-content{ + border: none; +} + +.ui-tabs .ui-state-default, .ui-tabs .ui-widget-content .ui-state-default, .ui-tabs .ui-widget-header .ui-state-default{ + background: #fff; +} +.ui-tabs .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active{ + border-color: #dedede; +} +.ui-widget{ + font-family: "Open Sans",sans-serif; +} +.ui-tabs .ui-widget-content a.btn-success{ + color: #fff; +} + + .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary{ @@ -5928,6 +6061,12 @@ div#chat-remote-video video { .ui-jqgrid .ui-jqgrid-htable th div{ height: 25px; } +.ui-jqgrid .ui-state-highlight, .ui-jqgrid .ui-widget-content .ui-state-highlight,.ui-jqgrid .ui-widget-header .ui-state-highlight{ + background: #F7F7F7; +} +.ui-jqgrid .ui-state-hover, .ui-jqgrid .ui-widget-content .ui-state-hover,.ui-jqgrid .ui-widget-header .ui-state-hover{ + background: #F7F7F7; +} /* ui diglog */ .ui-dialog .ui-widget-header{ border:none; @@ -5940,7 +6079,8 @@ div#chat-remote-video video { .ui-dialog .ui-dialog-buttonpane{ border-top: 1px solid #DDD; } -/*.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { + +.ui-button.ui-widget.ui-state-default { background-color:#f5f5f5; background-image:-moz-linear-gradient(top,#fff,#e6e6e6); background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6)); @@ -5955,12 +6095,7 @@ div#chat-remote-video video { box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05) } -.ui-state-hover, -.ui-widget-content .ui-state-hover, -.ui-widget-header .ui-state-hover, -.ui-state-focus, -.ui-widget-content .ui-state-focus, -.ui-widget-header .ui-state-focus{ +.ui-button.ui-widget.ui-state-hover{ border-width: 1px; border-style:solid; border-color: #e6e6e6 #e6e6e6 #bfbfbf; @@ -5969,7 +6104,14 @@ div#chat-remote-video video { background-color: #E6E6E6; font-weight:normal; color:#333333; -}*/ +} + + + +.select2-container .select2-selection--single{ + height: 32px !important; + border-color: #CCCCCC !important; +} #dialog-form .dialog-form-content{ font-size: 12px; } @@ -6317,9 +6459,12 @@ a.sessionView { padding-left: 10px; } #course-list.data_table .title{ - width: 360px; + width: 390px; padding-left: 0; } +.actions label{ + display: none; +} /* CSS NEW TOP ******************************************************************************/ /* CSS Responsive */ @media (min-width: 1025px) and (max-width: 1200px) { diff --git a/main/admin/course_list.php b/main/admin/course_list.php index 8ae3d1f9ae..94fbf124ff 100755 --- a/main/admin/course_list.php +++ b/main/admin/course_list.php @@ -359,7 +359,7 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced') { $form = new FormValidator('search_simple', 'get', '', '', array(), FormValidator::LAYOUT_INLINE); $form->addElement('text', 'keyword', null, array('id' => 'course-search-keyword')); $form->addButtonSearch(get_lang('SearchCourse')); - $form->addElement('static', 'search_advanced_link', null, ''.get_lang('AdvancedSearch').''); + $advanced .= ' '.get_lang('AdvancedSearch').''; // Create a filter by session $sessionFilter = new FormValidator('course_filter', 'get', '', '', array(), FormValidator::LAYOUT_INLINE); @@ -381,7 +381,25 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced') { ) ); $courseListUrl = api_get_self(); - $actions = ' + $actions .= '
'; + $actions .= '
'; + $actions .= $form->return_form(); + $actions .= '
'; + $actions .= '
'; + $actions .= $sessionFilter->return_form(); + $actions .= '
'; + $actions .= '
'; + + $actions .= $advanced; + $actions .= ''; + $actions .= '
'; + $actions .= '
'; + $actions .= ' '; - $actions .= '
'; - $actions .= ''.Display::return_icon('new_course.png', get_lang('AddCourse'),'',ICON_SIZE_MEDIUM).' '; - if (api_get_setting('course_validation') == 'true') { - $actions .= ''.Display::return_icon('course_request_pending.png', get_lang('ReviewCourseRequests'),'',ICON_SIZE_MEDIUM).''; - } - $actions .= '
'; - - $actions .= '
'; - $actions .= $sessionFilter->return_form(); - $actions .= '
'; - - $actions .= $form->return_form(); + + + if (isset($_GET['session_id']) && !empty($_GET['session_id'])) { // Create a sortable table with the course data filtered by session diff --git a/main/admin/user_list.php b/main/admin/user_list.php index 3f23a464b2..bcc7167ac4 100755 --- a/main/admin/user_list.php +++ b/main/admin/user_list.php @@ -741,10 +741,10 @@ $form->addElement( $actions = ''; if (api_is_platform_admin()) { - $actions .= ''. + $actions .= '
'. ''. Display::return_icon('new_user.png',get_lang('AddUsers'),'',ICON_SIZE_MEDIUM).''. - ''; + '
'; } $actions .= $form->return_form(); diff --git a/main/course_description/listing.php b/main/course_description/listing.php index 06b4831337..b13fad8d7b 100755 --- a/main/course_description/listing.php +++ b/main/course_description/listing.php @@ -77,6 +77,7 @@ if (isset($descriptions) && count($descriptions) > 0) { echo '
'; echo $description['content']; echo '
'; + } } } else { diff --git a/main/document/document.php b/main/document/document.php index 1ccabe7e07..b3d71c694b 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -1502,32 +1502,19 @@ if ($groupId != 0) { if (!isset($folders) || $folders === false) { $folders = array(); } - +$btngroup= array('class' => 'btn btn-default'); $actions = '
'; -if (!$is_certificate_mode) { - /* BUILD SEARCH FORM */ - - $form = new FormValidator( - 'search_document', - 'get', - api_get_self().'?'.api_get_cidreq(), - '', - array(), - FormValidator::LAYOUT_INLINE - ); - $form->addText('keyword', '', false, array('class' => 'col-md-2')); - $form->addElement('hidden', 'cidReq', api_get_course_id()); - $form->addElement('hidden', 'id_session', api_get_session_id()); - $form->addElement('hidden', 'gidReq', $groupId); - $form->addButtonSearch(get_lang('Search')); - $actions .= $form->returnForm(); -} +$actions .= '
'; +$actions .= '
'; /* GO TO PARENT DIRECTORY */ + if ($curdirpath != '/' && $curdirpath != $group_properties['directory'] && !$is_certificate_mode) { + $actions .= ''; $actions .= Display::return_icon('folder_up.png', get_lang('Up'), '', ICON_SIZE_MEDIUM); $actions .= ''; + } if ($is_certificate_mode && $curdirpath != '/certificates') { @@ -1649,6 +1636,48 @@ if ($is_allowed_to_edit || ); } } +require 'document_slideshow.inc.php'; +if ($image_present && !isset($_GET['keyword'])) { + $actions .= Display::url( + Display::return_icon('slideshow.png', get_lang('ViewSlideshow'), '', ICON_SIZE_MEDIUM), + api_get_path(WEB_CODE_PATH).'document/slideshow.php?'.api_get_cidreq().'&curdirpath='.$curdirpathurl + ); +} + +if (api_is_allowed_to_edit(null, true)) { + $actions .= Display::url( + Display::return_icon('percentage.png', get_lang('DocumentQuota'), '', ICON_SIZE_MEDIUM), + api_get_path(WEB_CODE_PATH).'document/document_quota.php?'.api_get_cidreq() + ); +} + +$actions .= '
'; +$actions .= '
'; +$actions .= '
'; +if (!$is_certificate_mode) { + /* BUILD SEARCH FORM */ + + $form = new FormValidator( + 'search_document', + 'get', + api_get_self().'?'.api_get_cidreq(), + '', + array(), + FormValidator::LAYOUT_INLINE + ); + $form->addText('keyword', '', false, array('class' => 'col-md-2')); + $form->addElement('hidden', 'cidReq', api_get_course_id()); + $form->addElement('hidden', 'id_session', api_get_session_id()); + $form->addElement('hidden', 'gidReq', $groupId); + $form->addButtonSearch(get_lang('Search')); + $actions .= $form->returnForm(); +} +$actions .= '
'; +$actions .= '
'; +$actions .= '
'; + + + $table_footer = ''; $total_size = 0; @@ -1825,20 +1854,7 @@ if (!is_null($documentAndFolders)) { } } -require 'document_slideshow.inc.php'; -if ($image_present && !isset($_GET['keyword'])) { - $actions .= Display::url( - Display::return_icon('slideshow.png', get_lang('ViewSlideshow'), '', ICON_SIZE_MEDIUM), - api_get_path(WEB_CODE_PATH).'document/slideshow.php?'.api_get_cidreq().'&curdirpath='.$curdirpathurl - ); -} -if (api_is_allowed_to_edit(null, true)) { - $actions .= Display::url( - Display::return_icon('percentage.png', get_lang('DocumentQuota'), '', ICON_SIZE_MEDIUM), - api_get_path(WEB_CODE_PATH).'document/document_quota.php?'.api_get_cidreq() - ); -} $actions .= '
'; if (!empty($moveTo)) { diff --git a/main/group/group.php b/main/group/group.php index 57e202b215..ee56f024e1 100755 --- a/main/group/group.php +++ b/main/group/group.php @@ -162,13 +162,14 @@ Display::display_header(get_lang('Groups')); Display::display_introduction_section(TOOL_GROUP); echo '
'; + +echo '
'; +echo '
'; if (api_is_allowed_to_edit(false, true)) { echo ''. Display::return_icon('add.png', get_lang('NewGroupCreate'), '', ICON_SIZE_MEDIUM).''; - echo GroupManager::getSearchForm(); - if (api_get_setting('allow_group_categories') == 'true') { echo ''. Display::return_icon('new_folder.png', get_lang('AddCategory'), '', ICON_SIZE_MEDIUM).''; @@ -192,6 +193,14 @@ if (api_is_allowed_to_edit(false, true)) { echo ''. Display::return_icon('group_summary.png', get_lang('GroupOverview'), '', ICON_SIZE_MEDIUM).''; } +echo '
'; +echo '
'; +echo '
'; +echo GroupManager::getSearchForm(); +echo '
'; +echo '
'; +echo '
'; + $group_cats = GroupManager::get_categories(api_get_course_id()); echo '
'; @@ -244,7 +253,7 @@ if (api_get_setting('allow_group_categories') == 'true') { echo Display::page_header( Security::remove_XSS($category['title'].' '. $label.' ').$actions, null, - 'h2', + 'h4', false ); diff --git a/main/group/group_overview.php b/main/group/group_overview.php index 669e824269..8acce58ca6 100755 --- a/main/group/group_overview.php +++ b/main/group/group_overview.php @@ -83,39 +83,50 @@ if (!isset ($_GET['origin']) || $_GET['origin'] != 'learnpath') { Display::display_reduced_header(); } -// Action links -echo '
'; - echo ''. +$actions = ''. Display::return_icon('add.png', get_lang('NewGroupCreate'), '', ICON_SIZE_MEDIUM).''; - echo GroupManager::getSearchForm(); - if (api_get_setting('allow_group_categories') == 'true') { - echo ''. + $actions.= ''. Display::return_icon('new_folder.png', get_lang('AddCategory'), '', ICON_SIZE_MEDIUM).''; } else { - echo ''. + $actions.= ''. Display::return_icon('settings.png', get_lang('PropModify'), '', ICON_SIZE_MEDIUM).''; } - echo ''. + $actions.= ''. Display::return_icon('import_csv.png', get_lang('Import'), '', ICON_SIZE_MEDIUM).''; - echo ''. + $actions.= ''. Display::return_icon('export_csv.png', get_lang('Export'), '', ICON_SIZE_MEDIUM).''; - echo ''. + $actions.= ''. Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).''; - echo ''. + $actions.= ''. Display::return_icon('pdf.png', get_lang('ExportToPDF'), '', ICON_SIZE_MEDIUM).''; - echo ''. + $actions.= ''. Display::return_icon('group.png', get_lang('Groups'),'',ICON_SIZE_MEDIUM).''; - echo ''. + $actions.= ''. Display::return_icon('user.png', get_lang('GoTo').' '.get_lang('Users'), '', ICON_SIZE_MEDIUM).''; +// Action links +echo '
'; +echo '
'; +echo '
'; +echo $actions; +echo '
'; +echo '
'; +echo '
'; +echo GroupManager::getSearchForm(); +echo '
'; +echo '
'; +echo '
'; + + + echo '
'; echo GroupManager::getOverview($courseId, $keyword); diff --git a/main/img/icons/128/listwork.png b/main/img/icons/128/listwork.png new file mode 100644 index 0000000000..c86fd317d4 Binary files /dev/null and b/main/img/icons/128/listwork.png differ diff --git a/main/img/icons/22/listwork.png b/main/img/icons/22/listwork.png new file mode 100644 index 0000000000..91e290adcc Binary files /dev/null and b/main/img/icons/22/listwork.png differ diff --git a/main/img/icons/32/listwork.png b/main/img/icons/32/listwork.png new file mode 100644 index 0000000000..7af981760b Binary files /dev/null and b/main/img/icons/32/listwork.png differ diff --git a/main/img/icons/48/listwork.png b/main/img/icons/48/listwork.png new file mode 100644 index 0000000000..21608694d4 Binary files /dev/null and b/main/img/icons/48/listwork.png differ diff --git a/main/img/icons/64/listwork.png b/main/img/icons/64/listwork.png new file mode 100644 index 0000000000..d6bb7c6fa4 Binary files /dev/null and b/main/img/icons/64/listwork.png differ diff --git a/main/img/icons/svg/listwork.svg b/main/img/icons/svg/listwork.svg new file mode 100644 index 0000000000..f96d0772fc --- /dev/null +++ b/main/img/icons/svg/listwork.svg @@ -0,0 +1,1365 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/main/inc/lib/agenda.lib.php b/main/inc/lib/agenda.lib.php index b1e162f4fb..d8e53deb84 100644 --- a/main/inc/lib/agenda.lib.php +++ b/main/inc/lib/agenda.lib.php @@ -2459,23 +2459,31 @@ class Agenda */ public function displayActions($view, $filter = 0) { - $courseInfo = api_get_course_info(); - - $actions = "". + $courseInfo = api_get_course_info(); + + $toolbar = ''; + $toolbar .= "". Display::return_icon('calendar.png', get_lang('Calendar'), '', ICON_SIZE_MEDIUM).""; $courseCondition = ''; if (!empty($courseInfo)) { $courseCondition = api_get_cidreq(); } - $actions .= "". + + $toolbar .= "". Display::return_icon('week.png', get_lang('AgendaList'), '', ICON_SIZE_MEDIUM).""; - + + if (api_is_allowed_to_edit(false, true) || (api_get_course_setting('allow_user_edit_agenda') && !api_is_anonymous()) && api_is_allowed_to_session_edit(false, true) || GroupManager::user_has_access(api_get_user_id(), api_get_group_id(), GroupManager::GROUP_TOOL_CALENDAR) && GroupManager::is_tutor_of_group(api_get_user_id(), api_get_group_id()) ) { + $toolbar .= "". + Display::return_icon('new_event.png', get_lang('AgendaAdd'), '', ICON_SIZE_MEDIUM).""; + $toolbar .= "". + Display::return_icon('import_calendar.png', get_lang('ICalFileImport'), '', ICON_SIZE_MEDIUM).""; + if ($this->type == 'course') { $form = null; if (!isset($_GET['action'])) { @@ -2495,17 +2503,10 @@ class Agenda $selectedValues = $this->parseAgendaFilter($filter); $this->showToForm($form, $selectedValues, $attributes); $form = $form->returnForm(); - } - $actions .= "". - Display::return_icon('new_event.png', get_lang('AgendaAdd'), '', ICON_SIZE_MEDIUM).""; - $actions .= "". - Display::return_icon('import_calendar.png', get_lang('ICalFileImport'), '', ICON_SIZE_MEDIUM).""; - if ($view == 'calendar') { - $actions .= $form; - } + } } } - + if (api_is_platform_admin() || api_is_teacher() || api_is_student_boss() || @@ -2541,12 +2542,19 @@ class Agenda $form->addButtonReset(get_lang('Reset')); $form = $form->returnForm(); } - - if ($view == 'calendar') { - $actions .= $form; - } } } + + $actions = '
'; + $actions .= '
'; + if ($view == 'calendar') { + $actions .= $form; + } + $actions .= '
'; + $actions .= '
'; + $actions .= $toolbar; + $actions .= '
'; + $actions .= '
'; return $actions; } diff --git a/main/inc/lib/formvalidator/Element/SelectAjax.php b/main/inc/lib/formvalidator/Element/SelectAjax.php index 7fa925ab63..66c07b2114 100644 --- a/main/inc/lib/formvalidator/Element/SelectAjax.php +++ b/main/inc/lib/formvalidator/Element/SelectAjax.php @@ -46,7 +46,7 @@ class SelectAjax extends HTML_QuickForm_select $defaultValues = empty($defaultValues) ? [] : $defaultValues; $width = 'element'; - $givenWidth = $this->getAttribute('width'); + $givenWidth = '300'; if (!empty($givenWidth)) { $width = $givenWidth; } diff --git a/main/inc/lib/javascript/chosen/chosen.css b/main/inc/lib/javascript/chosen/chosen.css index d995fa51b0..c8f5a3e554 100755 --- a/main/inc/lib/javascript/chosen/chosen.css +++ b/main/inc/lib/javascript/chosen/chosen.css @@ -162,8 +162,8 @@ This file is generated by `grunt build`, do not edit it by hand. position: relative; overflow-x: hidden; overflow-y: auto; - margin: 0 4px 4px 0; - padding: 0 0 0 4px; + margin: 0; + padding: 0; max-height: 240px; -webkit-overflow-scrolling: touch; } diff --git a/main/inc/lib/pear/HTML/QuickForm/select.php b/main/inc/lib/pear/HTML/QuickForm/select.php index d885c4e8be..4a7c76a768 100755 --- a/main/inc/lib/pear/HTML/QuickForm/select.php +++ b/main/inc/lib/pear/HTML/QuickForm/select.php @@ -550,7 +550,7 @@ class HTML_QuickForm_select extends HTML_QuickForm_element $this->setName($myName); } - $strHtml .= $tabs . '\n"; + $strHtml .= $tabs . ' - - - - - - - - - - - - - - -
  
- -
  -
- -