Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <HTML>
- <head>
- </head>
- <!-- <body>
- <select id = "pull">
- <option value="" disabled selected>Choose a Class</option>
- <option value="class1">Class 1</option>
- <option value="class2">Class 2</option>
- <option value="class3">Class 3</option>
- </select>
- <button onclick="selectClass()">Select Class</button>
- </body>
- <div id = "searchData">
- <input type="text" id="search" placeholder="Search">
- <button onclick="searchDataTable()">Search</button>
- </div> -->
- <div id="tableLayout">
- <% @classrooms.each do |c| %>
- <%= link_to classroom_path(c) do %>
- <div id="classes">
- <div id="classList">
- <%= c.ClassName %>
- <div id="profName"><%= c.ProfessorName %></div>
- </div>
- </div>
- <% end %>
- <% end %>
- <% if( @user.userType == "instructor") %>
- <%= link_to new_classroom_path do %>
- <div id="classes" style="background-color: #DA70D6">
- <div id="classList" style="height: 32px">
- + Add New Class
- </div>
- </div>
- <% end %>
- <% end %>
- </div>
- <div id="output"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement