seminar/app/views/admin/seminars/seminar_signup.html.erb

30 lines
1.1 KiB
Plaintext

<span id="index_table" style="display: inline-block;">
<script>
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
</script>
<% if @can_edit %>
<ul class="pull-right">
<li><a href="?type=" class="btn <%='active' if params[:type] == ''%>"><%= t('seminar.dashboard') %></a></li>
<% if @seminar.enable_summary_choice %>
<li><a href="?type=session" class="btn <%='active' if params[:type] == 'session'%>"><%= t('seminar.session_dashboard') %></a></li>
<% end %>
<li><a href="?type=table" class="btn <%='active' if params[:type] == 'table'%>"><%= t('seminar.table') %></a></li>
</ul>
<% end %>
<% if params[:type] == "table" || (!@can_edit) %>
<div style="clear: both;"></div>
<%= render :partial => 'seminar_signup_table' %>
<% elsif params[:type] == "session" %>
<%=render :partial => 'seminar_signup_session_dashboard' %>
<% else %>
<%= render :partial => 'seminar_signup_dashboard' %>
<% end %>
<style type="text/css">
.pull-right li{
float: left;
}
li{
list-style: none;
}
</style>