p31729568 5 years ago
parent 50b9600b80
commit 054c00767f

@ -109,22 +109,31 @@
</div> </div>
<% end %> <% end %>
</div> </div>
<% elsif !User.current.admin? %>
<div class="edu-txt-center">
<p class="font-30 color-green mb30">您还未参与报名哦,赶紧来挑战吧~</p>
<img src="/images/educoder/competition/noTeam.png"/>
</div>
<% end %> <% end %>
<% if User.current.admin? && @teams.present? %>
<% if User.current.admin?%>
<div class="mt20">
<input class="fl ml20 mb5" style="padding: 5px; width: 200px; line-height: 20px;" maxlength="10" placeholder="输入学校名称进行搜索" type="text" id="school_name"> <input class="fl ml20 mb5" style="padding: 5px; width: 200px; line-height: 20px;" maxlength="10" placeholder="输入学校名称进行搜索" type="text" id="school_name">
<a href="javascript:void(0);" class="fl task-btn task-btn-orange ml5 mb5" onclick="search_enroll_team();">搜索</a> <a href="javascript:void(0);" class="fl task-btn task-btn-orange ml5 mb5" onclick="search_enroll_team();">搜索</a>
<span class="fl mb5 ml10 pr5 none">战队数:<span id="search_teams_count" class="color-orange"></span>个</span> <span class="fl mb5 ml10 pr5 none">战队数:<span id="search_teams_count" class="color-orange"></span>个</span>
<span class="fl mb5 ml10 pr5 none">成员数:<span id="team_members_count" class="color-orange"></span>个</span> <span class="fl mb5 ml10 pr5 none">成员数:<span id="team_members_count" class="color-orange"></span>个</span>
<span class="fr mb5 pr5"><%= @maximum_staff > 1 ? "战队总数" : "报名人数" %><span class="color-orange"><%= @team_count %></span>个</span> <span class="fr mb5 pr5"><%= @maximum_staff > 1 ? "战队总数" : "报名人数" %><span class="color-orange"><%= @team_count %></span>个</span>
<div class="cl"></div> <div class="cl"></div>
<% if @teams.present? %>
<%= render :partial => "competitions/team_list" %> <%= render :partial => "competitions/team_list" %>
<% else %> <% else %>
<% if @teams.blank? %>
<div class="edu-txt-center"> <div class="edu-txt-center">
<p class="font-30 color-green mb30">您还未参与报名哦,赶紧来挑战吧~</p> <p class="font-30 color-green mb30">还没有人报名~</p>
<img src="/images/educoder/competition/noTeam.png"/> <img src="/images/educoder/competition/noTeam.png"/>
</div> </div>
<% end %> <% end %>
</div>
<% end %> <% end %>
</div> </div>
</div> </div>

Loading…
Cancel
Save