PluginProbe ʕ •ᴥ•ʔ
Independent Analytics – WordPress Analytics Plugin / 2.8.8
Independent Analytics – WordPress Analytics Plugin v2.8.8
2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 1.19.1 1.2 1.20.0 1.21.0 1.22.0 1.22.1 1.23.0 1.23.1 1.24.0 1.24.1 1.25.0 1.25.1 1.26.0 1.27.0 1.28.0 1.28.1 1.28.2 1.28.3 1.29.0 1.3 1.30.0 1.30.1 1.4 1.5 1.6 1.7 1.8 1.9 2.0.0 2.0.1 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.10 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.11.9 2.12.0 2.12.1 2.12.2 2.13.1 2.13.2 2.13.5 2.13.6 2.14.0 2.14.1 2.14.2 2.14.4 2.14.6 2.14.7 2.14.8 2.14.9 2.2.0 2.2.1 2.3.1 2.3.2 2.4.2 2.4.3 2.5.0 2.5.1 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.7.1 2.7.2 2.7.3 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7
independent-analytics / views / partials / report-header.blade.php
independent-analytics / views / partials Last commit date
filter-column-select.blade.php 2 years ago interrupt-header.blade.php 1 year ago report-header.blade.php 2 years ago sidebar-menu-section.blade.php 2 years ago sidebar.blade.php 2 years ago
report-header.blade.php
122 lines
1 @php /** @var \IAWP\Report $report */ @endphp
2 @php /** @var bool $can_edit */ @endphp
3
4 <div id="report-title-bar" class="report-title-bar">
5 @if($report->is_saved_report())
6 <div data-controller="{{ $can_edit ? "rename-report" : "" }}"
7 data-rename-report-id-value="{{$report->id()}}"
8 data-rename-report-name-value="{{$report->name()}}"
9 class="modal-parent small rename-report">
10 <a id="rename-link" class="rename-link {{ !$can_edit ? 'no-edit' : '' }}" href="#"
11 data-action="click->rename-report#toggleModal"
12 data-rename-report-target="modalButton"
13 title="{{$report->name()}}">
14 <h1 data-name-for-report-id="{{$report->id()}}"
15 class="report-title">{{$report->name()}}</h1>
16 @if($can_edit)
17 <span class="dashicons dashicons-edit"></span>
18 @endif
19 </a>
20 @if($can_edit)
21 <div class="iawp-modal small" data-rename-report-target="modal">
22 <div class="modal-inner">
23 <div class="title-small">
24 <?php esc_html_e('Rename report', 'independent-analytics'); ?>
25 </div>
26 <p><?php esc_html_e('Give this report a new name', 'independent-analytics'); ?></p>
27 <form data-action="rename-report#rename">
28 <input type="text" data-rename-report-target="input"
29 placeholder="Report name" required>
30 <button data-rename-report-target="renameButton"
31 class="iawp-button purple"><?php esc_html_e('Update title', 'independent-analytics'); ?>
32 </button>
33 </form>
34 </div>
35 </div>
36 @endif
37 </div>
38 @else
39 <div class="primary-report-title-container">
40 <h1 class="report-title">{{$report->name()}}</h1>
41 </div>
42 @endif
43 @if($can_edit)
44 <div class="buttons">
45 @if($report->is_saved_report())
46 <div data-controller="save-report" data-save-report-id-value="{{$report->id()}}"
47 class="save-report">
48 <p data-save-report-target="warning" style="display: none;"
49 class="unsaved-warning"><span class="dashicons dashicons-warning"></span>
50 <span class="text"><?php esc_html_e('You have unsaved changes', 'independent-analytics'); ?></span></p>
51 <button id="save-report-button"
52 data-save-report-target="button"
53 data-action="save-report#save"
54 class="save-report-button iawp-button"><?php esc_html_e('Save', 'independent-analytics'); ?></button>
55 </div>
56 @endif
57
58 <div data-controller="copy-report"
59 @if($report->is_saved_report())
60 data-copy-report-id-value="{{$report->id()}}"
61 @else
62 data-copy-report-type-value="{{$report->type()}}"
63 @endif
64 class="modal-parent small copy-report"
65 >
66 <button id="save-as-report-button"
67 data-action="click->copy-report#toggleModal"
68 data-copy-report-target="modalButton"
69 class="save-as-report-button iawp-button"><?php esc_html_e('Save As', 'independent-analytics'); ?></button>
70 <div class="iawp-modal small" data-copy-report-target="modal">
71 <div class="modal-inner">
72 <div class="title-small">
73 <?php esc_html_e('Create new report', 'independent-analytics'); ?>
74 </div>
75 <p><?php esc_html_e('Enter a name for the new report.', 'independent-analytics'); ?></p>
76 <form data-action="copy-report#copy">
77 <input type="text" data-copy-report-target="input"
78 placeholder="Report name" required>
79 <button data-copy-report-target="copyButton" class="iawp-button purple">
80 <?php esc_html_e('Save as', 'independent-analytics'); ?>
81 </button>
82 </form>
83 </div>
84 </div>
85 </div>
86 <div>
87 <button id="favorite-report-button"
88 data-controller="set-favorite-report"
89 data-set-favorite-report-id-value="{{$report->is_saved_report() ? $report->id() : ''}}"
90 data-set-favorite-report-type-value="{{$report->is_saved_report() ? '' : $report->type()}}"
91 data-action="set-favorite-report#setFavoriteReport"
92 class="iawp-button favorite {{$report->is_favorite() ? 'active' : '' }}"
93 >
94 <span class="dashicons dashicons-star-filled"></span>
95 <?php esc_html_e('Make default', 'independent-analytics'); ?>
96 </button>
97 </div>
98 @if($report->is_saved_report())
99 <div data-controller="delete-report" data-delete-report-id-value="{{$report->id()}}"
100 class="modal-parent small delete-report">
101 <button id="delete-report-button"
102 data-action="delete-report#toggleModal"
103 data-delete-report-target="modalButton" class="iawp-button">
104 <span class="dashicons dashicons-trash"></span>
105 </button>
106 <div class="iawp-modal small" data-delete-report-target="modal">
107 <div class="modal-inner">
108 <div class="title-small">
109 <?php esc_html_e('Confirm', 'independent-analytics'); ?>
110 </div>
111 <p><?php esc_html_e('Are you sure you want to delete this report?', 'independent-analytics'); ?></p>
112 <button data-action="delete-report#delete"
113 data-delete-report-target="deleteButton"
114 class="iawp-button red"><?php esc_html_e('Delete report', 'independent-analytics'); ?>
115 </button>
116 </div>
117 </div>
118 </div>
119 @endif
120 </div>
121 @endif
122 </div>