Sha256: a976e5574ab9fbe10f5cbe4dae65c3d195984efd956e126c6dce1d5effced9a9

Contents?: true

Size: 1.08 KB

Versions: 39

Compression:

Stored size: 1.08 KB

Contents

<%= content_for :breadcrumbs do %>
  <% if current_logged_user? %>
    <%= breadcrumbs_for_my_account %>
  <% else %>
    <%= header_breadcrumbs %>
  <% end %>
<% end %>

<div class="mu-user-header">
  <h1><%= t(:terms_and_conditions) %></h1>
</div>

<div>
  <% @profile_terms.each do |term| %>
    <%= render partial: 'term', locals: {term: term, collapsed: current_user&.has_accepted?(term)} %>
  <% end %>
</div>

<% if @user&.has_role_terms_to_accept? %>
  <div class="terms-acceptance">
    <%= form_for :user, url: terms_user_path, method: :post  do |f| %>
      <span class="terms-acceptance-checkbox">
        <%= f.check_box :terms_of_service, required: true, class: 'form-check-input',
                        onInvalid: "this.setCustomValidity('#{t(:terms_and_conditions_must_be_accepted)}')",
                        onChange: "this.setCustomValidity(validity.valueMissing ? '#{t(:terms_and_conditions_must_be_accepted)}' : '')" %>
        <%= t(:accept_terms) %>
      </span>
      <%= f.submit t(:accept), class: 'btn btn-complementary terms-acceptance-btn' %>
    <% end %>
  </div>
<% end %>

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/views/users/terms.html.erb
mumuki-laboratory-9.22.0 app/views/users/terms.html.erb
mumuki-laboratory-9.21.0 app/views/users/terms.html.erb
mumuki-laboratory-9.20.1 app/views/users/terms.html.erb
mumuki-laboratory-9.20.0 app/views/users/terms.html.erb
mumuki-laboratory-9.19.0 app/views/users/terms.html.erb
mumuki-laboratory-9.18.1 app/views/users/terms.html.erb
mumuki-laboratory-9.18.0 app/views/users/terms.html.erb
mumuki-laboratory-9.17.0 app/views/users/terms.html.erb
mumuki-laboratory-9.16.0 app/views/users/terms.html.erb
mumuki-laboratory-9.15.0 app/views/users/terms.html.erb
mumuki-laboratory-9.14.1 app/views/users/terms.html.erb
mumuki-laboratory-9.14.0 app/views/users/terms.html.erb
mumuki-laboratory-9.13.2 app/views/users/terms.html.erb
mumuki-laboratory-9.13.1 app/views/users/terms.html.erb
mumuki-laboratory-9.13.0 app/views/users/terms.html.erb
mumuki-laboratory-9.12.1 app/views/users/terms.html.erb
mumuki-laboratory-9.12.0 app/views/users/terms.html.erb
mumuki-laboratory-9.11.0 app/views/users/terms.html.erb
mumuki-laboratory-9.10.0 app/views/users/terms.html.erb