branding och namechange
This commit is contained in:
@@ -272,15 +272,18 @@ export function renderSettings(deps) {
|
||||
|
||||
<section class="panel mt-16">
|
||||
<div class="panel-header"><h3>${t("settings.branding")}</h3></div>
|
||||
<div class="panel-body">
|
||||
<p class="hint">${t("settings.branding_note")}</p>
|
||||
</div>
|
||||
<div class="panel-body form-grid cols-3 settings-grid">
|
||||
<input name="clubName" form="settingsForm" value="${escapeHtml(state.settings.clubName || "")}" placeholder="${t("settings.club_name")}" />
|
||||
<input name="clubTagline" form="settingsForm" value="${escapeHtml(state.settings.clubTagline || "")}" placeholder="${t("settings.club_tagline")}" />
|
||||
<input name="pdfFooter" form="settingsForm" value="${escapeHtml(state.settings.pdfFooter || "")}" placeholder="${t("settings.pdf_footer")}" />
|
||||
<select name="pdfTheme" form="settingsForm">
|
||||
<label><span>${t("settings.club_name")}</span><input name="clubName" form="settingsForm" value="${escapeHtml(state.settings.clubName || "")}" placeholder="JMK RB" /></label>
|
||||
<label><span>${t("settings.club_tagline")}</span><input name="clubTagline" form="settingsForm" value="${escapeHtml(state.settings.clubTagline || "")}" placeholder="Live Timing & Race Control" /></label>
|
||||
<label><span>${t("settings.pdf_footer")}</span><input name="pdfFooter" form="settingsForm" value="${escapeHtml(state.settings.pdfFooter || "")}" placeholder="Generated by RC RaceCore" /></label>
|
||||
<label><span>${t("settings.pdf_theme")}</span><select name="pdfTheme" form="settingsForm">
|
||||
<option value="classic" ${state.settings.pdfTheme === "classic" ? "selected" : ""}>${t("settings.pdf_theme_classic")}</option>
|
||||
<option value="minimal" ${state.settings.pdfTheme === "minimal" ? "selected" : ""}>${t("settings.pdf_theme_minimal")}</option>
|
||||
<option value="motorsport" ${state.settings.pdfTheme === "motorsport" ? "selected" : ""}>${t("settings.pdf_theme_motorsport")}</option>
|
||||
</select>
|
||||
</select></label>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<h4>${t("settings.logo")}</h4>
|
||||
@@ -288,6 +291,7 @@ export function renderSettings(deps) {
|
||||
<div class="actions">
|
||||
<input id="logoUpload" type="file" accept="image/*" />
|
||||
<button id="clearLogo" class="btn" type="button">${t("settings.logo_clear")}</button>
|
||||
<button class="btn btn-primary" type="submit" form="settingsForm">${t("settings.save_branding")}</button>
|
||||
</div>
|
||||
${
|
||||
state.settings.logoDataUrl
|
||||
@@ -567,9 +571,9 @@ export function renderSettings(deps) {
|
||||
state.settings.speakerBestLapCueEnabled = form.get("speakerBestLapCueEnabled") === "on";
|
||||
state.settings.speakerTop3CueEnabled = form.get("speakerTop3CueEnabled") === "on";
|
||||
state.settings.speakerSessionStartCueEnabled = form.get("speakerSessionStartCueEnabled") === "on";
|
||||
state.settings.clubName = String(form.get("clubName") || "").trim() || "JMK RB RaceController";
|
||||
state.settings.clubTagline = String(form.get("clubTagline") || "").trim() || "RC Timing System";
|
||||
state.settings.pdfFooter = String(form.get("pdfFooter") || "").trim() || "Generated by JMK RB RaceController";
|
||||
state.settings.clubName = String(form.get("clubName") || "").trim() || "JMK RB";
|
||||
state.settings.clubTagline = String(form.get("clubTagline") || "").trim() || "Live Timing & Race Control";
|
||||
state.settings.pdfFooter = String(form.get("pdfFooter") || "").trim() || "Generated by RC RaceCore";
|
||||
state.settings.pdfTheme = ["classic", "minimal", "motorsport"].includes(String(form.get("pdfTheme") || "classic"))
|
||||
? String(form.get("pdfTheme"))
|
||||
: "classic";
|
||||
|
||||
Reference in New Issue
Block a user