def _sidemenu_items(sender, category, **kwargs): yield SideMenuItem('content', _('Content'), url_for('categories.manage_content', category), 100, icon='eye') yield SideMenuItem('settings', _('Settings'), url_for('categories.manage_settings', category), 90, icon='settings') yield SideMenuItem('protection', _('Protection'), url_for('categories.manage_protection', category), 70, icon='shield')
def _extend_admin_menu(sender, **kwargs): if session.user.is_admin: yield SideMenuItem('admins', _("Admins"), url_for('users.admins'), section='user_management') yield SideMenuItem('users', _("Users"), url_for('users.users_admin'), section='user_management')
def _extend_event_management_menu(sender, event, **kwargs): registration_section = 'organization' if event.type == 'conference' else 'advanced' if not event.can_manage(session.user, 'registration'): return if event.type != 'conference': yield SideMenuItem('participants', _("Participants"), url_for('event_participation.manage', event), section='organization') if event.has_feature('registration'): yield SideMenuItem('registration', _('Registration'), url_for('event_registration.manage_regform_list', event), section=registration_section)
def _extend_event_management_menu(sender, event, **kwargs): if not event.can_manage(session.user): return return SideMenuItem('static', _('Offline Copy'), url_for('static_site.list', event), section='advanced')
def _extend_event_management_menu(sender, event, **kwargs): if not event.can_manage(session.user): return return SideMenuItem('features', 'Features', url_for('event_features.index', event), section='advanced')
def _extend_admin_menu(sender, **kwargs): if session.user.is_admin: return SideMenuItem('plugins', _('Plugins'), url_for('plugins.index'), 80, icon='puzzle')
def _extend_event_management_menu(sender, event, **kwargs): if not event.can_manage(session.user): return return SideMenuItem('reminders', _('Reminders'), url_for('event_reminders.list', event), section='organization')
def _extend_event_management_menu(sender, event, **kwargs): from fossir.modules.events.sessions.util import can_manage_sessions if not can_manage_sessions(session.user, event, 'ANY'): return if event.type != 'lecture': return SideMenuItem('timetable', _('Timetable'), url_for('timetable.management', event), weight=80, icon='calendar')
def _extend_event_management_menu(sender, event, **kwargs): if not get_vc_plugins(): return if not event.can_manage(session.user): return return SideMenuItem('videoconference', _('Videoconference'), url_for('vc.manage_vc_rooms', event), section='services')
def _extend_event_management_menu_layout(sender, event, **kwargs): if not event.can_manage(session.user): return yield SideMenuItem('layout', _('Layout'), url_for('event_layout.index', event), section='customization') if event.type_ == EventType.conference: yield SideMenuItem('menu', _('Menu'), url_for('event_layout.menu', event), section='customization') if event.has_feature('images'): yield SideMenuItem('images', _('Images'), url_for('event_layout.images', event), section='customization')
def _extend_event_management_menu(sender, event, **kwargs): if not event.has_feature('surveys') or not event.can_manage( session.user, 'surveys'): return return SideMenuItem('surveys', _('Surveys'), url_for('surveys.manage_survey_list', event), section='organization')
def _extend_event_management_menu(sender, event, **kwargs): if not event.cfp.is_manager( session.user) or not PapersFeature.is_allowed_for_event(event): return return SideMenuItem('papers', _('Call for Papers'), url_for('papers.management', event), section='organization')
def _extend_event_management_menu(sender, event, **kwargs): if not event.has_feature('payment') or not event.can_manage( session.user, 'registration'): return return SideMenuItem('payment', _('Payments'), url_for('payment.event_settings', event), section='organization')
def _extend_event_management_menu(sender, event, **kwargs): if not can_manage_attachments(event, session.user): return return SideMenuItem('attachments', _('Materials'), url_for('attachments.management', event), 80, section='organization')
def _sidemenu_items(sender, event, **kwargs): if event.can_manage(session.user): yield SideMenuItem('settings', _('Settings'), url_for('event_management.settings', event), 100, icon='settings') if config.ENABLE_ROOMBOOKING: yield SideMenuItem('room_booking', _('Room Booking'), url_for('event_mgmt.rooms_booking_list', event), 50, icon='location') yield SideMenuItem('protection', _('Protection'), url_for('event_management.protection', event), 60, icon='shield')
def _extend_event_management_menu(sender, event, **kwargs): if not event.can_manage(session.user): return if event.type == 'conference': return SideMenuItem('contributions', _('Contributions'), url_for('contributions.manage_contributions', event), section='organization')
def _extend_event_management_menu(sender, event, **kwargs): if not get_agreement_definitions(): return if not event.can_manage(session.user): return return SideMenuItem('agreements', _('Agreements'), url_for('agreements.event_agreements', event), section='services')
def _extend_admin_menu(sender, **kwargs): if not config.ENABLE_ROOMBOOKING: return if session.user.is_admin: yield SideMenuItem('rb-settings', _("Settings"), url_for('rooms_admin.settings'), section='roombooking', icon='location') yield SideMenuItem('rb-rooms', _("Rooms"), url_for('rooms_admin.roomBooking-admin'), section='roombooking', icon='location') else: yield SideMenuItem('rb-rooms', _("Rooms"), url_for('rooms_admin.roomBooking-admin'), 70, icon='location')
def _sidemenu_items(sender, user, **kwargs): yield SideMenuItem('dashboard', _('Dashboard'), url_for('users.user_dashboard'), 100, disabled=user.is_system) yield SideMenuItem('personal_data', _('Personal data'), url_for('users.user_profile'), 90) yield SideMenuItem('emails', _('Emails'), url_for('users.user_emails'), 80, disabled=user.is_system) yield SideMenuItem('preferences', _('Preferences'), url_for('users.user_preferences'), 70, disabled=user.is_system) yield SideMenuItem('favorites', _('Favourites'), url_for('users.user_favorites'), 60, disabled=user.is_system)
def _extend_event_management_menu(sender, event, **kwargs): if not get_request_definitions(): return if not event.can_manage(session.user) and not is_request_manager(session.user): return return SideMenuItem('requests', _('Logistics'), url_for('requests.event_requests', event), section='services')
def _extend_admin_menu(sender, **kwargs): if session.user.is_admin: return SideMenuItem('payment', _("Payment"), url_for('payment.admin_settings'), section='customization')
def _extend_admin_menu(sender, **kwargs): if session.user.is_admin: return SideMenuItem('celery', _("Tasks"), url_for('celery.index'), 20, icon='time')
def _extend_event_management_menu(sender, event, **kwargs): if not event.can_manage(session.user) or not AbstractsFeature.is_allowed_for_event(event): return return SideMenuItem('abstracts', _('Call for Abstracts'), url_for('abstracts.management', event), section='organization')
def _sidemenu_items(sender, **kwargs): if session.user.is_admin: yield SideMenuItem('news', _('News'), url_for('news.manage'), section='homepage')
def _sidemenu_items(sender, **kwargs): if session.user.is_admin: yield SideMenuItem('settings', _('General Settings'), url_for('core.settings'), 100, icon='settings')
def _sidemenu_items(sender, **kwargs): if session.user.is_admin: yield SideMenuItem('ip_networks', _('IP Networks'), url_for('networks.manage'), section='security')
def _sidemenu_items(sender, event, **kwargs): if event.can_manage(session.user): return SideMenuItem('persons', _('Roles'), url_for('persons.person_list', event), section='organization')
def _sidemenu_items(sender, **kwargs): if session.user.is_admin: yield SideMenuItem('announcement', _('Announcement'), url_for('announcement.manage'), section='homepage')
def _sidemenu_items(sender, **kwargs): if session.user.is_admin: yield SideMenuItem('legal_messages', _('Legal/Disclaimers'), url_for('legal.manage'), section='security')
def _extend_event_management_menu(sender, event, **kwargs): if not event.can_manage(session.user): return return SideMenuItem('logs', 'Logs', url_for('event_logs.index', event), section='reports')