Skip to content

Commit

Permalink
Merge pull request #3468 from sul-dlss/3465-show-upload-radio-button-…
Browse files Browse the repository at this point in the history
…max-files

show the browser upload radio even when more than max files uploaded
  • Loading branch information
ndushay authored Feb 6, 2024
2 parents 89f9ed9 + 8e54c43 commit 3a46d37
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions app/components/works/add_files_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,18 @@
</div>
</div>
</div>
<% else %>
<p style="color: var(--stanford-warning);">
<strong>
You have more than <%= max_upload_files %> files in your deposit. We can not display all of your files here, but if you need to make changes, select one of the two options below.
</strong>
</p>
<% end %>
<% else %>
<div class="form-check pt-3" data-complex-radio-target="selection">
<%= form.radio_button :upload_type, 'browser', class: 'form-check-input', 'data-file-uploads-target': 'browserRadioButton',
data: { action: 'complex-radio#disableUnselectedInputs file-uploads#updatePanelVisibility deposit-button#updateDepositButtonStatus' } %>
<%= form.label :upload_type_browser, "Keep the more than #{max_upload_files} files uploaded.", class: 'form-check-label fw-semibold' %>
<p style="color: var(--stanford-warning);">
<strong>
You have more than <%= max_upload_files %> files in your deposit. We can not display all of your files here, but if you need to make changes, select one of the two options below.
</strong>
</p>
</div>
<% end %>
<div class="form-check pt-3" data-complex-radio-target="selection">
<%= form.radio_button :upload_type, 'zipfile', class: 'form-check-input',
data: { action: 'complex-radio#disableUnselectedInputs file-uploads#updatePanelVisibility deposit-button#updateDepositButtonStatus', file_uploads_target: 'zipRadioButton' } %>
Expand Down

0 comments on commit 3a46d37

Please sign in to comment.