form-fields
11 months ago
modules
6 months ago
module-editor.blade.php
11 months ago
module-picker.blade.php
11 months ago
module-templates.blade.php
11 months ago
overview.blade.php
9 months ago
module-picker.blade.php
35 lines
| 1 | @php /** @var \IAWP\Env $env */ @endphp |
| 2 | @php /** @var \IAWP\Overview\Overview $overview */ @endphp |
| 3 | @php /** @var \IAWP\Overview\Modules\Module[] $saved_modules */ @endphp |
| 4 | @php /** @var \IAWP\Overview\Modules\Module[] $template_modules */ @endphp |
| 5 | |
| 6 | <div data-controller="module-picker" |
| 7 | data-action="add-module:addModule@window->module-picker#scrollToPicker" |
| 8 | class="iawp-module module-picker show-intro" |
| 9 | > |
| 10 | <div class="module-intro"> |
| 11 | <button class="add-module-button" data-action="module-picker#showList"> |
| 12 | <span class="button-inner iawp-button"><?php esc_html_e('Add Module', 'independent-analytics'); ?></span> |
| 13 | </button> |
| 14 | </div> |
| 15 | |
| 16 | <div class="module-picker-inner"> |
| 17 | <div class="module-picker-header"> |
| 18 | <span><?php esc_html_e('Choose a module', 'independent-analytics'); ?></span> |
| 19 | <button class="iawp-button" data-action="module-picker#cancel"><?php esc_html_e('Cancel', 'independent-analytics'); ?></button> |
| 20 | </div> |
| 21 | |
| 22 | <ul class="module-picker-list"><?php |
| 23 | foreach($template_modules as $module) : ?> |
| 24 | <li> |
| 25 | <button data-action="module-picker#showModule" |
| 26 | data-module-id="<?php echo esc_attr($module->module_type()); ?>"> |
| 27 | <span class="module-icon"><?php echo iawp_blade()->run('icons.overview.' . $module->module_type()); ?></span> |
| 28 | <span class="module-name"><?php echo esc_html($module->module_name()); ?></span> |
| 29 | <span class="dashicons dashicons-arrow-right-alt2"></span> |
| 30 | </button> |
| 31 | </li><?php |
| 32 | endforeach; ?> |
| 33 | </ul> |
| 34 | </div> |
| 35 | </div> |