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)
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)
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)
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)
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'],
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(
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)
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)
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)
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)
from copy import copy from edc_adverse_event.navbars import tmg_navbar_item, ae_navbar_item from edc_data_manager.navbar_item import dm_navbar_item from edc_lab_dashboard.navbars import navbar as lab_navbar from edc_navbar import site_navbars, Navbar from edc_review_dashboard.navbars import navbar as review_navbar from mapitio_dashboard.navbars import navbar as mapitio_dashboard_navbar navbar = Navbar(name="mapitio_edc") navbar_item = copy( [item for item in lab_navbar.items if item.name == "specimens"][0]) navbar_item.active = False navbar_item.label = "Specimens" navbar.append_item(navbar_item) screening = [ item for item in mapitio_dashboard_navbar.items if item.name == "screened_subject" ][0] screening.label = "Enrollment" navbar.append_item(screening) navbar.append_item([ item for item in mapitio_dashboard_navbar.items if item.name == "consented_subject" ][0]) for item in review_navbar.items: navbar.append_item(item)
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)
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',
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))
from copy import copy from edc_adverse_event.navbars import ae_navbar_item, tmg_navbar_item from edc_data_manager.navbar_item import dm_navbar_item from edc_lab_dashboard.navbars import navbar as lab_navbar from edc_navbar import Navbar, site_navbars from edc_review_dashboard.navbars import navbar as review_navbar from mocca_dashboard.navbars import navbar as mocca_dashboard_navbar navbar = Navbar(name="mocca_edc") navbar_item = copy( [item for item in lab_navbar.items if item.name == "specimens"][0]) navbar_item.active = False navbar_item.label = "Specimens" navbar.append_item(navbar_item) navbar.append_item([ item for item in mocca_dashboard_navbar.items if item.name == "screened_subject" ][0]) navbar.append_item([ item for item in mocca_dashboard_navbar.items if item.name == "consented_subject" ][0]) for item in review_navbar.items: navbar.append_item(item)
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',
from edc_navbar import Navbar, NavbarItem, site_navbars edc_sync = Navbar(name='edc_sync') edc_sync.append_item( NavbarItem(name='synchronization', label='Data Synchronization', fa_icon='fa-exchange', url_name='edc_sync:home_url')) site_navbars.register(edc_sync)
from edc_navbar import Navbar, NavbarItem, site_navbars consent = Navbar(name='edc_consent') consent.append_item( NavbarItem(name='consent', label='Consent', fa_icon='far fa-user-circle', url_name='edc_consent:home_url')) site_navbars.register(consent)
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)
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)
from django.conf import settings from edc_navbar import NavbarItem, site_navbars, Navbar vaccine = Navbar(name='vaccine') # vaccine.append_item( # NavbarItem( # name='eligible_subject', # label='Eligibility Checklist', # fa_icon='fa-user-plus', # url_name=settings.DASHBOARD_URL_NAMES.get('eligibility_listboard_url'))) # # vaccine.append_item( # NavbarItem( # name='vaccine_subject', # label='Subjects', # fa_icon='far fa-user-circle', # url_name=settings.DASHBOARD_URL_NAMES.get('subject_listboard_url'))) # vaccine.append_item( # NavbarItem(name='synchronization', # label='Data Synchronization', # fa_icon='fa-exchange', # url_name='edc_sync:home_url')) site_navbars.register(vaccine)
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)
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)
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)
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))
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))
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)
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)
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'))
from copy import copy from django.conf import settings from edc_lab_dashboard.navbars import navbar as lab_navbar from edc_navbar import site_navbars, Navbar from edc_review_dashboard.navbars import navbar as review_navbar from inte_dashboard.navbars import navbar as inte_dashboard_navbar from edc_adverse_event.navbars import tmg_navbar_item, ae_navbar_item from edc_data_manager.navbar_item import dm_navbar_item navbar = Navbar(name=settings.APP_NAME) navbar_item = copy( [item for item in lab_navbar.items if item.name == "specimens"][0]) navbar_item.active = False navbar_item.label = "Specimens" navbar.append_item(navbar_item) navbar.append_item([ item for item in inte_dashboard_navbar.items if item.name == "screened_subject" ][0]) navbar.append_item([ item for item in inte_dashboard_navbar.items if item.name == "consented_subject" ][0]) for item in review_navbar.items: navbar.append_item(item) navbar.append_item(tmg_navbar_item)
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)
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, ))
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)