index.html.erb
2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<div class="content-wrapper">
<div class="row">
<div class="col-xl-12">
<!-- START card-->
<div id="accordion">
<!-- START card-->
<div class="card card-default">
<div class="card-header">
<div class="row">
<div class="col-md-8">
<%= t('admin.page_langs.page_title') %>
</div>
<div class="col-md-4 text-right">
<%= link_to I18n.t('admin.page_langs.create'), new_admin_page_lang_url, class: 'btn btn-primary' %>
</div>
</div>
</div>
<div class="card-body">
<!-- START table-responsive-->
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th><%= Kanjai::PageLang.human_attribute_name(:code) %></th>
<th><%= Kanjai::PageLang.human_attribute_name(:title) %></th>
<th width="50px"></th>
</tr>
</thead>
<tbody>
<% @collection.each do |item| %>
<tr id='<%= dom_id(item) %>'>
<td><%= item.code %></td>
<td><%= item.title %></td>
<td>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle dropdown-toggle-nocaret" type="button" data-toggle="dropdown" aria-expanded="false">
<span class="dropdown-text"><span class="icon icon-options-vertical"></span></span>
</button>
<ul class="dropdown-menu">
<li class="dropdown-item"><%= link_to t('actions.edit'), edit_admin_page_lang_url(item), class: 'dropdown-item' %></li>
<li class="dropdown-item"><%= link_to t('actions.delete'), admin_page_lang_url(item), :class => 'delete-row-item dropdown-item' %></li>
</ul>
</div>
</td>
</tr>
<% end %>
</tbody>
</table>
</div><!-- END table-responsive-->
</div>
</div><!-- END card-->
</div>
</div>
</div>
</div>