Пример #1
0
from edc_navbar import Navbar, NavbarItem, site_navbars

protocol = Navbar(name='edc_protocol')

protocol.append_item(
    NavbarItem(name='protocol',
               title='Protocol',
               label='protocol',
               url_name='edc_protocol:home_url'))

site_navbars.register(protocol)
Пример #2
0
from django.conf import settings
from edc_navbar import NavbarItem, site_navbars, Navbar


no_url_namespace = True if settings.APP_NAME == 'td_export' else False

td_export = Navbar(name='td_export')

td_export.append_item(
    NavbarItem(
        name='export_data',
        title='Export Data',
        label='TD Export Data',
        fa_icon='fa fa-file-export',
        url_name=settings.DASHBOARD_URL_NAMES[
            'export_listboard_url'],
        no_url_namespace=no_url_namespace))


site_navbars.register(td_export)
Пример #3
0
from django.conf import settings

from edc_navbar import NavbarItem, site_navbars, Navbar

potlako_follow = Navbar(name='potlako_follow')
no_url_namespace = True if settings.APP_NAME == 'potlako_follow' else False

potlako_follow.append_item(
    NavbarItem(name='potlako_follow',
               label='Potlako follow',
               fa_icon='fa-cogs',
               url_name='potlako_follow:home_url'))

potlako_follow.append_item(
    NavbarItem(
        name='appointmet_worklist',
        title='Appointments Worklist',
        label='Appointments Worklist',
        fa_icon='fa-user-plus',
        url_name=settings.DASHBOARD_URL_NAMES['potlako_follow_listboard_url'],
        no_url_namespace=no_url_namespace))

potlako_follow.append_item(
    NavbarItem(name='navigation_worklist',
               title='Navigation Plan Worklist',
               label='Navigation Plan Worklist',
               fa_icon='fa-user-plus',
               url_name=settings.
               DASHBOARD_URL_NAMES['potlako_navigation_listboard_url'],
               no_url_namespace=no_url_namespace))
Пример #4
0
from django.conf import settings

from edc_navbar import NavbarItem, site_navbars, Navbar

flourish_follow = Navbar(name='flourish_follow')
no_url_namespace = True if settings.APP_NAME == 'flourish_follow' else False

flourish_follow.append_item(
    NavbarItem(name='flourish_follow',
               label='Flourish follow',
               fa_icon='fa-cogs',
               url_name='flourish_follow:home_url'))

flourish_follow.append_item(
    NavbarItem(
        name='worklist',
        title='Worklist',
        label='Worklist',
        fa_icon='fa-user-plus',
        url_name=settings.DASHBOARD_URL_NAMES['flourish_follow_listboard_url'],
        no_url_namespace=no_url_namespace))

site_navbars.register(flourish_follow)
Пример #5
0
from django.conf import settings
from edc_navbar import NavbarItem, site_navbars, Navbar

no_url_namespace = True if settings.APP_NAME == 'pre_flourish' else False

pre_flourish_dashboard = Navbar(name='pre_flourish_dashboard')

pre_flourish_dashboard.append_item(
    NavbarItem(name='pre_flourish_screening',
               title='Pre Flourish Screening',
               label='pre flourish screening',
               fa_icon='far fa-user-circle',
               url_name='pre_flourish_screening_listboard_url',
               no_url_namespace=False))

pre_flourish_dashboard.append_item(
    NavbarItem(name='pre_flourish_consent',
               title='Caregiver Subjects',
               label='caregiver subjects',
               fa_icon='far fa-user-circle',
               url_name='pre_flourish_consent_listboard_url',
               no_url_namespace=False))

pre_flourish_dashboard.append_item(
    NavbarItem(name='child_subjects',
               title='Child Subjects',
               label='child subjects',
               fa_icon='far fa-user-circle',
               url_name='pre_flourish_child_listboard_url',
               no_url_namespace=False))
Пример #6
0
from django.conf import settings
from edc_navbar import Navbar, NavbarItem, site_navbars

device = Navbar(name='edc_device')

no_url_namespace = True if settings.APP_NAME == 'edc_device' else False

device.append_item(
    NavbarItem(name='device',
               label='device',
               fa_icon='fa-calculator',
               no_url_namespace=no_url_namespace,
               url_name='edc_device:home_url'))

site_navbars.register(device)
Пример #7
0
from edc_navbar import Navbar, NavbarItem, site_navbars

consent = Navbar(name="edc_base")

consent.append_item(
    NavbarItem(
        name="edc_base",
        label="Edc Base",
        fa_icon="fa-cogs",
        codename="edc_navbar.nav_edc_base",
        url_name="edc_base:home_url",
    ))

site_navbars.register(consent)
Пример #8
0
from edc_navbar import NavbarItem, site_navbars, Navbar

edc_calendar = Navbar(name='edc_calendar')

edc_calendar.append_item(
    NavbarItem(name='edc_calendar',
               label='EDC CALENDER',
               fa_icon='fa-cogs',
               url_name='home_url'))

site_navbars.register(edc_calendar)
Пример #9
0
from django.conf import settings
from edc_navbar import NavbarItem, site_navbars, Navbar

no_url_namespace = True if settings.APP_NAME == 'trainee_dashboard' else False

trainee_dashboard = Navbar(name='trainee_dashboard')

trainee_dashboard.append_item(
    NavbarItem(name='consented_subject',
               title='Subjects',
               label='subjects',
               fa_icon='far fa-user-circle',
               url_name=settings.DASHBOARD_URL_NAMES['subject_listboard_url'],
               no_url_namespace=no_url_namespace))

site_navbars.register(trainee_dashboard)
Пример #10
0
from django.conf import settings
from edc_navbar import NavbarItem, site_navbars, Navbar

flourish = Navbar(name='flourish')

flourish.append_item(
    NavbarItem(name='maternal_dataset',
               label='Maternal Dataset',
               fa_icon='far fa-user-circle',
               url_name=settings.DASHBOARD_URL_NAMES.get(
                   'maternal_dataset_listboard_url')))

flourish.append_item(
    NavbarItem(name='anc_screening',
               label='ANC Screening',
               fa_icon='far fa-user-circle',
               url_name=settings.DASHBOARD_URL_NAMES.get(
                   'maternal_screening_listboard_url')))

flourish.append_item(
    NavbarItem(
        name='maternal_subject',
        label='Maternal Subjects',
        fa_icon='far fa-user-circle',
        url_name=settings.DASHBOARD_URL_NAMES.get('subject_listboard_url')))

flourish.append_item(
    NavbarItem(name='Follow Ups',
               title='Follow Ups',
               label='Follow Ups',
               fa_icon='fa-user-plus',
Пример #11
0
from django.conf import settings
from edc_navbar import NavbarItem, site_navbars, Navbar
from edc_lab_dashboard.dashboard_urls import dashboard_urls as lab_dashboard_urls

training_program = Navbar(name='training_program')

training_program.append_item(
    NavbarItem(name='pharmacy',
               label='Pharmacy',
               fa_icon='fa-medkit',
               url_name=f'home_url'))
# url_name=f'edc_pharmacy_dashboard:home_url'))

training_program.append_item(
    NavbarItem(name='lab',
               label='Specimens',
               fa_icon='fa-flask',
               url_name=lab_dashboard_urls.get('requisition_listboard_url')))

training_program.append_item(
    NavbarItem(
        name='screened_subject',
        label='Screening',
        fa_icon='fa-user-plus',
        url_name=settings.DASHBOARD_URL_NAMES.get('screening_listboard_url')))

training_program.append_item(
    NavbarItem(
        name='consented_subject',
        label='Subjects',
        fa_icon='far fa-user-circle',
Пример #12
0
from edc_navbar import Navbar, NavbarItem, site_navbars

navbar = Navbar(name="edc_dashboard")
navbar.append_item(
    NavbarItem(
        name="edc_dashboard",
        label="Edc Dashboard",
        fa_icon="fa-cogs",
        codename="edc_navbar.nav_edc_dashboard",
        url_name="edc_dashboard:home_url",
    ))

site_navbars.register(navbar)
Пример #13
0
from django.conf import settings
from edc_navbar import Navbar, NavbarItem, site_navbars

no_url_namespace = True if settings.APP_NAME == "edc_adverse_event" else False

ae_navbar_item = NavbarItem(
    name="ae_home",
    title="Adverse Events",
    label="AE",
    codename="edc_navbar.nav_ae_section",
    url_name="edc_adverse_event:ae_home_url",
    no_url_namespace=no_url_namespace,
)

tmg_navbar_item = NavbarItem(
    name="tmg_home",
    label="TMG",
    codename="edc_navbar.nav_tmg_section",
    url_name="edc_adverse_event:tmg_home_url",
    no_url_namespace=no_url_namespace,
)

ae_navbar = Navbar(name="edc_adverse_event")
ae_navbar.append_item(ae_navbar_item)
ae_navbar.append_item(tmg_navbar_item)

site_navbars.register(ae_navbar)
from edc_navbar import Navbar, NavbarItem, site_navbars

consent = Navbar(name='edc_base')

consent.append_item(
    NavbarItem(name='edc_base',
               label='Edc Base',
               fa_icon='fa-cogs',
               url_name='edc_base:home_url'))

site_navbars.register(consent)
Пример #15
0
from edc_navbar import NavbarItem, site_navbars, Navbar

motheo = Navbar(name='motheo_call_manager')

motheo.append_item(
    NavbarItem(name='call_manager',
               label='Call Manager',
               fa_icon='fa-phone-square',
               url_name='call_manager_listboard_url'))

motheo.append_item(
    NavbarItem(name='reports',
               label='Call Reports',
               fa_icon='fa-bar-chart',
               url_name='report_url'))

site_navbars.register(motheo)
Пример #16
0
from edc_navbar import Navbar, NavbarItem, site_navbars

reference = Navbar(name='edc_reference')

reference.append_item(
    NavbarItem(name='reference',
               title='reference',
               label='reference',
               url_name='edc_reference:home_url'))

site_navbars.register(reference)
Пример #17
0
from django.conf import settings
from edc_navbar import NavbarItem, site_navbars, Navbar

no_url_namespace = True if settings.APP_NAME == 'flourish_dashboard' else False

flourish_dashboard = Navbar(name='flourish_dashboard')

flourish_dashboard.append_item(
    NavbarItem(name='maternal_dataset',
               title='Maternal Dataset',
               label='maternal dataset',
               fa_icon='far fa-user-circle',
               url_name=settings.
               DASHBOARD_URL_NAMES['maternal_dataset_listboard_url'],
               no_url_namespace=no_url_namespace))

flourish_dashboard.append_item(
    NavbarItem(name='anc_screening',
               title='ANC Screening',
               label='anc screening',
               fa_icon='far fa-user-circle',
               url_name=settings.
               DASHBOARD_URL_NAMES['maternal_screening_listboard_url'],
               no_url_namespace=no_url_namespace))

flourish_dashboard.append_item(
    NavbarItem(name='consented_subject',
               title='Maternal Subjects',
               label='maternal subjects',
               fa_icon='far fa-user-circle',
               url_name=settings.DASHBOARD_URL_NAMES['subject_listboard_url'],
Пример #18
0
from django.conf import settings
from edc_lab_dashboard.dashboard_urls import dashboard_urls as lab_dashboard_urls
from edc_navbar import NavbarItem, site_navbars, Navbar


cancer = Navbar(name='cancer')


cancer.append_item(
    NavbarItem(
        name='consented_subject',
        label='Subjects',
        fa_icon='far fa-user-circle',
        url_name=settings.DASHBOARD_URL_NAMES.get('subject_listboard_url')))

cancer.append_item(
    NavbarItem(
        name='lab',
        label='Specimens',
        fa_icon='fa-flask',
        url_name=lab_dashboard_urls.get('requisition_listboard_url')))

site_navbars.register(cancer)
Пример #19
0
from django.conf import settings
from edc_navbar import NavbarItem, site_navbars, Navbar

no_url_namespace = True if settings.APP_NAME == "edc_pharmacy_dashboard" else False

navbar = Navbar(name="pharmacy_dashboard")

navbar.append_item(
    NavbarItem(
        name="prescribe",
        title="prescribe",
        label="Prescribe",
        glyphicon="glyphicon-edit",
        no_url_namespace=no_url_namespace,
        codename="edc_navbar.nav_pharmacy_prescribe",
        url_name="edc_pharmacy_dashboard:prescribe_listboard_url",
    ))

navbar.append_item(
    NavbarItem(
        name="dispense",
        title="dispense",
        label="Dispense",
        glyphicon="glyphicon-share",
        no_url_namespace=no_url_namespace,
        codename="edc_navbar.nav_pharmacy_dispense",
        url_name="edc_pharmacy_dashboard:dispense_listboard_url",
    ))

navbar.append_item(
    NavbarItem(
Пример #20
0
from edc_navbar import Navbar, NavbarItem, site_navbars

label = Navbar(name="edc_label")

label.append_item(
    NavbarItem(
        name="label",
        label="Label",
        fa_icon="fa-film",
        url_name="edc_label:home_url",
        codename="edc_navbar.nav_label",
    )
)

site_navbars.register(label)
Пример #21
0
from edc_navbar import Navbar, NavbarItem, site_navbars

visit_schedule = Navbar(name="edc_visit_schedule")

visit_schedule.append_item(
    NavbarItem(
        name="visit_schedule",
        title="Visit Schedule",
        label="Visit Schedule",
        fa_icon="fa-calendar",
        url_name="edc_visit_schedule:home_url",
        codename="edc_navbar.nav_visit_schedule",
    )
)

visit_schedule.append_item(
    NavbarItem(
        name="admin",
        title="Subject History",
        label="Subject History",
        fa_icon="fa-history",
        url_name=(
            "edc_visit_schedule:edc_visit_schedule_admin:"
            "edc_visit_schedule_subjectschedulehistory_changelist"
        ),
        codename="edc_navbar.nav_visit_schedule",
    )
)

site_navbars.register(visit_schedule)
Пример #22
0
from django.conf import settings
from edc_navbar import NavbarItem, site_navbars, Navbar

no_url_namespace = True if settings.APP_NAME == 'pharma_dashboard' else False

pharma_dashboard = Navbar(name='pharma_dashboard')

pharma_dashboard.append_item(
    NavbarItem(name='patients',
               title='Patients',
               label='patients',
               fa_icon='fa fa-user',
               url_name=settings.DASHBOARD_URL_NAMES['patient_listboard_url'],
               no_url_namespace=no_url_namespace))

pharma_dashboard.append_item(
    NavbarItem(name='dispensary',
               title='Dispensary',
               label='dispensary',
               fa_icon='fa-medkit',
               url_name=settings.DASHBOARD_URL_NAMES['dispense_listboard_url'],
               no_url_namespace=no_url_namespace))

pharma_dashboard.append_item(
    NavbarItem(name='stock_management',
               title='Stock Management',
               label='Stock Management',
               fa_icon='fa-area-chart',
               url_name=settings.
               DASHBOARD_URL_NAMES['stock_management_listboard_url'],
               no_url_namespace=no_url_namespace))
Пример #23
0
from edc_navbar import Navbar, NavbarItem, site_navbars

protocol = Navbar(name="edc_protocol")

protocol.append_item(
    NavbarItem(
        name="protocol",
        title="Protocol",
        label="protocol",
        codename="edc_navbar.nav_edc_protocol",
        url_name="edc_protocol:home_url",
    ))

site_navbars.register(protocol)
Пример #24
0
from edc_navbar import Navbar, NavbarItem, site_navbars


navbar = Navbar(name="edc_export")

navbar.append_item(
    NavbarItem(
        name="export",
        label="Export",
        fa_icon="fas fa-file-export",
        url_name="edc_export:home_url",
        codename="edc_navbar.nav_export",
    )
)

navbar.append_item(
    NavbarItem(
        name="data_request",
        label="Export Admin",
        # fa_icon='fas fa-file-export',
        url_name="edc_export:admin:index",
        codename="edc_navbar.nav_export",
    )
)


site_navbars.register(navbar)
Пример #25
0
from edc_navbar import Navbar, NavbarItem, site_navbars

consent = Navbar(name='edc_consent')

consent.append_item(
    NavbarItem(name='consent',
               label='Consent',
               fa_icon='fa-user-circle-o',
               url_name='edc_consent:home_url'))

site_navbars.register(consent)
Пример #26
0
from edc_navbar import NavbarItem, site_navbars, Navbar

bcpp = Navbar(name='bcpp')

bcpp.append_item(
    NavbarItem(name='plots',
               title='Plots',
               label='plots',
               fa_icon='fa-building',
               url_name=f'plot_dashboard:listboard_url'))

bcpp.append_item(
    NavbarItem(name='households',
               title='Households',
               label='households',
               fa_icon='fa-home',
               url_name=f'household_dashboard:listboard_url'))

bcpp.append_item(
    NavbarItem(name='enumeration',
               title='Enumeration',
               label='enumeration',
               fa_icon='fa-sitemap',
               url_name=f'enumeration:listboard_url'))

bcpp.append_item(
    NavbarItem(name='members',
               title='Members',
               label='members',
               fa_icon='fa-users',
               url_name=f'member_dashboard:listboard_url'))
Пример #27
0
from django.conf import settings

from edc_navbar import NavbarItem, site_navbars, Navbar

flourish_reports = Navbar(name='flourish_reports')
no_url_namespace = True if settings.APP_NAME == 'flourish_reports' else False

flourish_reports.append_item(
    NavbarItem(name='flourish_reports',
               label='Flourish reports',
               fa_icon='fa-cogs',
               url_name='flourish_reports:home_url'))

site_navbars.register(flourish_reports)
Пример #28
0
from edc_navbar import Navbar, NavbarItem, site_navbars

navbar = Navbar(name="edc_review_dashboard")

navbar_item = NavbarItem(
    name="subject_review",
    label="Review",
    title="Subject Review",
    codename="edc_dashboard.view_subject_review_listboard",
    url_name="subject_review_listboard_url",
)


navbar.append_item(navbar_item)

site_navbars.register(navbar)
Пример #29
0
from edc_adverse_event.navbars import ae_navbar_item, tmg_navbar_item
from edc_data_manager.navbar_item import dm_navbar_item
from edc_navbar import Navbar, NavbarItem, site_navbars
from edc_review_dashboard.navbars import navbar_item as review_navbar_item

no_url_namespace = False  # True if settings.APP_NAME == "inte_dashboard" else False

navbar = Navbar(name="inte_dashboard")

navbar.append_item(
    NavbarItem(
        name="screened_subject",
        title="Screening",
        label="Screening",
        fa_icon="fas fa-user-plus",
        codename="edc_navbar.nav_screening_section",
        url_name="screening_listboard_url",
        no_url_namespace=no_url_namespace,
    ))

navbar.append_item(
    NavbarItem(
        name="consented_subject",
        title="Subjects",
        label="Subjects",
        fa_icon="far fa-user-circle",
        codename="edc_navbar.nav_subject_section",
        url_name="subject_listboard_url",
        no_url_namespace=no_url_namespace,
    ))
Пример #30
0
from edc_navbar import Navbar, NavbarItem, site_navbars

device = Navbar(name="edc_device")

device.append_item(
    NavbarItem(
        name="device",
        label="device",
        fa_icon="fa-calculator",
        codename="edc_navbar.nav_edc_device",
        url_name="edc_device:home_url",
    ))

site_navbars.register(device)