OSDN Git Service

t#30322:create provider license import func
[pettanr/pettanr.git] / app / views / provider_statuses / licenses_import.html.erb
1 <h1><%= t('.title') %></h1>
2 <p id="notice"><%= notice %></p>
3
4 <% if @failures.empty? %>
5   <h2>
6     <%= t('provider_statuses.licenses_import.success') %>
7   </h2>
8 <% else %>
9   <h2>
10     <%= t('provider_statuses.licenses_import.fail', :size => @failures.size) %>
11   </h2>
12   <table>
13     <tr>
14       <th><%= t_m 'License.caption' -%></th>
15       <th><%= t_m 'License.name' -%></th>
16     </tr>
17     <% @failures.each do |license| %>
18       <tr>
19         <td>
20           <%= link_to h(license['caption']), license['url'] %>
21         </td>
22         <td>
23           <%= h(license['name']) %>
24         </td>
25       </tr>
26     <% end %>
27   </table>
28   <%= link_to t('provider_statuses.licenses_import.to_show'), provider_status_path(@provider_status) %>
29 <% end %>