From 768dc1151aa85366566840f9e78b16e3a22efa07 Mon Sep 17 00:00:00 2001 From: webmaster Date: Tue, 3 Nov 2026 18:34:43 +0000 Subject: [PATCH] fix(freelancer): the 15-point rule is now one shared constant, in both forms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The edit form's legend read "Skill areas" and carried no directive, while the application form read "Skill profile — 15 points to distribute" and said what to do. Same rule, worded in two places — and the edit form lost the sentence. - New static/focus-rule.js exposes window.O4PFocus: LEGEND, DIRECTIVE, TOTAL, MAX and message(sum). Both forms render the legend, the directive and the wrong-total message from it, so the two cannot drift apart again. - Edit form: legend from the constant, the application form's directive under it, and the blocked-save message now names the direction. - Application form: legend set from the constant, live warn and sum gate use the same message(); the all-zero gate keeps the directive. - Message wording: over -> "remove N", under -> "add N", zero -> "place all 15 points"; the total, aria-live, data-bad, the blocked save and the fieldset/legend structure are unchanged. The rule text now appears once: "You have 17 of 15 — remove 2." --- freelancer-edit/index.html | 13 +++++++++---- odoo-community-developers/index.html | 27 +++++++++------------------ static/focus-rule.js | 22 ++++++++++++++++++++++ 3 files changed, 40 insertions(+), 22 deletions(-) create mode 100644 static/focus-rule.js diff --git a/freelancer-edit/index.html b/freelancer-edit/index.html index 2dfb519..01be887 100644 --- a/freelancer-edit/index.html +++ b/freelancer-edit/index.html @@ -146,6 +146,9 @@ } + + +