<%= EnterpriseToken.human_attribute_name(:subscriber) %>
<%= @current_token.subscriber %>
<%= EnterpriseToken.human_attribute_name(:mail) %>
<%= @current_token.mail %>
<% Hash(@current_token.restrictions).each do |key, value| %>
<%= EnterpriseToken.human_attribute_name("#{key}_restriction") %>
<%= value %>
<% end %>
<%= EnterpriseToken.human_attribute_name(:starts_at) %>
<%= format_date @current_token.starts_at %>
<% if @current_token.will_expire? %>
<%= EnterpriseToken.human_attribute_name(:expires_at) %>
<%= format_date @current_token.expires_at %>
<% end %>
<%= form_tag({ action: :destroy }, method: :delete) do %> <%= styled_button_tag t(:button_delete), type: 'submit', class: '-with-icon icon-delete' %> <% end %>