-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I4523 close suggest correction modal (#4541)
* Match suggest_correction modal to other feedback modals * Add test that works against Blacklight 8 - I can't figure out why the test doesn't pass on BL7, but the code does work. I've tried adding various ways of waiting, but they make no difference
- Loading branch information
Showing
2 changed files
with
33 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
<div data-blacklight-modal="container"> | ||
<div class="modal-header"> | ||
<h3 class="modal-title">Suggest a Correction</h3> | ||
<button type="button" class="close" data-dismiss="modal">×</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="row"> | ||
<div id="generalFeedback" class="form-wrapper col"> | ||
<div class="form-wrapper"> | ||
<%= render partial: "catalog/suggest_correction_form", | ||
locals: { form: @suggest_correction_form } | ||
%> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<%= render Blacklight::System::ModalComponent.new do |component| %> | ||
<% component.title { t('blacklight.suggest_correction.form.title') } %> | ||
<% component.body do %> | ||
<%= render partial: "catalog/suggest_correction_form", | ||
locals: { form: @suggest_correction_form } | ||
%> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters