Merge pull request #5739 from rabuzarus/20180906_-_fix_non_present_element

Frio - bugfix - don't show new event button if the button isn't available
This commit is contained in:
Michael Vogel 2018-09-06 13:23:58 +00:00 committed by GitHub
commit 9c0b80142d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,13 @@
{{include file="section_title.tpl" title=$title pullright=1}} {{include file="section_title.tpl" title=$title pullright=1}}
{{* The link to create a new event *}} {{* The link to create a new event *}}
{{if $new_event.0}}
<div class="pull-right" id="new-event-link"> <div class="pull-right" id="new-event-link">
<button type="button" class="btn-link page-action faded-icon" onclick="addToModal('{{$new_event.0}}')" title="{{$new_event.1}}" data-toggle="tooltip"> <button type="button" class="btn-link page-action faded-icon" onclick="addToModal('{{$new_event.0}}')" title="{{$new_event.1}}" data-toggle="tooltip">
<i class="fa fa-plus"></i> <i class="fa fa-plus"></i>
</button> </button>
</div> </div>
{{/if}}
{{* We create our own fullcallendar header (with title & calendar view *}} {{* We create our own fullcallendar header (with title & calendar view *}}
<div id="fc-header" class="clear"> <div id="fc-header" class="clear">