OSDN Git Service

t#30322:create provider license import func
[pettanr/pettanr.git] / app / views / provider_statuses / show.html.erb
index 8775a6e..8d772e9 100644 (file)
@@ -1,38 +1,44 @@
-<h1>借受状況</h1>
+<h1><%= t('.title') %></h1>
 <p id="notice"><%= notice %></p>
 
 <%= render 'provider', :provider => @provider_status.provider %>
 <%= render 'basic', :provider_status => @provider_status %>
 
 <p>
-token
-<%= h(@provider_status.token) %>
+  <%= t_m 'ProviderStatus.token' -%>
+  <%= h(@provider_status.token) %>
 </p>
 <p>
-receive_hour1
-<%= h(@provider_status.receive_hour1) if @provider_status.receive_hour1 %>
+  <%= t_m 'ProviderStatus.receive_hour1' -%>
+  <%= h(@provider_status.receive_hour1) if @provider_status.receive_hour1 %>
 </p>
 <p>
-receive_hour2
+  <%= t_m 'ProviderStatus.receive_hour2' -%>
 <%= h(@provider_status.receive_hour2) if @provider_status.receive_hour2 %>
 </p>
 <p>
-  <%= link_to '貸手', providers_path(@provider_status.provider) %>
+  <%= link_to t('provider_statuses.show.to_provider'), providers_path(@provider_status.provider) %>
 </p>
 
 <p>
-  <%= link_to 'サイトの借手向けページを開く', @provider_status.provider.demander_url %>
-</p>
-
-<p>
-  借受するには借手となって借受申請する。 
+  <%= link_to t('provider_statuses.show.user_open'), @provider_status.provider.url %>
 </p>
 <p>
-  <% if @provider_status.status == 0 %>
-    <%= link_to 'この貸手からの借受を開始する', edit_provider_status_path(@provider_status) %>
-  <% else %>
-    <%= link_to '借受を停止する', provider_status_path(@provider_status), :method => :delete %>
-  <% end %>
+  <%= link_to t('provider_statuses.show.demander_open'), @provider_status.provider.demander_url %>
 </p>
-<%= link_to 'Back', provider_statuses_path %>
+
+<% if @provider_status.status == 0 %>
+  <p>
+    <%= t('provider_statuses.show.receive_announce') %>
+  </p>
+  <%= link_to t('provider_statuses.show.receive_start'), edit_provider_status_path(@provider_status) %>
+<% else %>
+  <p>
+    <%= link_to t('provider_statuses.show.licenses_import'), licenses_import_provider_status_path(@provider_status), :method => :post %>
+  </p>
+  <p>
+    <%= link_to t('provider_statuses.show.receive_stop'), provider_status_path(@provider_status), :method => :delete %>
+  </p>
+<% end %>
+<%= link_to t('link.back'), provider_statuses_path %>