Templates - DDMAL/CantusDB GitHub Wiki

Most of CantusDB's pages are outlined in a template, and these templates are rendered in a view. For those pages that do not have an associated template, refer to the documentation on flat pages.

General templates

Templates applying to the entire CantusDB project are found in /cantusdb_project/templates/ (view directory)

  • base.html (code)
    • nearly all CantusDB's other templates extend base.html
  • flatpages/default.html (code) (see also Flatpages)
    • default.html extends base.html

main_app

Templates relating to views in main_app are found in /cantusdb_project/main_app/templates/ (view directory)

  • 403.html (code)
  • 404.html (code)
  • chant_confirm_delete.html (code)
  • chant_create.html (code)
    • chant_create.html is used to display the ChantCreate form (code). It extends base.html.
  • chant_detail.html (code)
  • chant_edit.html (code)
  • chant_form.html (code)
  • chant_list.html (code)
  • chant_proofread.html (code)
  • chant_search.html (code)
  • chant_seq_by_cantus_id.html (code)
  • chant_syllabification_edit.html (code)
  • ci_search.html (code)
  • contact_form.html (code)
  • content_overview.html (code)
  • feast_detail.html (code)
  • feast_list.html (code)
  • full_index.html (code)
  • genre_detail.html (code)
  • genre_list.html (code)
  • global_search_bar.html (code)
  • indexer_detail.html (code)
  • indexer_list.html (code)
  • items_count.html (code)
  • melody_search.html (code)
  • office_detail.html (code)
  • office_list.html (code)
  • pagination.html (code)
  • sequence_detail.html (code)
  • sequence_edit.html (code)
  • sequence_list.html (code)
  • source_create_form.html (code)
  • source_detail.html (code)
  • source_edit.html (code)
  • source_list.html (code)
  • user_detail.html (code)
  • user_list.html (code)
  • user_source_list.html (code)

articles

Templates relating to views in articles are found in /cantusdb_project/articles/templates/ (view directory)

  • article_detail.html (code)
  • article_list.html (code)