プロジェクト

全般

プロフィール

« | » 

リビジョン 3e14a86b

高徹 高橋 徹 さんが約6年前に追加

[phase-20]Add edit and delete icons in category index

差分を表示:

app/views/glossary_categories/index.html.erb
<td class="name"><%= link_to category.name, [@project, category] %></td>
<td class="buttons">
<%= reorder_handle(category, url: project_glossary_category_path(@project, category)) %>
<%= link_to_if_authorized l(:button_edit), {
controller: :glossary_categories, action: :edit, id: category,
project_id: @project
}, class: 'icon icon-edit' %>
<%= link_to_if_authorized l(:button_delete), {
controller: :glossary_categories, action: :destroy, id: category,
project_id: @project
}, method: :delete, data: {confirm: l(:text_are_you_sure)},
class: 'icon icon-del' %>
</td>
</tr>
<% end %>

他の形式にエクスポート: Unified diff