mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
do not allow adding events and showing tasks
This commit is contained in:
parent
84550836c8
commit
833ff8f7da
|
@ -334,7 +334,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
echo " </li>\n";
|
echo " </li>\n";
|
||||||
echo " </ul>\n";
|
echo " </ul>\n";
|
||||||
|
|
||||||
if($this->params['enablemenutasks']) {
|
if($this->params['enablemenutasks'] && !$this->params['user']->isGuest()) {
|
||||||
echo " <div id=\"menu-tasks\">";
|
echo " <div id=\"menu-tasks\">";
|
||||||
echo " <div class=\"ajax\" data-no-spinner=\"true\" data-view=\"Tasks\" data-action=\"menuTasks\"></div>";
|
echo " <div class=\"ajax\" data-no-spinner=\"true\" data-view=\"Tasks\" data-action=\"menuTasks\"></div>";
|
||||||
// echo " <ul id=\"main-menu-tasks\" class=\"nav pull-right\">\n";
|
// echo " <ul id=\"main-menu-tasks\" class=\"nav pull-right\">\n";
|
||||||
|
|
|
@ -224,6 +224,8 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
|
$dms = $this->params['dms'];
|
||||||
|
$user = $this->params['user'];
|
||||||
$strictformcheck = $this->params['strictformcheck'];
|
$strictformcheck = $this->params['strictformcheck'];
|
||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
?>
|
?>
|
||||||
|
@ -232,6 +234,7 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
|
||||||
$('#calendar').fullCalendar({
|
$('#calendar').fullCalendar({
|
||||||
height: $(window).height()-210,
|
height: $(window).height()-210,
|
||||||
locale: '<?php echo substr($this->params['session']->getLanguage(), 0, 2); ?>',
|
locale: '<?php echo substr($this->params['session']->getLanguage(), 0, 2); ?>',
|
||||||
|
<?php if(!$user->isGuest()) { ?>
|
||||||
customButtons: {
|
customButtons: {
|
||||||
addEventButton: {
|
addEventButton: {
|
||||||
text: '<?php printMLText('add_event'); ?>',
|
text: '<?php printMLText('add_event'); ?>',
|
||||||
|
@ -241,6 +244,7 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
<?php } ?>
|
||||||
header: {
|
header: {
|
||||||
left: 'prev,next today addEventButton',
|
left: 'prev,next today addEventButton',
|
||||||
center: 'title',
|
center: 'title',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user