Minor - UI fixes

pull/2650/head
Julio Montoya 7 years ago
parent 5d1e46c001
commit c4bdec1600
  1. 13
      main/inc/lib/display.lib.php
  2. 3
      main/template/default/agenda/month.html.twig
  3. 2
      main/upload/upload.document.php

@ -2121,15 +2121,16 @@ class Display
*/
public static function groupButtonWithDropDown($title, $elements, $alignToRight = false)
{
$html = '<div class="btn-group">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
$id = uniqid('dropdown', true);
$html = '<div class="btn-group" role="group">
<button id = "'.$id.'" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
'.$title.'
<span class="caret"></span></button>
<ul class="dropdown-menu '.($alignToRight ? 'dropdown-menu-right' : '').'">';
</button>
<div class="dropdown-menu aria-labelledby="'.$id.'" '.($alignToRight ? 'dropdown-menu-right' : '').'">';
foreach ($elements as $item) {
$html .= self::tag('li', self::url($item['title'], $item['href']));
$html .= self::tag('li', self::url($item['title'], $item['href'], ['class' => 'dropdown-item']));
}
$html .= '</ul>
$html .= '</div>
</div>';
return $html;

@ -1,3 +1,4 @@
{% autoescape false %}
<style>
.fc-day-grid-event > .fc-content {
white-space: normal;
@ -789,3 +790,5 @@ $(document).ready(function() {
{{ "Loading" | get_lang }}...
</div>
<div id="calendar"></div>
{% endautoescape %}

@ -36,7 +36,7 @@ if (!DocumentManager::get_document_id($_course, $path)) {
$nameTools = get_lang('UplUploadDocument');
$interbreadcrumb[] = [
"url" => api_get_path(WEB_CODE_PATH)."document/document.php?curdirpath=".urlencode($path).'&'.api_get_cidreq(),
"name" => $langDocuments,
"name" => get_lang('Documents'),
];
Display::display_header($nameTools, "Doc");
//show the title

Loading…
Cancel
Save