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:
2026-09-20 15:26:55 +08:00
parent c4531b9757
commit fe6b4da455
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -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>';
}
}