From 034f9618c230e49eede4b7c0c9a521b1e9468bd0 Mon Sep 17 00:00:00 2001 From: Amit Upreti Date: Tue, 28 Mar 2023 15:07:25 -0400 Subject: [PATCH] create OP Training from admin console --- .../templates/console/console_navbar.html | 29 ++++++-- .../console/training_type/index.html | 74 +++++++++++++++++++ physionet-django/training/urls.py | 4 + physionet-django/training/views.py | 56 ++++++++++++++ 4 files changed, 157 insertions(+), 6 deletions(-) create mode 100644 physionet-django/console/templates/console/training_type/index.html diff --git a/physionet-django/console/templates/console/console_navbar.html b/physionet-django/console/templates/console/console_navbar.html index da10e56a27..dfbdfed9e4 100644 --- a/physionet-django/console/templates/console/console_navbar.html +++ b/physionet-django/console/templates/console/console_navbar.html @@ -101,14 +101,31 @@ {% endif %} + {% if perms.user.can_review_training %} - - + + {% if training_type_nav or training_nav %} +