-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Css: Delete confirmation with css-only modal #2946
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1849529
Css: Delete confirmation with css-only modal
SaptakS 1ed2ec3
Test: Fix functional test for deletion of collections and documents
SaptakS 05ad785
Test: Update page layout tests for deletion of collections and documents
SaptakS 51e8472
Test: Rename javascript tests to modal for deletion confirmation
SaptakS 1e64f36
Separate out modal into a re-usable block
SaptakS 6ed9a86
Test: Ensure document and collections are there to be deleted
SaptakS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div id="{{ modal_data.modal_id }}" class="modal-dialog"> | ||
<a href="#close" class="external"></a> | ||
<div> | ||
<a href="#close" title="{{ gettext('Close') }}" class="close">X</a> | ||
<h2>{{ modal_data.modal_header }}</h2> | ||
<p>{{ modal_data.modal_body }}</p> | ||
<a href="#close" id="{{ modal_data.cancel_id }}" title="{{ gettext('Cancel') }}" class="btn sd-button">{{ gettext('Cancel') }}</a> | ||
<button type="submit" id="{{ modal_data.submit_id }}" name="action" value="delete" class="sd-button {{ modal_data.submit_btn_type }}">{{ modal_data.submit_btn_text }}</button> | ||
</div> | ||
</div> |
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
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
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
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,6 +1,7 @@ | ||
@import base | ||
@import modules/visually-hidden | ||
@import modules/menu | ||
@import modules/confirm-modal | ||
|
||
+base_rules | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.modal-dialog | ||
position: fixed | ||
top: 0 | ||
right: 0 | ||
bottom: 0 | ||
left: 0 | ||
background: rgba(0, 0, 0, 0.8) | ||
z-index: 99999 | ||
opacity: 0 | ||
-moz-transition: opacity 100ms ease-in | ||
transition: opacity 100ms ease-in | ||
pointer-events: none | ||
|
||
&:target | ||
opacity: 1 | ||
pointer-events: auto | ||
|
||
.external | ||
position: fixed | ||
top: 0 | ||
left: 0 | ||
width: 100% | ||
height: 100% | ||
|
||
div | ||
width: 400px | ||
position: relative | ||
margin: 10% auto | ||
padding: 5px 20px 13px 20px | ||
border-radius: 10px | ||
background: white | ||
|
||
.close | ||
background: $color_grey_medium | ||
color: white | ||
line-height: 25px | ||
position: absolute | ||
right: -12px | ||
text-align: center | ||
top: -10px | ||
width: 24px | ||
text-decoration: none | ||
font-weight: bold | ||
-moz-border-radius: 12px | ||
border-radius: 12px | ||
-moz-box-shadow: 1px 1px 3px #000 | ||
box-shadow: 1px 1px 3px #000 | ||
|
||
&:hover | ||
background: $color_purple_medium |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All get_string must also be revomved from the
securedrop/journalist_templates/js-strings.html
fileThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved this.