orbit-personalbook/app/views/panel/personal_book/back_end/writing_book_categorys/_writing_book_category.html...

23 lines
920 B
Plaintext

<tr id="<%= dom_id writing_book_category %>" class="with_action">
<td>
<%= writing_book_category.key %>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<% if is_admin?%>
<li><%= link_to t('writing_book_category.edit'),
polymorphic_path([:panel, :personal_book, :back_end, writing_book_category], {:action => :edit}), :remote => true %></li>
<li><%= link_to show_toggle_archive_btn(writing_book_category), polymorphic_path([:panel, :personal_book, :back_end, writing_book_category]), :confirm => t('sure?'), :method => :delete, :remote => true,:class=>"archive_toggle" %></li>
<% end %>
</ul>
</div>
</td>
<% if @types.is_localized?(:title) %>
<% @site_in_use_locales.each do |locale| %>
<td><%= writing_book_category.title_translations[locale] rescue nil %></td>
<% end %>
<% else %>
<td><%= writing_book_category.title %></td>
<% end %>
</tr>