From 73d88c6aad5259a7c73026a1927befefbb0bb92b Mon Sep 17 00:00:00 2001 From: Luis Cielak Date: Tue, 29 May 2018 14:48:27 -0400 Subject: [PATCH] Add nested menu items and update main region with divs instead of tables --- atst/handlers/request.py | 6 ++-- templates/requests.html.to | 26 ++++++++--------- templates/requests/sidebar.html.to | 45 +++++++++++++++++++++--------- 3 files changed, 47 insertions(+), 30 deletions(-) diff --git a/atst/handlers/request.py b/atst/handlers/request.py index d8431ade..70d42b8d 100644 --- a/atst/handlers/request.py +++ b/atst/handlers/request.py @@ -2,9 +2,9 @@ from atst.handler import BaseHandler class Request(BaseHandler): screens = [ - { 'title' : 'first screen', }, - { 'title' : 'second screen', }, - { 'title' : 'third screen', } + { 'title' : 'Application Details', }, + { 'title' : 'Computation', }, + { 'title' : 'Storage', } ] def initialize(self, page): diff --git a/templates/requests.html.to b/templates/requests.html.to index 5c182628..397cf060 100644 --- a/templates/requests.html.to +++ b/templates/requests.html.to @@ -4,20 +4,18 @@
- - - - -
-{% include 'requests/sidebar.html.to' %} - -{% block form %} -form goes here -{% end %} -{% block next %} -next page -{% end %} -
+ +
+ + {% block form %} + form goes here + {% end %} + {% block next %} + next page + {% end %} +
{% end %} diff --git a/templates/requests/sidebar.html.to b/templates/requests/sidebar.html.to index e5ebe75c..95fb3245 100644 --- a/templates/requests/sidebar.html.to +++ b/templates/requests/sidebar.html.to @@ -1,14 +1,33 @@ -this is the sidebar -{% for i,s in enumerate(screens) %} -
  • - {% if i+1==current %} - {{ s['title'] }} - {% else %} - - {{ s['title'] }} - - {% end %} -
  • -{% end %} -