update toolbar actions agenda - refs #2681

pull/2715/head
Alex Aragón 7 years ago
parent 0c6d0a5d60
commit 3f28109358
  1. 2
      main/calendar/agenda_js.php
  2. 2
      main/calendar/agenda_list.php
  3. 4
      main/template/default/agenda/event_list.html.twig
  4. 1
      main/template/default/agenda/month.html.twig

@ -152,7 +152,7 @@ $tpl->assign(
$actions = $agenda->displayActions('calendar', $userId);
$tpl->assign('toolbar', $actions);
$tpl->assign('actions', $actions);
// Calendar Type : course, admin, personal
$tpl->assign('type', $type);

@ -79,7 +79,7 @@ $tpl = new Template(get_lang('Events'));
$tpl->assign('agenda_events', $events);
$tpl->assign('url', $url);
$tpl->assign('show_action', in_array($type, ['course', 'session']));
$tpl->assign('agenda_actions', $actions);
$tpl->assign('actions', $actions);
$tpl->assign('is_allowed_to_edit', api_is_allowed_to_edit());
if (api_is_allowed_to_edit()) {

@ -1,3 +1,5 @@
{% autoescape false %}
{{ agenda_actions }}
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
@ -64,3 +66,5 @@
</div>
{% endfor %}
</div>
{% endautoescape %}

@ -615,6 +615,7 @@ $(document).ready(function() {
});
});
</script>
{{ actions_div }}
{{ toolbar }}

Loading…
Cancel
Save