@@ 196-214 (lines=19) @@ | ||
193 | value="<?php echo $question_order; ?>"> |
|
194 | </label> |
|
195 | <?php |
|
196 | if (EE_Registry::instance()->CAP->current_user_can( |
|
197 | 'ee_edit_question', |
|
198 | 'espresso_registration_form_edit_question', |
|
199 | $question->ID() |
|
200 | )) { |
|
201 | $edit_query_args = array( |
|
202 | 'action' => 'edit_question', |
|
203 | 'QST_ID' => $question->ID(), |
|
204 | ); |
|
205 | $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL); |
|
206 | ||
207 | echo '<a href="' . $edit_link . '" target="_blank" title="' . |
|
208 | sprintf( |
|
209 | esc_attr__('Edit %s', 'event_espresso'), |
|
210 | $question->admin_label() |
|
211 | ) |
|
212 | . '"><span class="dashicons dashicons-edit"></span> |
|
213 | </a>'; |
|
214 | } |
|
215 | ?> |
|
216 | </li> |
|
217 | <?php |
@@ 464-481 (lines=18) @@ | ||
461 | */ |
|
462 | public function extra_list_table_actions(array $action_links, EE_Event $event) |
|
463 | { |
|
464 | if (EE_Registry::instance()->CAP->current_user_can( |
|
465 | 'ee_read_registrations', |
|
466 | 'espresso_registrations_reports', |
|
467 | $event->ID() |
|
468 | ) |
|
469 | ) { |
|
470 | $reports_query_args = array( |
|
471 | 'action' => 'reports', |
|
472 | 'EVT_ID' => $event->ID(), |
|
473 | ); |
|
474 | $reports_link = EE_Admin_Page::add_query_args_and_nonce($reports_query_args, REG_ADMIN_URL); |
|
475 | $action_links[] = '<a href="' |
|
476 | . $reports_link |
|
477 | . '" title="' |
|
478 | . esc_attr__('View Report', 'event_espresso') |
|
479 | . '"><div class="dashicons dashicons-chart-bar"></div></a>' |
|
480 | . "\n\t"; |
|
481 | } |
|
482 | if (EE_Registry::instance()->CAP->current_user_can('ee_read_global_messages', 'view_filtered_messages')) { |
|
483 | EE_Registry::instance()->load_helper('MSG_Template'); |
|
484 | $action_links[] = EEH_MSG_Template::get_message_action_link( |