create-module
2 years ago
create-module.php
5 years ago
delete-module.php
6 years ago
import-module-settings-section.php
6 years ago
import-module.php
5 months ago
manage-tracking.php
6 years ago
delete-module.php
103 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Confirmation modal for when deleting things. |
| 4 | * |
| 5 | * It's used in: |
| 6 | * -Main dashboard page => for deleting modules. |
| 7 | * -All listing pages => for deleting modules and for deleting their tracking data. |
| 8 | * -Emails lists page => for deleting submission entries. |
| 9 | * -Settings page => for deleting palettes and IPs. |
| 10 | * |
| 11 | * @package Hustle |
| 12 | * @since 4.0.0 |
| 13 | */ |
| 14 | |
| 15 | ?> |
| 16 | <div class="sui-modal sui-modal-sm"> |
| 17 | |
| 18 | <div |
| 19 | role="dialog" |
| 20 | id="hustle-dialog--delete" |
| 21 | class="sui-modal-content" |
| 22 | aria-modal="true" |
| 23 | aria-labelledby="hustle-dialog--delete-title" |
| 24 | aria-describedby="hustle-dialog--delete-description" |
| 25 | > |
| 26 | |
| 27 | <div class="sui-box"> |
| 28 | |
| 29 | <div class="sui-box-header sui-content-center sui-flatten sui-spacing-top--60"> |
| 30 | |
| 31 | <button class="sui-button-icon sui-button-float--right hustle-modal-close" data-modal-close> |
| 32 | <i class="sui-icon-close sui-md" aria-hidden="true"></i> |
| 33 | <span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog window', 'hustle' ); ?></span> |
| 34 | </button> |
| 35 | |
| 36 | <h3 id="hustle-dialog--delete-title" class="sui-box-title sui-lg"></h3> |
| 37 | |
| 38 | </div> |
| 39 | |
| 40 | <div id="hustle-delete-dialog-content"></div> |
| 41 | |
| 42 | </div> |
| 43 | |
| 44 | </div> |
| 45 | |
| 46 | </div> |
| 47 | |
| 48 | <script type="text/template" id="hustle-dialog--delete-tpl"> |
| 49 | |
| 50 | <form id="hustle-delete-form" method="post"> |
| 51 | |
| 52 | <div class="sui-box-body sui-content-center sui-spacing-top--20 sui-spacing-bottom--0"> |
| 53 | |
| 54 | <p id="hustle-dialog--delete-description" class="sui-description"> |
| 55 | <# if ( 'undefined' !== typeof description ) { #> |
| 56 | {{ description }} |
| 57 | <# } #> |
| 58 | </p> |
| 59 | |
| 60 | <# if ( 'undefined' !== typeof action ) { #> |
| 61 | <input type="hidden" name="hustle_action" value="{{ action }}" /> |
| 62 | <# } #> |
| 63 | |
| 64 | <# if ( 'undefined' !== typeof id ) { #> |
| 65 | <input type="hidden" name="id" value="{{ id }}" /> |
| 66 | <input type="hidden" name="moduleId" value="{{ id }}" /> |
| 67 | <# } #> |
| 68 | |
| 69 | <?php // Used in Entries -> bulk actions. ?> |
| 70 | <# if ( 'undefined' !== typeof ids ) { #> |
| 71 | <input type="hidden" name="ids" value="{{ ids }}" /> |
| 72 | <# } #> |
| 73 | |
| 74 | <# if ( 'undefined' !== typeof nonce ) { #> |
| 75 | <input type="hidden" id="hustle_nonce" name="hustle_nonce" value="{{ nonce }}" /> |
| 76 | <# } #> |
| 77 | |
| 78 | </div> |
| 79 | |
| 80 | <div class="sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--40"> |
| 81 | |
| 82 | <button type="button" class="sui-button sui-button-ghost hustle-cancel-button"> |
| 83 | <?php esc_attr_e( 'Cancel', 'hustle' ); ?> |
| 84 | </button> |
| 85 | |
| 86 | <button |
| 87 | class="sui-button sui-button-ghost sui-button-red hustle-delete-confirm {{ 'undefined' === typeof actionClass ? 'hustle-single-module-button-action' : actionClass }}" |
| 88 | data-hustle-action="{{ 'undefined' === typeof action ? 'delete' : action }}" |
| 89 | data-form-id="hustle-delete-form" |
| 90 | data-modal-close |
| 91 | > |
| 92 | <span class="sui-loading-text"> |
| 93 | <span class="sui-icon-trash" aria-hidden="true"></span> <?php esc_attr_e( 'Delete', 'hustle' ); ?> |
| 94 | </span> |
| 95 | <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> |
| 96 | </button> |
| 97 | |
| 98 | </div> |
| 99 | |
| 100 | </form> |
| 101 | |
| 102 | </script> |
| 103 |