TemplateTags

tom_observations.templatetags.observation_extras.update_status_button(context)

An inelegant way of passing filters in query parameters while updating observation statuses. Used in ObservationListView to retain filters.

tom_observations.templatetags.observation_extras.display_obs_type(value)

This converts SAMPLE_TITLE into Sample Title. Used for display all-caps observation type in the tabs as titles.

tom_observations.templatetags.observation_extras.observing_buttons(target)

Displays the observation buttons for all facilities available in the TOM.

tom_observations.templatetags.observation_extras.existing_observation_form(target)

Renders a form for adding an existing API-based observation to a Target.

tom_observations.templatetags.observation_extras.update_observation_id_form(obsr)

Renders a form for updating the observation ID for an ObservationRecord.

tom_observations.templatetags.observation_extras.observation_type_tabs(context)

Displays tabs in observation creation form representing each available observation type.

tom_observations.templatetags.observation_extras.facility_observation_form(context, target, facility, observation_type)

Displays a form for submitting an observation for a specific facility and observation type, e.g., imaging.

tom_observations.templatetags.observation_extras.observation_plan(target, facility=None, length=2, interval=60, airmass_limit=None)

Displays form and renders plot for visibility calculation. Using this templatetag to render a plot requires that the context of the parent view have values for start_time, end_time, and airmass.

tom_observations.templatetags.observation_extras.observation_list(context, target=None)

Displays a list of all observations in the TOM, limited to an individual target if specified.

tom_observations.templatetags.observation_extras.observationtemplate_run(target)

Renders the form for running an observation template.

tom_observations.templatetags.observation_extras.observationtemplate_from_record(obsr)

Renders a button that will pre-populate and observation template form with parameters from the specified ObservationRecord.

tom_observations.templatetags.observation_extras.observation_distribution(observations)

Displays a plot showing on a map the locations of all observations recorded in the TOM.

tom_observations.templatetags.observation_extras.facility_status(context)

Collect the facility status from the registered facilities and pass them to the facility_status.html partial template. See lco.py Facility implementation for example. :return: