form-fields
1 year ago
modules
1 year ago
module-editor.blade.php
1 year ago
module-picker.blade.php
1 year ago
module-templates.blade.php
1 year ago
overview.blade.php
1 year 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">{{ esc_html__('Add Module', 'independent-analytics') }}</span> |
| 13 | </button> |
| 14 | </div> |
| 15 | |
| 16 | <div class="module-picker-inner"> |
| 17 | <div class="module-picker-header"> |
| 18 | <span>{{ esc_html__('Choose a module', 'independent-analytics') }}</span> |
| 19 | <button class="iawp-button" data-action="module-picker#cancel">{{ esc_html__('Cancel', 'independent-analytics') }}</button> |
| 20 | </div> |
| 21 | |
| 22 | <ul class="module-picker-list"> |
| 23 | @foreach($template_modules as $module) |
| 24 | <li> |
| 25 | <button data-action="module-picker#showModule" |
| 26 | data-module-id="{{ $module->module_type() }}"> |
| 27 | <span class="module-icon">@include('icons.overview.' . $module->module_type())</span> |
| 28 | <span class="module-name">{{ $module->module_name() }}</span> |
| 29 | <span class="dashicons dashicons-arrow-right-alt2"></span> |
| 30 | </button> |
| 31 | </li> |
| 32 | @endforeach |
| 33 | </ul> |
| 34 | </div> |
| 35 | </div> |