column-picker.blade.php
2 years ago
group-picker.blade.php
2 years ago
rows.blade.php
2 years ago
table.blade.php
2 years ago
group-picker.blade.php
52 lines
| 1 | <div class="group modal-parent small" |
| 2 | data-controller="group" |
| 3 | data-group-group-id-value="<?php esc_attr_e($group->id()); ?>" |
| 4 | data-group-group-name-value="<?php esc_attr_e($group->singular()); ?>" |
| 5 | > |
| 6 | <button id="group" |
| 7 | class="iawp-button ghost-white toolbar-button" |
| 8 | data-action="group#toggleModal" |
| 9 | data-group-target="modalButton" |
| 10 | > |
| 11 | <span class="dashicons dashicons-open-folder"></span> |
| 12 | <span class="iawp-label"> |
| 13 | <?php echo esc_html__('Group by ', 'independent-analytics') ?> |
| 14 | <span data-group-target="buttonText"><?php esc_html_e($group->singular()) ?></span> |
| 15 | </span> |
| 16 | </button> |
| 17 | <div id="modal-group" |
| 18 | class="modal small" |
| 19 | data-group-target="modal" |
| 20 | > |
| 21 | <div class="modal-inner"> |
| 22 | <div class="title-small"> |
| 23 | <?php |
| 24 | esc_html_e('Group table by', 'independent-analytics'); ?> |
| 25 | </div> |
| 26 | |
| 27 | <form data-group-target="form"> |
| 28 | <?php foreach($buttons as $button): ?> |
| 29 | <label for="<?php esc_attr_e($button->id()) ?>"> |
| 30 | <input type="radio" |
| 31 | name="group" |
| 32 | id="<?php esc_attr_e($button->id()) ?>" |
| 33 | value="<?php esc_attr_e($button->id()) ?>" |
| 34 | data-testid="group-by-<?php esc_attr_e($button->id()) ?>" |
| 35 | /> |
| 36 | <?php esc_html_e($button->singular()) ?> |
| 37 | </label> |
| 38 | <?php endforeach; ?> |
| 39 | </form> |
| 40 | <div> |
| 41 | </div> |
| 42 | <div> |
| 43 | <button class="iawp-button purple" |
| 44 | data-dates-target="apply" |
| 45 | data-action="group#apply" |
| 46 | > |
| 47 | <?php esc_html_e('Apply', 'independent-analytics') ?> |
| 48 | </button> |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |
| 52 | </div> |