Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%=stylesheet_link_tag :pullquote%>
- <%=link_to image_tag("traininglogo.png"), :controller=>"main", :action=>"index"%><br>
- <div style="position: absolute; top: 50px; left: 0px;">
- <div id='test' style="width: 500px;">
- <h2><%=@name%></h2>
- <p style="height: 520px;">
- if class already occurred dont let them sign up
- if signed up already dont let them sign up
- <%if session[:user]!=nil%>
- <% form_tag :controller=>"user", :action=>"addclass" do%>
- <%=hidden_field_tag :classid, params[:classid]%>
- <%=submit_tag "Add this Class"%>
- <%end%>
- <%end%>
- </p>
- <p class="more">
- <a href="#"></a>
- </p>
- </div>
- </div>
- <div style="position: absolute; top: 50px; right: 0px;">
- <div id='enrolled' style="width: 400px;">
- <h2>Enrolled Attendees:</h2>
- <p style="height: 300px;">
- <%@users.each do |a|%>
- <%=a.utln%> - <%=a.firstname%> <%=a.lastname%> <%=link_to "Remove User", :controller=>"admin", :action=>"unenroll", :userid=>a.id, :classid=>params[:classid]%><br>
- <%end%>
- </p>
- <p class="more">
- <a href="#"></a>
- </p>
- </div>
- </div>
- <div style="position: absolute; top: 470px; right: 0px;">
- <div id='tipsheets' style="width: 400px;">
- <h2>Tipsheets:</h2>
- <p style="height: 140px;">
- </p>
- <p class="more">
- <a href="#"></a>
- </p>
- </div>
- </div>
- <%if session[:user]!=nil && is_admin?%>
- <div style="position: absolute; bottom: -70px;">
- <div id='enrolled' style="width: 940px;">
- <h2>Class Admin Panel:</h2>
- <p style="height: 30px;">
- Add Student:<br>
- <% form_tag :controller=>"admin", :action=>"enroll", :classid=>params[:classid] do%>
- <%=text_field_with_auto_complete @user, :utln, {:size=>15}, {:method => :get, :url => url_for(:controller => :user, :action => :userlist, :escape => false), :with=>"'search=' + element.value"}%>
- <%=submit_tag "Add Student"%>
- <%end%>
- <br>
- <%=link_to "Delete Scheduled Class", :controller=>"admin", :action=>"delete_sclass", :classid=>params[:classid]%>
- <%end%>
- </p>
- <p class="more">
- <a href="#"></a>
- </p>
- </div>
- </div>
Add Comment
Please, Sign In to add comment