mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
Split the long windows into tabs: New Ticket gets a Planning tab for its due date, starting status, schedule, tags and billing; a product or service has Details, Billing, Ordering and Asset; a service has Service, Recovery and notes, and Depends on; an event has When, and Who and where; an expense has Expense, and Client and receipt; in Admin a payment provider has Keys, Payments and Card fee, an RMM provider or network platform Connection, Alerts and Asset types, an identity provider Setup, Who it signs in and The app, and a ticket status Details and What it does; a payment or RMM provider check that finds something wrong opens that field's tab; 26.12.3 changelog entries
This commit is contained in:
@@ -1172,8 +1172,9 @@ if (!window.itflowWindowGuard) {
|
||||
*/
|
||||
if (!window.itflowInvalidTab) {
|
||||
window.itflowInvalidTab = true;
|
||||
document.addEventListener('invalid', function (e) {
|
||||
const pane = e.target.closest ? e.target.closest('.tab-pane') : null;
|
||||
// Also for a window that checks with the server first and marks what is wrong itself (Admin > Payment Providers, RMM Providers)
|
||||
window.itflowRevealTab = function (field) {
|
||||
const pane = field && field.closest ? field.closest('.tab-pane') : null;
|
||||
if (!pane || pane.classList.contains('active') || !pane.id || !window.bootstrap) {
|
||||
return;
|
||||
}
|
||||
@@ -1183,6 +1184,9 @@ if (!window.itflowInvalidTab) {
|
||||
if (trigger) {
|
||||
bootstrap.Tab.getOrCreateInstance(trigger).show();
|
||||
}
|
||||
};
|
||||
document.addEventListener('invalid', function (e) {
|
||||
window.itflowRevealTab(e.target);
|
||||
}, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user