Beispiel #1
0
def _inject_regform_announcement(event, **kwargs):
    from indico.modules.events.registration.util import user_registered_in_event, get_registrations_with_tickets
    regforms = _get_open_regforms(event)
    if regforms:
        return render_template('events/registration/display/conference_home.html', regforms=regforms, event=event,
                               user_has_registered=(session.user and user_registered_in_event(session.user, event)),
                               registrations_with_tickets=get_registrations_with_tickets(session.user, event))
Beispiel #2
0
def _inject_regform_announcement(event, **kwargs):
    from indico.modules.events.registration.util import user_registered_in_event, get_registrations_with_tickets
    regforms = _get_open_regforms(event)
    if regforms:
        return render_template('events/registration/display/conference_home.html', regforms=regforms, event=event,
                               user_has_registered=(session.user and user_registered_in_event(session.user, event)),
                               registrations_with_tickets=get_registrations_with_tickets(session.user, event))