-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5770 from freedomofpress/nellie-bly
Adds "safe deletion" functionality to journalist interface
- Loading branch information
Showing
35 changed files
with
642 additions
and
112 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
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,13 +1,17 @@ | ||
<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> | ||
<a href="#close" title="{{ gettext('Close') }}" class="close"> <img src="{{ url_for('static', filename='i/modal-x-white.png') }}" height="24" width="24"></a> | ||
<h2>{{ modal_data.modal_header }}</h2> | ||
<p>{{ modal_data.modal_body }}</p> | ||
{% if modal_data.modal_warning is defined %} | ||
<p><em>{{ modal_data.modal_warning }}</em></p> | ||
{% endif %} | ||
<a href="#close" id="{{ modal_data.cancel_id }}" title="{{ gettext('Cancel') }}" class="btn upper">{{ gettext('Cancel') }}</a> | ||
<button type="submit" id="{{ modal_data.submit_id }}" name="action" value="delete" class="{{ modal_data.submit_btn_type }} upper">{{ modal_data.submit_btn_text }}</button> | ||
<center> | ||
<div class="btn-row"> | ||
<a href="#close" id="{{ modal_data.cancel_id }}" title="{{ gettext('Cancel') }}" class="btn cancel small">{{ gettext('Cancel') }}</a> | ||
<button type="submit" id="{{ modal_data.submit_id }}" name="action" value="delete" class="btn small {{ modal_data.submit_btn_type }}">{{ modal_data.submit_btn_text }}</button> | ||
</div> | ||
</center> | ||
</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
19 changes: 19 additions & 0 deletions
19
securedrop/journalist_templates/_sources_confirmation_final_modal.html
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,19 @@ | ||
<div id="{{ modal_data.modal_id }}" class="menu-modal-dialog"> | ||
<a href="#close" class="external"></a> | ||
<div id="delete-confirm-menu-dialog"> | ||
<p> | ||
{{ gettext('When the account for a source is deleted:') }} | ||
<ul> | ||
<li>{{ gettext('The source will not be able to log in with their codename again.') }}</li> | ||
<li>{{ gettext('You will not be able to send them replies.') }}</li> | ||
<li>{{ gettext('All files and messages from that source will also be destroyed.') }}</li> | ||
</ul> | ||
</p> | ||
<p> | ||
<span class="modal-danger-text">{{ gettext('Are you sure this is what you want?') }}</span</p> | ||
<div class="btn-row"> | ||
<a href="#close" id="cancel-collections-deletions" title="{{ gettext('Cancel') }}" class="btn cancel small">{{ gettext('Cancel') }}</a> | ||
<button type="submit" id="delete-collections-confirm" name="action" value="delete" class="btn small danger">{{ gettext('Yes, Delete Selected Source Accounts') }}</button> | ||
</div> | ||
</div> | ||
</div> |
32 changes: 32 additions & 0 deletions
32
securedrop/journalist_templates/_sources_confirmation_modal.html
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,32 @@ | ||
<div id="{{ modal_data.modal_id }}" class="menu-modal-dialog"> | ||
<a href="#close" class="external"></a> | ||
<div id="delete-menu-dialog"> | ||
<div id="delete-menu-no-select"> | ||
<p class="modal-danger-text"> | ||
<span class="modal-danger-text">{{ gettext("Nothing Selected") }}</span> | ||
</p> | ||
<p> | ||
{{ gettext("You must select one or more items for deletion.") }} | ||
</p> | ||
</div> | ||
<div id="delete-menu-cta"> | ||
<p> | ||
<span id="delete-menu-summary"></span> | ||
</p> | ||
<p> | ||
{{ gettext("What would you like to delete?") }} | ||
</p> | ||
<p> | ||
<button id="delete-files-and-messages" type="submit" name="action" value="delete-data" class="small btn danger modal-stacked">{{ gettext('Files and Messages') }}</button> | ||
</p> | ||
<p> | ||
<a href="#delete-sources-confirm-modal" id="delete-collections"> | ||
<button type="button" class="small danger btn modal-stacked">{{ gettext('Source Accounts') }}</button> | ||
</a> | ||
</p> | ||
</div> | ||
<p> | ||
<a href="#close" id="delete-menu-dialog-cancel">{{ gettext('Cancel') }}</a> | ||
</p> | ||
</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
Oops, something went wrong.