29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
|
<table class="table main-list">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th><%= t("ruling_weather.dataid") %></th>
|
||
|
<th><%= t("ruling_weather.location") %></th>
|
||
|
<th><%= t("ruling_weather.observatory_name") %></th>
|
||
|
<th><%= t(:action) %></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @settings.each do |setting| %>
|
||
|
<tr>
|
||
|
<td><%= setting.dataid %></td>
|
||
|
<td><%= setting.location %></td>
|
||
|
<td><%= setting.observatory_name %></td>
|
||
|
<td>
|
||
|
<%= link_to(t("restful_actions.edit_setting"), edit_setting_admin_ruling_weather_path(setting), :class=>"btn btn-primary")%>
|
||
|
<a data-method="delete" data-confirm="Are you sure?" href="<%= admin_ruling_weather_path(setting) %>" class="delete btn btn-danger"><%= t(:delete_) %></a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<%=
|
||
|
content_tag :div, class: "bottomnav clearfix" do
|
||
|
content_tag(:div, paginate(@settings), class: "pagination pagination-centered") +
|
||
|
content_tag(:div, link_to(t("restful_actions.new_setting"),new_setting_admin_ruling_weathers_path, :class=>"btn btn-primary"), class: "pull-right")
|
||
|
end
|
||
|
%>
|