TemplateTags#
- tom_observations.templatetags.observation_extras.display_obs_type(value)[source]#
This converts SAMPLE_TITLE into Sample Title. Used for display all-caps observation type in the tabs as titles.
- tom_observations.templatetags.observation_extras.existing_observation_form(target)[source]#
Renders a form for adding an existing API-based observation to a Target.
- 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_distribution(observations)[source]#
Displays a plot showing on a map the locations of all observations recorded in the TOM.
- tom_observations.templatetags.observation_extras.observation_list(context, target=None)[source]#
Displays a list of all observations in the TOM, limited to an individual target if specified.
- 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_type_tabs(context)[source]#
Displays tabs in observation creation form representing each available observation type.
- tom_observations.templatetags.observation_extras.observationtemplate_from_record(obsr)[source]#
Renders a button that will pre-populate and observation template form with parameters from the specified
ObservationRecord.
- tom_observations.templatetags.observation_extras.observationtemplate_run(target)[source]#
Renders the form for running an observation template.
- tom_observations.templatetags.observation_extras.observing_buttons(target)[source]#
Displays the observation buttons for all facilities available in the TOM.