Project

General

Profile

Actions

Activity #2472

closed

Feature #3752: Design of the web framework for Data Centre Software

Feature #1850: Design and Development for web based ANRS

Module #1852: Development for HomePage

Sub module #2471: Development for menu listings

Modify UI for dynamic rendering of menus based on menu json

Added by Thara S Pillai over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
04/11/2024
Due date:
04/15/2024
% Done:

100%

Estimated time:
Planned Due Date:

Description

@Shameera S L , to guide and review

Actions #1

Updated by Thara S Pillai over 2 years ago

  • Status changed from Rejected to New
Actions #2

Updated by Thara S Pillai over 2 years ago

Read response json from middleware in client side variable menus

<ul>
  <% menus.forEach(function(mainMenu) { %>
    <li>

      <a href="javascript: void(0);"class="has-arrow waves-effect">
             <i class= "bx bx-menu"></i>
             <span key="" ><%=mainMenu.menu_name %></span>
      </a>

      <% if (mainMenu.submenus && mainMenu.submenus.length > 0) { %>
        <ul>
          <% mainMenu.submenus.forEach(function(subMenu) { %>
            <li>
              <ul class="sub-menu" aria-expanded="true">
                        <li><a href="subMenu.menu_url" key=""><%=subMenu.menu_name %></a></li>

              </ul>
              <% if (subMenu.submenus && subMenu.submenus.length > 0) { %>
                <ul>
                  <% subMenu.submenus.forEach(function(subSubMenu) { %>
                    <li>
                      <li><a href="subMenu.menu_url" key=""><%=subMenu.menu_name %></a></li>
                    </li>
                  <% }); %>
                </ul>
              <% } %>
            </li>
          <% }); %>
        </ul>
      <% } %>
    </li>
  <% }); %>
</ul>
Actions #3

Updated by Siji Mathew over 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20
Actions #4

Updated by Siji Mathew over 2 years ago

  • % Done changed from 20 to 30
Actions #5

Updated by Thara S Pillai over 2 years ago

see updates in svn\varunamaalaa-web\controller\AuthController.js

Actions #6

Updated by Siji Mathew over 2 years ago

  • % Done changed from 30 to 70
Actions #7

Updated by Thara S Pillai over 2 years ago

Use res.locals.menu_json to assign values in the session variable to be available over multiple templates
Access in ejs as {menu_json}

Actions #8

Updated by Siji Mathew over 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 70 to 100
Actions #9

Updated by Thara S Pillai about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF