Sha256: 8a290df91a844fec4ada92ed5fa2768d25c2e0acf3f2e535437de2c85d8c64d7

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

<%= raw @term.to_html %>

<hr/>

<% if @user_term.persisted? && @user_term.state == "accepted" %>
  
  <div>
    <strong><%= I18n.t("terms_app.user_terms.show.accepted.message") %></strong>
    <br/><%= I18n.t("terms_app.user_terms.show.accepted.question") %>

    <%= form_with model: @user_term, url: reject_user_term_path(params[:id]), method: :put, local: true do |f| %>
      <%= f.submit I18n.t("terms_app.user_terms.show.accepted.reject"), class: "btn btn-danger" %>
      <%= link_to I18n.t("terms_app.user_terms.show.pending.not_now"), pending_user_terms_path, class: "btn btn-secondary" %>
    <% end %>

  </div>

<% else %>
  <strong>
    <%= current_user.email %>
  </strong> <%= I18n.t("terms_app.user_terms.show.pending.message") %>

  <hr/>

  <%= form_with model: @user_term, url: accept_user_term_path(params[:id]), method: :put, local: true do |f| %>
    <%= f.submit I18n.t("terms_app.user_terms.show.pending.agree"), class: "btn btn-success" %>
    <%= link_to I18n.t("terms_app.user_terms.show.pending.not_now"), pending_user_terms_path, class: "btn btn-secondary" %>
  <% end %>

  <hr/>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gdpr_rails-0.3.0 app/views/policy_manager/user_terms/show.html.erb
gdpr_rails-0.2.4 app/views/policy_manager/user_terms/show.html.erb
gdpr_rails-0.2.2 app/views/policy_manager/user_terms/show.html.erb
gdpr_rails-0.2.1 app/views/policy_manager/user_terms/show.html.erb
gdpr_rails-0.2.0 app/views/policy_manager/user_terms/show.html.erb