diff --git a/CHANGELOG.md b/CHANGELOG.md index 6202e9331..24a8eb38a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,12 @@ Update from Maintenance > Update as usual - this release has four database chang - Writing a document in the client portal works as it does for you: the editor shows it as it will read, with headings, lists, quotes, code, tables and lines on its toolbar, or contacts can write it in Markdown, with the Markdown toolbar and Preview, switching either way as they write. The next document starts in the way they wrote last. - Long windows are split into tabs, so they are shorter. New Ticket has a Planning tab for the due date, the status it starts in, the work booked, tags and billing, leaving who it is for and what it is about on Details. A product or service has Details, Billing, Ordering and, for a product, Asset. A service has Service, Recovery & notes and, when it is new, Depends on. An event has When and Who & where. An expense has Expense, and Client & 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 (or The mail server), and a ticket status Details and What it does. - When the check on saving a payment provider or an RMM provider finds something wrong, the window opens the tab that field is on, so the message is next to it. A required field left empty on a hidden tab already opened its tab. +- A role's window has Details and What it can open, and each part of ITFlow is a single row: its name and what it covers, the None, Read, Modify and Full buttons, and under it what the level picked allows. Point at a level for what it adds. +- Edit Ticket has a Planning tab like New Ticket's, with the due date, tags and billing. The pencil beside Due on a ticket opens it there. +- A recurring ticket's Schedule tab is now Planning, and it has the priority, category and billing of the tickets it raises. Frequency is How often in New Recurring Ticket, as in Edit. +- A recurring expense has Expense, and Client & reference, like a one-off expense. +- The icon pickers in the tag, category, link and asset type windows show three rows and scroll, starting on the icon picked. +- Invoicing a ticket on a new invoice gives the invoice the ticket's number and subject as its scope, without asking - change it on the invoice. Making a quote from a ticket has a smaller description box. ### Bug Fixes @@ -80,6 +86,7 @@ Update from Maintenance > Update as usual - this release has four database chang - includes/document_editors.php is a document's two editors and the switch between them, shared by agent/modals/document/document_form.php and client/document_add.php (which now posts format, content and markdown, saved through documentPostedContent()). js/document_markdown.js converts at the address its script tag gives (data-markdown-url, client/post.php markdown_to_html and html_to_markdown in the portal). itflowProseContentStyle() moved to js/tinymce_defaults.js; js/portal.js sets up .tinymce-document, and its required check looks in the Markdown box when that is shown. - agent/includes/inc_all_client.php: without a client_id, or with one that isn't there, it draws That client isn't here in the agent layout and exits, before anything queries with no client - it was an SQL error (or a tagPills() TypeError) and a blank page. admin/modules.php and its commented-out menu entry are removed. - Tabs in agent/modals/product/product_form.php, service/service_form.php, calendar/calendar_event_form.php, expense/expense_form.php and ticket/ticket_add.php, and in admin/modals/payment_provider/payment_provider_edit.php, rmm/rmm_provider_edit.php, identity_provider/identity_provider_edit.php and ticket_status/ticket_status_form.php - the same field names, so the posts and their handlers are unchanged. js/app.js has window.itflowRevealTab(field), used by the invalid-field handler and by the provider windows' server-check errors, to open the tab a field is on. +- admin/modals/role/role_form.php draws a module as a list-group row with data-role-allows (its levels' text as JSON); js/role_form.js writes what the level picked allows into [data-role-can]. agent/modals/ticket/ticket_edit.php takes ?tab=planning. ticket_invoice_add.php posts scope as a hidden field, so add_invoice_from_ticket is unchanged. .itflow-tag-icons is three rows high (6.6rem), and js/app.js scrolls its .active icon into the box on shown.bs.modal and shown.bs.tab. ## [26.12.2] diff --git a/admin/modals/role/role_form.php b/admin/modals/role/role_form.php index 55203dfb0..d1655f7d5 100644 --- a/admin/modals/role/role_form.php +++ b/admin/modals/role/role_form.php @@ -3,10 +3,12 @@ /* * A role's fields - for role_add.php (new, or a copy) and role_edit.php, * which set $role (a roleRow() to fill from, or null) and $role_admin_blocker - * (why it can't stop being an admin role, '' when it can). An admin role - * opens everything; any other has a level of each module, each showing what - * it lets them do. js/role_form.js hides the levels for an admin role and - * ticks off what a level allows as it is picked. + * (why it can't stop being an admin role, '' when it can). Two tabs: + * Details (name, description, Admin) and What it can open. An admin role + * opens everything; any other has a level of each module, one line each, with + * what the level picked allows under it and what each level adds on its + * button. js/role_form.js hides the levels for an admin role and says what a + * level allows as it is picked. */ isset($mysqli) || die("Direct file access is not allowed"); @@ -19,79 +21,90 @@ $r_admin_locked = ($role_admin_blocker ?? '') !== ''; ?>