Sha256: 313578a02b3e6b786840dfdc8fa283524706dd41da4d836212bae21501513fd4

Contents?: true

Size: 1.82 KB

Versions: 3

Compression:

Stored size: 1.82 KB

Contents

<aside id="form-progress" class="form-progress panel panel-default">
  <div class="panel-heading">

    <h2><%= t("sufia.#{controller_name}.progress.header") %></h2>
  </div>
  <div class="list-group">
    <div class="list-group-item">
      <h3>Requirements</h3>
      <ul class="requirements">
        <li class="incomplete" id="required-metadata">Enter required metadata</li>
        <li class="incomplete" id="required-files">Add files</li>
      </ul>
    </div>

    <div class="set-access-controls list-group-item">
      <%= render 'form_visibility_component', f: f %>
    </div>
    <% unless current_user.can_make_deposits_for.empty? %>
        <div class="list-group-item">
          <%= f.input :on_behalf_of, collection: current_user.can_make_deposits_for.map(&:user_key), prompt: "Yourself" %>
        </div>
    <% end %>
    <div class="panel-footer text-center">
      <% if Sufia::Engine.config.active_deposit_agreement_acceptance %>
          <label>
            <%= check_box_tag 'agreement', 1, f.object.agreement_accepted, required: true %>
            <%= t('sufia.active_consent_to_agreement') %><br>
            <%= link_to t('sufia.deposit_agreement'),
                        sufia.static_path('agreement'),
                        target: '_blank' %>
          </label>
      <% else %>
          <%= t('sufia.passive_consent_to_agreement') %><br>
          <%= link_to t('sufia.deposit_agreement'),
                      sufia.static_path('agreement'),
                      target: '_blank' %>
      <% end %>
      <br>
      <%= link_to t(:'helpers.action.cancel'),
                  sufia.dashboard_index_path,
                  class: 'btn btn-default' %>
      <%= f.submit 'Save', class: 'btn btn-primary', onclick: "confirmation_needed = false;", id: "with_files_submit", name: "save_with_files" %>
    </div>
  </div>
</aside>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sufia-7.0.0.beta3 app/views/curation_concerns/base/_form_progress.html.erb
sufia-7.0.0.beta2 app/views/curation_concerns/base/_form_progress.html.erb
sufia-7.0.0.beta1 app/views/curation_concerns/base/_form_progress.html.erb