nccu_com_vnccu_program/app/views/admin/nccu_com_vnccu_programs/song_list.html.erb

63 lines
2.2 KiB
Plaintext

<span id="index_table">
<script>
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
</script>
<h4><%= @nccu_com_vnccu_program.program_name %></h4>
<table class="table main-list">
<thead>
<tr class="sort-header">
<th class='span2'><%= t('vod.time')%></th>
<th class='span2'><%= t('vod.name')%></th>
<th class='span2'><%= t('vod.song')%></th>
<th class='span2'><%= t('vod.singer')%></th>
<th class='span2'><%= t('vod.vod_partner')%></th>
<th class='span2'><%= t('vod.email')%></th>
<th class='span2'><%= t('vod.play_status')%></th>
</tr>
</thead>
<tbody>
<% @song_lists.each do |song_list| %>
<tr>
<td><%= format_value song_list.created_at %></td>
<td>
<%= song_list.name %>
<div class="quick-edit">
<ul class="nav nav-pills">
<li><a href="#" class="detail-row" onclick="$('#<%= "#{song_list.id.to_s}-detail" %>').slideToggle(300); return false;"><%= t("nccu_com_vnccu_program.description") %></a></li>
<% if can_edit_or_delete?(song_list) %>
<li><a href="#" class="delete text-error" rel="/admin/nccu_com_vnccu_program_song_lists/<%=song_list.id.to_s%>"><%= t(:delete_) %></a></li>
<% end %>
</ul>
</div>
</td>
<td><%= song_list.song %></td>
<td><%= song_list.singer %></td>
<td><%= song_list.vod_partner %></td>
<td><%= song_list.email %></td>
<td><a href="/admin/nccu_com_vnccu_program_song_lists/<%=song_list.id.to_s%>/edit" class="btn"><%= t(:edit) %></a></td>
</tr>
<tr class="footable-row-detail">
<td class="footable-cell-detail" colspan="6">
<div id="<%= "#{song_list.id.to_s}-detail" %>" class="footable-row-detail-inner" style="display: none;">
<div>
<strong><%= t("nccu_com_vnccu_program.description") %></strong> : <%= song_list.description %>
</div>
</div>
</td>
</tr>
<% end %>
</tbody>
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@song_lists), class: "pagination pagination-centered"
end
%>
</span>
<%= render 'layouts/delete_modal', delete_options: @delete_options %>