feat(admin): add a cancel button next to the ticket process submit
Collapses the inline process form by linking back to the current list URL without the action/id params (filters preserved).
This commit is contained in:
@@ -487,7 +487,11 @@ trait UsersMenusTickets {
|
||||
wp_nonce_field('aksrt_users_process_appeal_' . $uid);
|
||||
}
|
||||
|
||||
echo '<tr><th></th><td><p><button type="submit" class="button button-primary process-submit">' . esc_html__('确认提交', 'aksrt') . '</button></p></td></tr>';
|
||||
echo '<tr><th></th><td><p>';
|
||||
echo '<button type="submit" class="button button-primary process-submit">' . esc_html__('确认提交', 'aksrt') . '</button> ';
|
||||
// 取消:回到未展开状态(去掉 action/id 参数的当前列表,保留筛选)。
|
||||
echo '<a class="button" href="' . esc_url(remove_query_arg(['action', 'id'])) . '">' . esc_html__('取消', 'aksrt') . '</a>';
|
||||
echo '</p></td></tr>';
|
||||
echo '</tbody></table></form>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user