logs-template.php
89 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @see src/views/job/modal/success.php |
| 5 | * @see src/views/job/modal/process.php |
| 6 | */ |
| 7 | |
| 8 | $selectorUniqueId = $logType ?? uniqid(); |
| 9 | |
| 10 | ?> |
| 11 | <div class="wpstg--logs--header"> |
| 12 | <div class="wpstg-w-24"> |
| 13 | <label for="wpstg--logs--selector--<?php echo esc_attr($selectorUniqueId); ?>"></label> |
| 14 | <select class="wpstg-input wpstg-input-sm wpstg--logs--selector" id="wpstg--logs--selector--<?php echo esc_attr($selectorUniqueId); ?>"> |
| 15 | <option value="all"><?php esc_html_e('All', 'wp-staging') ?></option> |
| 16 | <option value="info"><?php esc_html_e('Info', 'wp-staging') ?></option> |
| 17 | <option value="debug"><?php esc_html_e('Debug', 'wp-staging') ?></option> |
| 18 | <option value="notice"><?php esc_html_e('Notice', 'wp-staging') ?></option> |
| 19 | <option value="warning"><?php esc_html_e('Warning', 'wp-staging') ?></option> |
| 20 | <option value="error"><?php esc_html_e('Error', 'wp-staging') ?></option> |
| 21 | <option value="critical"><?php esc_html_e('Critical', 'wp-staging') ?></option> |
| 22 | </select> |
| 23 | </div> |
| 24 | <div class="wpstg--logs--counter"> |
| 25 | <label class="wpstg--logs--checkbox-critical wpstg-log-checkbox-hidden"> |
| 26 | <span class="wpstg--logs--checkbox-button"> |
| 27 | <input type="checkbox" class="wpstg--logs--checkbox" data-type="critical" checked> |
| 28 | <?php esc_html_e('Critical:', 'wp-staging') ?> |
| 29 | <span class="wpstg--logs--counter-critical">0</span> |
| 30 | </span> |
| 31 | </label> |
| 32 | <label class="wpstg--logs--checkbox-error wpstg-log-checkbox-hidden"> |
| 33 | <span class="wpstg--logs--checkbox-button"> |
| 34 | <input type="checkbox" class="wpstg--logs--checkbox" data-type="error" checked> |
| 35 | <?php esc_html_e('Error:', 'wp-staging') ?> |
| 36 | <span class="wpstg--logs--counter-error">0</span> |
| 37 | </span> |
| 38 | </label> |
| 39 | <label class="wpstg--logs--checkbox-warning wpstg-log-checkbox-hidden"> |
| 40 | <span class="wpstg--logs--checkbox-button"> |
| 41 | <input type="checkbox" class="wpstg--logs--checkbox" data-type="warning" checked> |
| 42 | <?php esc_html_e('Warning:', 'wp-staging') ?> |
| 43 | <span class="wpstg--logs--counter-warning">0</span> |
| 44 | </span> |
| 45 | </label> |
| 46 | <label class="wpstg--logs--checkbox-notice wpstg-log-checkbox-hidden"> |
| 47 | <span class="wpstg--logs--checkbox-button"> |
| 48 | <input type="checkbox" class="wpstg--logs--checkbox" data-type="notice" checked> |
| 49 | <?php esc_html_e('Notice:', 'wp-staging') ?> |
| 50 | <span class="wpstg--logs--counter-notice">0</span> |
| 51 | </span> |
| 52 | </label> |
| 53 | <label class="wpstg--logs--checkbox-debug wpstg-log-checkbox-hidden"> |
| 54 | <span class="wpstg--logs--checkbox-button"> |
| 55 | <input type="checkbox" class="wpstg--logs--checkbox" data-type="debug" checked> |
| 56 | <?php esc_html_e('Debug:', 'wp-staging') ?> |
| 57 | <span class="wpstg--logs--counter-debug">0</span> |
| 58 | </span> |
| 59 | </label> |
| 60 | <label class="wpstg--logs--checkbox-info wpstg-log-checkbox-hidden"> |
| 61 | <span class="wpstg--logs--checkbox-button"> |
| 62 | <input type="checkbox" class="wpstg--logs--checkbox" data-type="info" checked> |
| 63 | <?php esc_html_e('Info:', 'wp-staging') ?> |
| 64 | <span class="wpstg--logs--counter-info">0</span> |
| 65 | </span> |
| 66 | </label> |
| 67 | </div> |
| 68 | </div> |
| 69 | <div class="wpstg--logs--body"> |
| 70 | <table class="wpstg--logs-table"> |
| 71 | <thead> |
| 72 | <tr> |
| 73 | <th></th> |
| 74 | <th><?php esc_html_e('Level', 'wp-staging') ?></th> |
| 75 | <th><?php esc_html_e('Time', 'wp-staging') ?></th> |
| 76 | <th><?php esc_html_e('Description', 'wp-staging') ?></th> |
| 77 | </tr> |
| 78 | </thead> |
| 79 | <tbody class="wpstg--logs-table--body"> |
| 80 | <tr class="wpstg--logs-table--template-row hidden"> |
| 81 | <td></td> |
| 82 | <td></td> |
| 83 | <td class="wpstg--logs-table--date"></td> |
| 84 | <td></td> |
| 85 | </tr> |
| 86 | </tbody> |
| 87 | </table> |
| 88 | </div> |
| 89 |