Contracts, surroundings and balance sheet as pages of the notebook

Contracts: club and wage bill, the squad as a table, the negotiation as a note on
the dimmed book. Surroundings: six cards with their stars, pictures and costs, the
monthly sum in the page's title. Balance: figures, income against costs, the plan
for the coming year, and the what-if calculation in the notebook's inks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 17:34:15 +01:00
1 parent ac455eabfe
commit 1a1f43ddf7
9 files changed
+204 -454

No files matched your search

+5 -2
View File
@@ -5,7 +5,7 @@
// The menus that are laid out as a page of the notebook. Every other career menu is still a
// sheet of the old format, shown scaled inside the book.
bool App::page_native() const {
static const std::set<std::string> native{"tables", "league", "other", "strengths", "fairplay", "indoor", "scorers"};
static const std::set<std::string> native{"balance", "contracts", "environment", "tables", "league", "other", "strengths", "fairplay", "indoor", "scorers"};
return notebook_page() && native.contains(menu_);
}
@@ -55,7 +55,10 @@ std::string App::pg_form(const std::string &marks) {
}
std::string App::pg_status(const std::string &text) { return text.empty() ? std::string() : "<span class=\"pg-status\">" + esc(text) + "</span>"; }
std::string App::pg_button(const std::string &action, const std::string &label, const std::string &css, const std::string &attrs) {
return btn(action, label, "pg-btn " + css, attrs);
// "primary" is the page's own filled button, not the one of the old windows
std::string classes = css;
if (const auto at = classes.find("primary"); at != std::string::npos) classes.replace(at, 7, "pg-go");
return btn(action, label, "pg-btn " + classes, attrs);
}
// A cell of a table head (a button when the column sorts) and of a row; a width of 0 takes
// the room that is left. `align` is "", "r" or "c".