The transfer market's dialogs laid out as notes, after the design
Buying, lending and their kin show the player's picture and facts, the offer with its amounts as buttons to the number pad, and the team bonuses; the search has its kinds and marks as pills and its ranges in one panel; orders, team and player information are tables and figures. Empty notes draw their text. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
26e975ac9d
commit
6bbb50c574
2 files changed
+142
-301
No files matched your search
@@ -428,3 +428,26 @@ body .pg-btn.pg-go:disabled {opacity:1;background-color:var(--p-a3);border-color
|
|||||||
.pg-root .pg-btn[disabled],.pg-ov .pg-btn[disabled] {opacity:1;background-color:var(--p-n2);border-color:var(--p-div);color:var(--p-n5);}
|
.pg-root .pg-btn[disabled],.pg-ov .pg-btn[disabled] {opacity:1;background-color:var(--p-n2);border-color:var(--p-div);color:var(--p-n5);}
|
||||||
body .pg-btn.pg-go[disabled] {opacity:1;background-color:var(--p-a3);border-color:var(--p-a3);color:var(--p-n1);}
|
body .pg-btn.pg-go[disabled] {opacity:1;background-color:var(--p-a3);border-color:var(--p-a3);color:var(--p-n1);}
|
||||||
.pg-seg button[disabled],.pg-tabs button[disabled] {opacity:1;color:var(--p-n5);}
|
.pg-seg button[disabled],.pg-tabs button[disabled] {opacity:1;color:var(--p-n5);}
|
||||||
|
|
||||||
|
/* --- the transfer market's dialogs --- */
|
||||||
|
.tm-dialog-body {display:flex;flex-direction:column;gap:27dp;}
|
||||||
|
.pg-ov .tm-select {width:300dp;height:68dp;padding:0 27dp;border:2dp var(--p-div);border-radius:36dp;background-color:var(--p-n1);font-family:Modern;font-size:30dp;color:var(--p-text);}
|
||||||
|
.pg-ov .tm-select.wide {width:100%;}
|
||||||
|
.pg-ov .tm-range {display:block;flex:1;height:54dp;}
|
||||||
|
.tm-premiums {display:flex;flex-wrap:wrap;margin-top:12dp;}
|
||||||
|
.tm-premium {width:50%;height:62dp;padding-right:27dp;gap:14dp;font-size:28dp;}
|
||||||
|
.tm-premium span {display:block;}
|
||||||
|
.pg-ov .tm-small,.pg-root .tm-small {height:52dp;min-width:86dp;padding:0 20dp;font-size:27dp;}
|
||||||
|
.pg-ov .tm-small.round {width:52dp;min-width:52dp;padding:0;}
|
||||||
|
.tm-poach-clubs {display:flex;flex-wrap:wrap;gap:14dp;max-height:1000dp;overflow-y:auto;}
|
||||||
|
.pg-ov .tm-poach-club,.pg-ov .tm-poach-club:hover {flex-direction:row;align-items:center;gap:18dp;width:472dp;height:110dp;padding:0 27dp;font-family:Modern;font-size:30dp;}
|
||||||
|
.tm-poach-club span {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
|
||||||
|
.tm-inline {display:flex;align-items:center;justify-content:flex-end;gap:12dp;}
|
||||||
|
.tm-inline span {display:block;}
|
||||||
|
.pg-kv strong .tm-inline {display:flex;align-items:center;justify-content:flex-end;gap:12dp;}
|
||||||
|
.pg-kv strong .tm-inline span {display:block;color:var(--p-text);}
|
||||||
|
.pg-kv strong .tm-inline .pg-pos {color:var(--p-n9);}
|
||||||
|
.pg-kv strong .tm-inline .pg-pos.STU {color:var(--p-n1);}
|
||||||
|
.pg-dlg .pg-empty {flex:none;}
|
||||||
|
/* an empty note is a block: bare text inside a flex box would not be drawn */
|
||||||
|
.pg-empty {display:block;padding:72dp 54dp;}
|
||||||
+119
-301
@@ -341,369 +341,187 @@ std::string App::render_transfer() {
|
|||||||
return out + "</nav></section>" + render_transfer_dialog();
|
return out + "</nav></section>" + render_transfer_dialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The dialogs of the transfer market: notes on the dimmed book. The ids of the fields and
|
||||||
|
// buttons are what the controls look up.
|
||||||
std::string App::render_transfer_dialog() {
|
std::string App::render_transfer_dialog() {
|
||||||
if (transfer_dialog_.empty())
|
if (transfer_dialog_.empty())
|
||||||
return {};
|
return {};
|
||||||
const auto snapshot = engine_mode_ ? Snapshot{} : snap();
|
const auto snapshot = engine_mode_ ? Snapshot{} : snap();
|
||||||
const auto actor = engine_mode_ ? engine_data_.at("desktop").at("meta").at("scope").at("teamId").get<std::string>() : transfer_ui_club(snapshot);
|
const auto actor = engine_mode_ ? engine_data_.at("desktop").at("meta").at("scope").at("teamId").get<std::string>() : transfer_ui_club(snapshot);
|
||||||
std::string title, body, actions;
|
std::string title, sub, body, actions;
|
||||||
double height = 500;
|
double width = 460;
|
||||||
const auto button = [&](const char *action, const std::string &caption,
|
const auto button = [&](const char *action, const std::string &caption, const std::string &attrs = "", bool primary = false) {
|
||||||
const std::string &attrs = "") {
|
return pg_button(action, esc(caption), primary ? "primary" : "", attrs);
|
||||||
return btn(action, esc(caption), "transfer-dialog-button", attrs);
|
|
||||||
};
|
};
|
||||||
const auto close = [&](const std::string &caption = "Abbruch") {
|
const auto close = [&](const std::string &caption = "Abbruch", bool primary = false) { return button("transfer-close", caption, "id=\"transfer-close\"", primary); };
|
||||||
return button("transfer-close", caption, "id=\"transfer-close\"");
|
const auto portrait = [&](const Json &r, double size) {
|
||||||
|
return r.contains("photo") && r.at("photo").is_string() && !r.at("photo").get<std::string>().empty()
|
||||||
|
? "<span class=\"pg-photo\" style=\"width:" + scalar(size) + "dp;height:" + scalar(size) + "dp;border-radius:" + scalar(size * .18) + "dp;\">" + img(r.at("photo").get<std::string>(), size, size, true, true, 400) + "</span>"
|
||||||
|
: engine_mode_ ? "<span class=\"pg-photo\" style=\"width:" + scalar(size) + "dp;height:" + scalar(size) + "dp;border-radius:" + scalar(size * .18) + "dp;\">" + img("asset:player/generic/photo", size, size, true, true, 400) + "</span>" : std::string();
|
||||||
};
|
};
|
||||||
|
const auto fact = [](const std::string &label, const std::string &value) { return "<div class=\"pg-kv\"><span>" + esc(label) + "</span><strong>" + value + "</strong></div>"; };
|
||||||
if (transfer_dialog_ == "offer") {
|
if (transfer_dialog_ == "offer") {
|
||||||
height = 1210.5;
|
width = 600;
|
||||||
const auto &d = transfer_draft_;
|
const auto &d = transfer_draft_;
|
||||||
const auto &r = d.at("row");
|
const auto &r = d.at("row");
|
||||||
const auto kind = d.at("kind").get<std::string>();
|
const auto kind = d.at("kind").get<std::string>();
|
||||||
const bool loan = kind == "loan" || kind == "lend", mine = r.at("own");
|
const bool loan = kind == "loan" || kind == "lend", mine = r.at("own");
|
||||||
const std::map<std::string, std::string> kinds{{"buy", "Kaufen"},
|
const std::map<std::string, std::string> kinds{{"buy", "Kaufen"}, {"loan", "Ausleihen"}, {"sell", "Verkaufen"}, {"lend", "Verleihen"}};
|
||||||
{"loan", "Ausleihen"},
|
title = (d.at("poached") == true ? std::string("Abwerben") : kinds.at(kind)) + " · " + r.at("name").get<std::string>();
|
||||||
{"sell", "Verkaufen"},
|
const auto *club = world_->find("clubs", r.at("club"));
|
||||||
{"lend", "Verleihen"}};
|
|
||||||
title =
|
|
||||||
(d.at("poached") == true ? std::string("Abwerben") : kinds.at(kind)) +
|
|
||||||
" · " + r.at("name").get<std::string>();
|
|
||||||
const auto flag = ui_nation_flag_svg(transfer_ui_text(r.at("nation"), ""));
|
const auto flag = ui_nation_flag_svg(transfer_ui_text(r.at("nation"), ""));
|
||||||
const auto flag_image =
|
body = "<div class=\"pg-row\" style=\"" + pg_css("gap:14px;") + "align-items:flex-start;\">" + portrait(r, 162) + "<div class=\"pg-col pg-grow\" style=\"gap:0dp;\">" +
|
||||||
flag.empty()
|
fact("Verein", club ? esc(world_->name(*club)) : esc(r.value("club_name", std::string("—")))) +
|
||||||
? std::string("<span>—</span>")
|
fact("Position · Alter · Stärke", "<span class=\"tm-inline\">" + pg_pos(transfer_ui_role(r.at("position"))) + (flag.empty() ? std::string() : picture(renderer_.diagram("transfer-offer-flag", flag, 180), 45, 30)) + "<span>" + transfer_ui_number(r.at("age")) + " Jahre · " + transfer_ui_number(r.at("strength")) + "</span></span>") +
|
||||||
: picture(renderer_.diagram("transfer-offer-flag", flag, 180), 60,
|
fact(engine_mode_ ? "Ablöseforderung" : loan ? "Fiktive Leihgebühr" : "Ungefährer Marktwert", esc(transfer_money(d.at("demand_fee").get<int64_t>()))) +
|
||||||
40);
|
fact(engine_mode_ ? "Gehaltsreferenz / Monat" : mine ? "Aktuelles Monatsgehalt" : "Gehaltswunsch", d.at("demand_salary").is_number_integer() ? esc(transfer_money(d.at("demand_salary").get<int64_t>())) : std::string("—")) +
|
||||||
body = "<section class=\"transfer-offer-layout\"><header><div "
|
"</div></div><div class=\"pg-panel pg-col\" style=\"" + pg_css("gap:9px;") + "\">" + pg_kicker("Dein Angebot");
|
||||||
"class=\"transfer-offer-flag\">" +
|
|
||||||
flag_image + "</div><div class=\"transfer-offer-person\"><strong>" +
|
|
||||||
esc(r.at("name").get<std::string>()) + "</strong><span>" +
|
|
||||||
transfer_ui_role(r.at("position")) + " · " +
|
|
||||||
transfer_ui_number(r.at("age")) + " Jahre · Stärke " +
|
|
||||||
transfer_ui_number(r.at("strength")) +
|
|
||||||
"</span></div><div class=\"transfer-offer-club\">" +
|
|
||||||
(world_->find("clubs",r.at("club"))?label(world_->find("clubs",r.at("club")),58):esc(r.value("club_name",std::string("—")))) +
|
|
||||||
"</div></header><div class=\"transfer-demands\"><section><span>" +
|
|
||||||
std::string(engine_mode_ ? "Ablöseforderung" : loan ? "Fiktive Leihgebühr" : "Ungefährer Marktwert") +
|
|
||||||
"</span><strong>" + esc(transfer_money(d.at("demand_fee").get<int64_t>())) +
|
|
||||||
"</strong></section><section><span>" +
|
|
||||||
std::string(engine_mode_ ? "Gehaltsreferenz / Monat" : mine ? "Aktuelles Monatsgehalt" : "Gehaltswunsch") +
|
|
||||||
"</span><strong>" +
|
|
||||||
(d.at("demand_salary").is_number_integer()
|
|
||||||
? esc(transfer_money(d.at("demand_salary").get<int64_t>()))
|
|
||||||
: "—") +
|
|
||||||
"</strong></section></div><h3 class=\"transfer-offer-your\">Dein "
|
|
||||||
"Angebot</h3><div class=\"transfer-offer-inputs\">";
|
|
||||||
for (int i = 0; i < 3; ++i) {
|
for (int i = 0; i < 3; ++i) {
|
||||||
const auto field = i == 0 ? "fee" : i == 1 ? "salary" : "months";
|
const auto field = i == 0 ? "fee" : i == 1 ? "salary" : "months";
|
||||||
const std::string caption = i == 0 ? (loan ? "Leihgebühr" : "Ablöse")
|
const std::string caption = i == 0 ? (loan ? "Leihgebühr" : "Ablöse") : i == 1 ? "Monatsgehalt" : "Vertragsdauer";
|
||||||
: i == 1 ? "Monatsgehalt"
|
body += "<div class=\"pg-row\" style=\"justify-content:space-between;\"><span>" + caption + "</span>";
|
||||||
: "Vertragsdauer";
|
|
||||||
body += "<div><span>" + caption + "</span>";
|
|
||||||
if (i < 2)
|
if (i < 2)
|
||||||
body += btn("transfer-amount",
|
body += pg_button("transfer-amount", "<span>" + esc(number(d.at(field).get<int64_t>())) + " €</span>", "amount-trigger", "id=\"transfer-" + std::string(field) + "\" data-field=\"" + field + "\" aria-label=\"" + caption + "\"");
|
||||||
esc(std::to_string(d.at(field).get<int64_t>())),
|
|
||||||
"transfer-amount-input amount-trigger",
|
|
||||||
"id=\"transfer-" + std::string(field) + "\" data-field=\"" +
|
|
||||||
field + "\" aria-label=\"" + caption + "\"");
|
|
||||||
else {
|
else {
|
||||||
body += "<select id=\"transfer-months\" aria-label=\"Vertragsdauer in "
|
body += "<select id=\"transfer-months\" class=\"tm-select\" aria-label=\"Vertragsdauer in Monaten\">";
|
||||||
"Monaten\">";
|
|
||||||
for (int months : {12, 24, 36, 48})
|
for (int months : {12, 24, 36, 48})
|
||||||
if (!loan || months <= 24)
|
if (!loan || months <= 24) body += "<option value=\"" + std::to_string(months) + "\" " + std::string(d.at("months") == months ? "selected" : "") + ">" + std::to_string(months) + " Monate</option>";
|
||||||
body += "<option value=\"" + std::to_string(months) + "\" " +
|
|
||||||
std::string(d.at("months") == months ? "selected" : "") +
|
|
||||||
">" + std::to_string(months) + " Monate</option>";
|
|
||||||
body += "</select>";
|
body += "</select>";
|
||||||
}
|
}
|
||||||
body += "</div>";
|
body += "</div>";
|
||||||
}
|
}
|
||||||
body += "</div><section "
|
body += "</div><div class=\"pg-panel\">" + pg_kicker("Mannschaftsprämien für diesen Vertrag") + "<div class=\"tm-premiums\">";
|
||||||
"class=\"transfer-offer-premiums\"><h3>Mannschaftsprämien für "
|
|
||||||
"diesen Vertrag</h3><div>";
|
|
||||||
for (int i = 0; i < 7; ++i)
|
for (int i = 0; i < 7; ++i)
|
||||||
body +=
|
body += "<div class=\"pg-row tm-premium\"><span class=\"pg-grow\">" + std::string(transfer_ui_bonuses[size_t(i)]) + "</span>" +
|
||||||
"<div class=\"transfer-premium-row\" style=\"" +
|
btn("transfer-bonus", "<span>" + transfer_ui_number(engine_mode_ && i >= 3 ? Json(d.at("bonuses")[size_t(i)].get<int>() * 5) : d.at("bonuses")[size_t(i)]) + "</span>", "pg-btn tm-small amount-trigger",
|
||||||
rect((i % 2) * 1063, 48 + (i / 2) * 82, 1029, 82) + "\"><span>" +
|
"id=\"transfer-bonus-" + std::to_string(i) + "\" data-index=\"" + std::to_string(i) + "\"") + "</div>";
|
||||||
std::string(transfer_ui_bonuses[size_t(i)]) + "</span>" +
|
body += "</div></div><span class=\"pg-mut\" style=\"display:block;font-size:" + pg(12.5) + ";\">" +
|
||||||
btn("transfer-bonus", transfer_ui_number(engine_mode_&&i>=3?Json(d.at("bonuses")[size_t(i)].get<int>()*5):d.at("bonuses")[size_t(i)]),
|
std::string(engine_mode_ ? "Über das Angebot wird nach deiner Bestätigung entschieden. Die Konditionen werden erst beim Absenden verbindlich."
|
||||||
"amount-trigger",
|
: mine ? "Der Spieler wird zum " + std::string(loan ? "Verleihen" : "Verkauf") + " auf dem Markt vorgemerkt." : "Das Angebot wird vorgemerkt; die Entscheidung des Spielers folgt später.") + "</span>";
|
||||||
"id=\"transfer-bonus-" + std::to_string(i) + "\" data-index=\"" +
|
actions = button("transfer-team-info", "Team-Info", "id=\"transfer-team-info\"") + button("transfer-player-info", "Spieler-Info", "id=\"transfer-player-info\"") + "<span class=\"pg-sp\"></span>" + close() +
|
||||||
std::to_string(i) + "\"") +
|
button("transfer-submit", "Angebot", "id=\"transfer-submit\" " + std::string(d.value("can_submit", true) ? "" : "disabled"), true);
|
||||||
"</div>";
|
|
||||||
body += "</div></section><p class=\"transfer-offer-note\">" +
|
|
||||||
std::string(engine_mode_ ? "Über das Angebot wird nach deiner Bestätigung entschieden. Die Konditionen werden erst beim Absenden verbindlich." : mine ? "Der Spieler wird zum " +
|
|
||||||
std::string(loan ? "Verleihen" : "Verkauf") +
|
|
||||||
" auf dem Markt vorgemerkt."
|
|
||||||
: "Das Angebot wird vorgemerkt; die Entscheidung "
|
|
||||||
"des Spielers folgt später.") +
|
|
||||||
"</p></section>";
|
|
||||||
actions =
|
|
||||||
button("transfer-team-info", "Team-Info", "id=\"transfer-team-info\"") +
|
|
||||||
button("transfer-player-info", "Spieler-Info",
|
|
||||||
"id=\"transfer-player-info\"") +
|
|
||||||
close() +
|
|
||||||
button("transfer-submit", "Angebot",
|
|
||||||
"id=\"transfer-submit\" " +
|
|
||||||
std::string(d.value("can_submit", true) ? "" : "disabled"));
|
|
||||||
} else if (transfer_dialog_ == "search") {
|
} else if (transfer_dialog_ == "search") {
|
||||||
height = 899;
|
width = 520;
|
||||||
title = "Spieler suchen";
|
title = "Spieler suchen";
|
||||||
const auto &d = transfer_search_draft_;
|
const auto &d = transfer_search_draft_;
|
||||||
body = "<section class=\"transfer-search-editor\"><section "
|
body = "<div class=\"pg-row\" style=\"justify-content:space-between;\">" + pg_kicker("Art") + "<nav class=\"pg-seg\">";
|
||||||
"class=\"transfer-search-kind\"><h3>Art</h3><nav>";
|
for (int i = 0; i < 4; ++i) {
|
||||||
for (int i = 0; i < 4; ++i)
|
const bool on = d.at("positions").get<int>() & (1 << i);
|
||||||
body += btn(
|
body += btn("transfer-search-position", "<span>" + std::string(std::array<const char *, 4>{"Tor", "ABW", "MIT", "STU"}[size_t(i)]) + "</span>", std::string(i ? "" : "first ") + (on ? "on" : ""),
|
||||||
"transfer-search-position",
|
"id=\"transfer-search-position-" + std::to_string(i) + "\" data-index=\"" + std::to_string(i) + "\" aria-pressed=\"" + (on ? "true" : "false") + "\"");
|
||||||
std::array<const char *, 4>{"Tor", "ABW", "MIT", "STU"}[size_t(i)],
|
}
|
||||||
"",
|
body += "</nav></div><div class=\"pg-panel pg-col\" style=\"" + pg_css("gap:9px;") + "\">";
|
||||||
"id=\"transfer-search-position-" + std::to_string(i) +
|
const std::array<std::pair<const char *, const char *>, 4> ranges{{{"age_min", "Alter von"}, {"age_max", "Alter bis"}, {"strength_min", "Stärke von"}, {"strength_max", "Stärke bis"}}};
|
||||||
"\" data-index=\"" + std::to_string(i) + "\" aria-pressed=\"" +
|
|
||||||
std::string(d.at("positions").get<int>() & (1 << i) ? "true"
|
|
||||||
: "false") +
|
|
||||||
"\"");
|
|
||||||
body += "</nav></section><section class=\"transfer-search-ranges\">";
|
|
||||||
const std::array<std::pair<const char *, const char *>, 4> ranges{
|
|
||||||
{{"age_min", "Alter von"},
|
|
||||||
{"age_max", "Alter bis"},
|
|
||||||
{"strength_min", "Stärke von"},
|
|
||||||
{"strength_max", "Stärke bis"}}};
|
|
||||||
for (int i = 0; i < 4; ++i) {
|
for (int i = 0; i < 4; ++i) {
|
||||||
const auto [key, caption] = ranges[size_t(i)];
|
const auto [key, caption] = ranges[size_t(i)];
|
||||||
body += "<div style=\"" +
|
body += "<div class=\"pg-row\" style=\"" + pg_css("gap:10px;") + "\"><span style=\"display:block;flex:none;width:" + pg(110) + ";\">" + caption + "</span><input class=\"tm-range\" type=\"range\" id=\"transfer-range-" + key + "\" data-criterion=\"" + key + "\" min=\"" +
|
||||||
rect((i % 2) * 1068.5, 20 + (i / 2) * 57, 1023.5, 31) +
|
std::to_string(i < 2 ? 16 : 0) + "\" max=\"" + std::to_string(i < 2 ? (engine_mode_ ? 47 : 40) : 100) + "\" step=\"1\" value=\"" + transfer_ui_number(d.at(key)) + "\"/><strong class=\"pg-r\" style=\"display:block;flex:none;width:" + pg(40) +
|
||||||
"\"><span>" + caption +
|
";\" id=\"transfer-range-value-" + key + "\">" + transfer_ui_number(d.at(key)) + "</strong></div>";
|
||||||
"</span><input type=\"range\" id=\"transfer-range-" + key +
|
|
||||||
"\" data-criterion=\"" + key + "\" min=\"" +
|
|
||||||
std::to_string(i < 2 ? 16 : 0) + "\" max=\"" +
|
|
||||||
std::to_string(i < 2 ? (engine_mode_?47:40) : 100) + "\" step=\"1\" value=\"" +
|
|
||||||
transfer_ui_number(d.at(key)) +
|
|
||||||
"\"/><output id=\"transfer-range-value-" + key + "\">" +
|
|
||||||
transfer_ui_number(d.at(key)) + "</output></div>";
|
|
||||||
}
|
}
|
||||||
body += "</section><section class=\"transfer-search-traits\"><h3>Typ · "
|
body += "<div class=\"pg-row\" style=\"justify-content:space-between;\"><span>Preisvorstellung bis</span>" +
|
||||||
"darauf achten</h3><nav>";
|
pg_button("transfer-search-budget", "<span>" + esc(number(d.at("price_max").get<int64_t>())) + " €</span>", "amount-trigger", "id=\"transfer-search-budget\" aria-label=\"Maximale Ablösesumme\"") +
|
||||||
for (int i = 0; i < 3; ++i)
|
"</div></div><div class=\"pg-row\" style=\"justify-content:space-between;\">" + pg_kicker("Typ · darauf achten") + "<nav class=\"pg-seg\">";
|
||||||
body += btn(
|
for (int i = 0; i < 3; ++i) {
|
||||||
"transfer-search-trait",
|
const bool on = d.at("traits").get<int>() & (1 << i);
|
||||||
std::array<const char *, 3>{"Kondition", "Technik",
|
body += btn("transfer-search-trait", "<span>" + std::string(std::array<const char *, 3>{"Kondition", "Technik", "Form"}[size_t(i)]) + "</span>", std::string(i ? "" : "first ") + (on ? "on" : ""),
|
||||||
"Form"}[size_t(i)],
|
"id=\"transfer-search-trait-" + std::to_string(i) + "\" data-index=\"" + std::to_string(i) + "\" aria-pressed=\"" + (on ? "true" : "false") + "\"");
|
||||||
"",
|
}
|
||||||
"id=\"transfer-search-trait-" + std::to_string(i) +
|
body += "</nav></div><div class=\"pg-row\" style=\"" + pg_css("gap:12px;") + "\">";
|
||||||
"\" data-index=\"" + std::to_string(i) + "\" aria-pressed=\"" +
|
|
||||||
std::string(d.at("traits").get<int>() & (1 << i) ? "true"
|
|
||||||
: "false") +
|
|
||||||
"\"");
|
|
||||||
body += "</nav></section><section class=\"transfer-search-space\">";
|
|
||||||
for (int i = 0; i < 2; ++i) {
|
for (int i = 0; i < 2; ++i) {
|
||||||
const auto field = i ? "foot" : "type";
|
const auto field = i ? "foot" : "type";
|
||||||
const std::array<const char *, 4> names =
|
const std::array<const char *, 4> names = i ? std::array<const char *, 4>{"Beliebig", "Links", "Beidfüßig", "Rechts"} : std::array<const char *, 4>{"Beliebig", "Defensiv", "Ausgeglichen", "Offensiv"};
|
||||||
i ? std::array<const char *, 4>{"Beliebig", "Links", "Beidfüßig",
|
body += "<div class=\"pg-col pg-grow\" style=\"" + pg_css("gap:3px;") + "\">" + pg_kicker(i ? "Spielseite" : "Spielweise") + "<select id=\"transfer-criterion-" + field + "\" class=\"tm-select wide\" data-criterion=\"" + field + "\" aria-label=\"" +
|
||||||
"Rechts"}
|
|
||||||
: std::array<const char *, 4>{"Beliebig", "Defensiv",
|
|
||||||
"Ausgeglichen", "Offensiv"};
|
|
||||||
body += "<div><span>" + std::string(i ? "Spielseite" : "Spielweise") +
|
|
||||||
"</span><select id=\"transfer-criterion-" + field +
|
|
||||||
"\" data-criterion=\"" + field + "\" aria-label=\"" +
|
|
||||||
std::string(i ? "Spielseite" : "Spielweise") + "\">";
|
std::string(i ? "Spielseite" : "Spielweise") + "\">";
|
||||||
for (int n = 0; n < 4; ++n)
|
for (int n = 0; n < 4; ++n) body += "<option value=\"" + std::to_string(n) + "\" " + std::string(d.at(field) == n ? "selected" : "") + ">" + names[size_t(n)] + "</option>";
|
||||||
body += "<option value=\"" + std::to_string(n) + "\" " +
|
|
||||||
std::string(d.at(field) == n ? "selected" : "") + ">" +
|
|
||||||
names[size_t(n)] + "</option>";
|
|
||||||
body += "</select></div>";
|
body += "</select></div>";
|
||||||
}
|
}
|
||||||
body +=
|
body += "</div>";
|
||||||
"</section><section "
|
actions = close() + button("transfer-search-reset", "Zurücksetzen", "id=\"transfer-search-reset\"") + button("transfer-search-apply", "Suchen", "id=\"transfer-search-apply\"", true);
|
||||||
"class=\"transfer-search-budget\"><span>Preisvorstellung bis</span>" +
|
|
||||||
btn("transfer-search-budget",
|
|
||||||
esc(std::to_string(d.at("price_max").get<int64_t>())),
|
|
||||||
"amount-trigger",
|
|
||||||
"id=\"transfer-search-budget\" aria-label=\"Maximale "
|
|
||||||
"Ablösesumme\"") +
|
|
||||||
"</section></section>";
|
|
||||||
actions = close() +
|
|
||||||
button("transfer-search-reset", "Zurücksetzen",
|
|
||||||
"id=\"transfer-search-reset\"") +
|
|
||||||
button("transfer-search-apply", "Suchen",
|
|
||||||
"id=\"transfer-search-apply\"");
|
|
||||||
} else if (transfer_dialog_ == "player-info") {
|
} else if (transfer_dialog_ == "player-info") {
|
||||||
height = 822;
|
width = 620;
|
||||||
const auto &r = transfer_draft_.at("row");
|
const auto &r = transfer_draft_.at("row");
|
||||||
title = r.at("name").get<std::string>();
|
title = r.at("name").get<std::string>();
|
||||||
body = "<div class=\"transfer-player-info\"><div "
|
sub = esc(r.at("club_name").get<std::string>());
|
||||||
"class=\"transfer-info-photo\">" +
|
const auto foot = r.at("foot").is_number_integer() ? std::array<const char *, 4>{"—", "Links", "Beidfüßig", "Rechts"}[size_t(r.at("foot").get<int>())] : "—";
|
||||||
(r.at("photo").is_string()
|
const auto type = r.at("type").is_number_integer() ? std::array<const char *, 4>{"—", "Defensiv", "Ausgeglichen", "Offensiv"}[size_t(r.at("type").get<int>())] : "—";
|
||||||
? img(r.at("photo"), 440, 550, true, true, 650)
|
body = "<div class=\"pg-row\" style=\"" + pg_css("gap:18px;") + "align-items:flex-start;\">" + portrait(r, 300) + "<div class=\"pg-col pg-grow\" style=\"" + pg_css("gap:8px;") + "\"><div class=\"pg-row\" style=\"" + pg_css("gap:8px;") + "align-items:stretch;\">" +
|
||||||
: engine_mode_ ? img("asset:player/generic/photo",440,550,true,false,650) : "<span>—</span>") +
|
pg_stat("Alter", transfer_ui_number(r.at("age"))) + pg_stat("Stärke", transfer_ui_number(r.at("strength"))) + "</div><div class=\"pg-row\" style=\"" + pg_css("gap:8px;") + "align-items:stretch;\">" + pg_stat("Kondition", transfer_ui_number(r.at("condition"))) +
|
||||||
"</div><div class=\"transfer-info-facts\">";
|
pg_stat("Technik", transfer_ui_number(r.at("technique"))) + pg_stat("Form", transfer_ui_number(r.at("form"))) + "</div><div class=\"pg-panel\">" + fact("Position", "<span class=\"tm-inline\">" + pg_pos(transfer_ui_role(r.at("position"))) + "</span>") + fact("Fuß", foot) + fact("Typ", type) +
|
||||||
const std::vector<std::pair<std::string, std::string>> facts{
|
"</div></div></div>";
|
||||||
{"Verein", r.at("club_name")},
|
actions = button("transfer-offer-back", "Zurück zum Angebot", "id=\"transfer-offer-back\"", true);
|
||||||
{"Position", transfer_ui_role(r.at("position"))},
|
|
||||||
{"Alter", transfer_ui_number(r.at("age")) + " Jahre"},
|
|
||||||
{"Kondition", transfer_ui_number(r.at("condition"))},
|
|
||||||
{"Technik", transfer_ui_number(r.at("technique"))},
|
|
||||||
{"Form", transfer_ui_number(r.at("form"))},
|
|
||||||
{"Stärke", transfer_ui_number(r.at("strength"))},
|
|
||||||
{"Fuß", r.at("foot").is_number_integer()
|
|
||||||
? std::array<const char *, 4>{"—", "Links", "Beidfüßig",
|
|
||||||
"Rechts"}[size_t(
|
|
||||||
r.at("foot").get<int>())]
|
|
||||||
: "—"},
|
|
||||||
{"Typ", r.at("type").is_number_integer()
|
|
||||||
? std::array<const char *,
|
|
||||||
4>{"—", "Defensiv", "Ausgeglichen",
|
|
||||||
"Offensiv"}[size_t(r.at("type").get<int>())]
|
|
||||||
: "—"}};
|
|
||||||
for (size_t i = 0; i < facts.size(); ++i)
|
|
||||||
body += "<div style=\"" +
|
|
||||||
rect((i % 2) * 823.5, (i / 2) * 115, 783.5, 91) + "\"><span>" +
|
|
||||||
esc(facts[i].first) + "</span><strong>" + esc(facts[i].second) +
|
|
||||||
"</strong></div>";
|
|
||||||
body += "</div></div>";
|
|
||||||
actions = button("transfer-offer-back", "Zurück zum Angebot",
|
|
||||||
"id=\"transfer-offer-back\"");
|
|
||||||
} else if (transfer_dialog_ == "team-info") {
|
} else if (transfer_dialog_ == "team-info") {
|
||||||
height = 800;
|
width = 420;
|
||||||
title = "Team-Info";
|
title = "Team-Info";
|
||||||
const auto values = engine_mode_ ? engine_transfer_value_.at("strengths") : demo_transfer_strengths(
|
const auto values = engine_mode_ ? engine_transfer_value_.at("strengths") : demo_transfer_strengths(snapshot.state, *world_, actor, demo_lineup_active(snapshot.state));
|
||||||
snapshot.state, *world_, actor, demo_lineup_active(snapshot.state));
|
body = "<div class=\"pg-row\">" + label(world_->find("clubs", actor), 58) + "</div><div class=\"pg-panel pg-col\" style=\"" + pg_css("gap:0px;padding:6px 12px;") + "\"><div class=\"pg-t\"><div class=\"pg-thead\">" + pg_th("Mannschaftsteil", 0) + pg_th("Aktive", 90, "r") +
|
||||||
body = "<div class=\"transfer-team-info\"><h3>" +
|
pg_th("Team", 90, "r") + "</div><div class=\"pg-tbody\">";
|
||||||
label(world_->find("clubs", actor), 58) +
|
|
||||||
"</h3><div class=\"transfer-info-table\"><div "
|
|
||||||
"class=\"transfer-info-table-row "
|
|
||||||
"head\"><span>Mannschaftsteil</span><span>Aktive</span><span>Team</"
|
|
||||||
"span></div>";
|
|
||||||
for (int i = 0; i < 4; ++i)
|
for (int i = 0; i < 4; ++i)
|
||||||
body +=
|
body += "<div class=\"pg-tr\">" + pg_td(std::array<const char *, 4>{"Tor", "Abwehr", "Mittelfeld", "Sturm"}[size_t(i)], 0) + pg_td("<strong>" + transfer_ui_number(values.at("active")[size_t(i)]) + "</strong>", 90, "r") +
|
||||||
"<div class=\"transfer-info-table-row\"><span>" +
|
pg_td(transfer_ui_number(values.at("team")[size_t(i)]), 90, "r") + "</div>";
|
||||||
std::string(std::array<const char *, 4>{"Tor", "Abwehr", "Mittelfeld",
|
body += "</div></div></div>";
|
||||||
"Sturm"}[size_t(i)]) +
|
actions = button("transfer-offer-back", "Zurück zum Angebot", "id=\"transfer-offer-back\"", true);
|
||||||
"</span><span>" + transfer_ui_number(values.at("active")[size_t(i)]) +
|
|
||||||
"</span><span>" + transfer_ui_number(values.at("team")[size_t(i)]) +
|
|
||||||
"</span></div>";
|
|
||||||
body += "</div></div>";
|
|
||||||
actions = button("transfer-offer-back", "Zurück zum Angebot",
|
|
||||||
"id=\"transfer-offer-back\"");
|
|
||||||
} else if (transfer_dialog_ == "poach-clubs") {
|
} else if (transfer_dialog_ == "poach-clubs") {
|
||||||
height = 1141;
|
width = 900;
|
||||||
title = "Spieler abwerben";
|
title = "Spieler abwerben";
|
||||||
|
sub = "Verein wählen, danach einen Spieler aus dessen Beispielkader.";
|
||||||
const auto leagues = world_->leagues();
|
const auto leagues = world_->leagues();
|
||||||
if (transfer_poach_league_.empty() && !leagues.empty())
|
if (transfer_poach_league_.empty() && !leagues.empty()) transfer_poach_league_ = leagues[0]->at("id").get<std::string>();
|
||||||
transfer_poach_league_ = leagues[0]->at("id").get<std::string>();
|
|
||||||
const auto *league = world_->find("competitions", transfer_poach_league_);
|
const auto *league = world_->find("competitions", transfer_poach_league_);
|
||||||
const auto country = league ? league->value("nation", "") : "";
|
const auto country = league ? league->value("nation", "") : "";
|
||||||
body = "<section class=\"transfer-poach\"><p>Verein wählen, danach einen "
|
body = "<nav class=\"pg-row\" style=\"" + pg_css("gap:12px;") + "\"><select id=\"transfer-poach-country\" class=\"tm-select wide\" aria-label=\"Land\">";
|
||||||
"Spieler aus dessen Beispielkader.</p><nav "
|
|
||||||
"class=\"transfer-poach-pickers\"><select "
|
|
||||||
"id=\"transfer-poach-country\" aria-label=\"Land\">";
|
|
||||||
for (const auto &nation : world_->rows("nations")) {
|
for (const auto &nation : world_->rows("nations")) {
|
||||||
const auto id = nation.at("id").get<std::string>();
|
const auto id = nation.at("id").get<std::string>();
|
||||||
if (world_->leagues(id).empty())
|
if (world_->leagues(id).empty()) continue;
|
||||||
continue;
|
body += "<option value=\"" + esc(id) + "\" " + std::string(country == id ? "selected" : "") + ">" + esc(world_->name(nation)) + "</option>";
|
||||||
body += "<option value=\"" + esc(id) + "\" " +
|
|
||||||
std::string(country == id ? "selected" : "") + ">" +
|
|
||||||
esc(world_->name(nation)) + "</option>";
|
|
||||||
}
|
}
|
||||||
body +=
|
body += "</select><select id=\"transfer-poach-league\" class=\"tm-select wide\" aria-label=\"Liga\">";
|
||||||
"</select><select id=\"transfer-poach-league\" aria-label=\"Liga\">";
|
|
||||||
for (const auto *l : world_->leagues(country))
|
for (const auto *l : world_->leagues(country))
|
||||||
body +=
|
body += "<option value=\"" + esc(l->at("id").get<std::string>()) + "\" " + std::string(l->at("id") == transfer_poach_league_ ? "selected" : "") + ">" + esc(world_->name(*l)) + "</option>";
|
||||||
"<option value=\"" + esc(l->at("id").get<std::string>()) + "\" " +
|
body += "</select></nav><div id=\"transfer-poach-scroll\" data-scope=\"clubs-" + esc(transfer_poach_league_) + "\" class=\"tm-poach-clubs\">";
|
||||||
std::string(l->at("id") == transfer_poach_league_ ? "selected" : "") +
|
for (const auto *club : world_->clubs(transfer_poach_league_))
|
||||||
">" + esc(world_->name(*l)) + "</option>";
|
body += btn("transfer-poach-club", crest(club, 64) + "<span>" + esc(world_->name(*club)) + "</span>", "pg-card tm-poach-club",
|
||||||
body +=
|
"id=\"transfer-poach-club-" + esc(club->at("id").get<std::string>()) + "\" data-club=\"" + esc(club->at("id").get<std::string>()) + "\" " + std::string(club->at("id") == actor ? "disabled" : ""));
|
||||||
"</select></nav><div id=\"transfer-poach-scroll\" data-scope=\"clubs-" +
|
body += "</div>";
|
||||||
esc(transfer_poach_league_) + "\" class=\"transfer-poach-clubs\">";
|
|
||||||
const auto clubs = world_->clubs(transfer_poach_league_);
|
|
||||||
for (size_t i = 0; i < clubs.size(); ++i)
|
|
||||||
body += btn(
|
|
||||||
"transfer-poach-club", label(clubs[i], 52), "",
|
|
||||||
"id=\"transfer-poach-club-" +
|
|
||||||
esc(clubs[i]->at("id").get<std::string>()) + "\" data-club=\"" +
|
|
||||||
esc(clubs[i]->at("id").get<std::string>()) + "\" style=\"" +
|
|
||||||
rect((i % 4) * 527, (i / 4) * 140, 511, 124) + "\" " +
|
|
||||||
std::string(clubs[i]->at("id") == actor ? "disabled" : ""));
|
|
||||||
body += "</div></section>";
|
|
||||||
actions = close();
|
actions = close();
|
||||||
} else if (transfer_dialog_ == "poach-roster") {
|
} else if (transfer_dialog_ == "poach-roster") {
|
||||||
height = 1400;
|
width = 720;
|
||||||
const auto *club = world_->find("clubs", transfer_poach_club_);
|
const auto *club = world_->find("clubs", transfer_poach_club_);
|
||||||
title = "Abwerben · " + std::string(club ? world_->name(*club) : "—");
|
title = "Abwerben · " + std::string(club ? world_->name(*club) : "—");
|
||||||
const auto rows = demo_transfer_roster(snapshot.state, *world_, actor,
|
const auto rows = demo_transfer_roster(snapshot.state, *world_, actor, transfer_poach_club_);
|
||||||
transfer_poach_club_);
|
body = "<div class=\"pg-panel pg-col\" style=\"" + pg_css("gap:0px;padding:6px 12px;") + "\"><div class=\"pg-t\"><div class=\"pg-thead\">" + pg_th("Spieler", 0) + pg_th("Pos.", 70) + pg_th("Alter", 70, "r") + pg_th("Stärke", 80, "r") + pg_th("Marktwert", 170, "r") +
|
||||||
body = "<div id=\"transfer-poach-scroll\" data-scope=\"roster-" +
|
"</div><div id=\"transfer-poach-scroll\" data-scope=\"roster-" + esc(transfer_poach_club_) + "\" class=\"pg-tbody\">";
|
||||||
esc(transfer_poach_club_) +
|
|
||||||
"\" class=\"transfer-poach-roster\"><div class=\"transfer-poach-row "
|
|
||||||
"head\"><span>Spieler</span><span>Pos.</span><span>Alter</"
|
|
||||||
"span><span>Stärke</span><span>Marktwert</span></div>";
|
|
||||||
if (rows.value("ok", false))
|
if (rows.value("ok", false))
|
||||||
for (const auto &r : rows.at("rows"))
|
for (const auto &r : rows.at("rows"))
|
||||||
body +=
|
body += "<div class=\"pg-tr\">" + pg_td(btn("transfer-poach-player", "<span>" + esc(r.at("name").get<std::string>()) + "</span>", "pg-link", "id=\"transfer-poach-player-" + esc(r.at("id").get<std::string>()) + "\" data-player=\"" +
|
||||||
"<div class=\"transfer-poach-row\">" +
|
esc(r.at("id").get<std::string>()) + "\""), 0, "", true) + pg_td(pg_pos(transfer_ui_role(r.at("position"))), 70, "", true) + pg_td(transfer_ui_number(r.at("age")), 70, "r") + pg_td("<strong>" + transfer_ui_number(r.at("strength")) + "</strong>", 80, "r") +
|
||||||
btn("transfer-poach-player", esc(r.at("name").get<std::string>()),
|
pg_td(esc(transfer_money((r.at("fee").get<int64_t>() * 3 + 1) / 2)), 170, "r") + "</div>";
|
||||||
"",
|
body += "</div></div></div>";
|
||||||
"id=\"transfer-poach-player-" +
|
actions = button("transfer-poach-back", "Zurück zu Vereinen", "id=\"transfer-poach-back\"") + close();
|
||||||
esc(r.at("id").get<std::string>()) + "\" data-player=\"" +
|
|
||||||
esc(r.at("id").get<std::string>()) + "\"") +
|
|
||||||
"<span>" + transfer_ui_role(r.at("position")) + "</span><span>" +
|
|
||||||
transfer_ui_number(r.at("age")) + "</span><span>" +
|
|
||||||
transfer_ui_number(r.at("strength")) + "</span><span>" +
|
|
||||||
esc(transfer_money((r.at("fee").get<int64_t>() * 3 + 1) / 2)) +
|
|
||||||
"</span></div>";
|
|
||||||
body += "</div>";
|
|
||||||
actions = button("transfer-poach-back", "Zurück zu Vereinen",
|
|
||||||
"id=\"transfer-poach-back\"") +
|
|
||||||
close();
|
|
||||||
} else if (transfer_dialog_ == "orders") {
|
} else if (transfer_dialog_ == "orders") {
|
||||||
|
width = 680;
|
||||||
title = "Vorgemerkte Transferaufträge";
|
title = "Vorgemerkte Transferaufträge";
|
||||||
const auto rows =
|
const auto rows = transfer_data().at("orders");
|
||||||
transfer_data().at("orders");
|
if (rows.empty()) body = "<div class=\"pg-panel pg-empty\" id=\"transfer-orders-scroll\">Noch keine Transferaufträge vorgemerkt.</div>";
|
||||||
height = rows.empty() ? 430 : std::min(1450., 352. + rows.size() * 74.);
|
|
||||||
body = "<div id=\"transfer-orders-scroll\" class=\"transfer-order-list\">";
|
|
||||||
if (rows.empty())
|
|
||||||
body += "<p>Noch keine Transferaufträge vorgemerkt.</p>";
|
|
||||||
else {
|
else {
|
||||||
body += "<div class=\"transfer-order-row "
|
body = "<div class=\"pg-panel pg-col\" style=\"" + pg_css("gap:0px;padding:6px 12px;") + "\"><div class=\"pg-t\"><div class=\"pg-thead\">" + pg_th("Spieler", 0) + pg_th("Art", 110) + pg_th("Betrag", 170, "r") + pg_th("Laufzeit", 120, "r") + pg_th("", 60) +
|
||||||
"head\"><span>Spieler</span><span>Art</span><span>Betrag</"
|
"</div><div id=\"transfer-orders-scroll\" class=\"pg-tbody\">";
|
||||||
"span><span>Laufzeit</span><span></span></div>";
|
const std::map<std::string, std::string> kinds{{"buy", "Kaufen"}, {"loan", "Ausleihen"}, {"sell", "Verkaufen"}, {"lend", "Verleihen"}};
|
||||||
const std::map<std::string, std::string> kinds{{"buy", "Kaufen"},
|
|
||||||
{"loan", "Ausleihen"},
|
|
||||||
{"sell", "Verkaufen"},
|
|
||||||
{"lend", "Verleihen"}};
|
|
||||||
for (size_t i = 0; i < rows.size(); ++i) {
|
for (size_t i = 0; i < rows.size(); ++i) {
|
||||||
const auto &o = rows[i];
|
const auto &o = rows[i];
|
||||||
body +=
|
body += "<div class=\"pg-tr\">" + pg_td("<strong>" + esc(o.at("name").get<std::string>()) + "</strong>", 0) + pg_td(esc(engine_mode_ ? "Gebot" : o.at("poached") == true ? "Abwerben" : kinds.at(o.at("kind"))), 110) +
|
||||||
"<div class=\"transfer-order-row\"><span>" +
|
pg_td(esc(transfer_money(o.at("fee").get<int64_t>())), 170, "r") + pg_td(std::to_string(o.at("months").get<int>()) + " Monate", 120, "r") +
|
||||||
esc(o.at("name").get<std::string>()) + "</span><span>" +
|
pg_td(btn("transfer-order-delete", "×", "pg-btn round tm-small", "id=\"transfer-order-delete-" + std::to_string(i) + "\" data-index=\"" + std::to_string(i) + "\" aria-label=\"Auftrag zurücknehmen\" " +
|
||||||
esc(engine_mode_ ? "Gebot" : o.at("poached") == true ? "Abwerben" : kinds.at(o.at("kind"))) +
|
std::string(engine_mode_ ? "disabled title=\"Noch nicht angebunden\"" : "")), 60, "r", true) + "</div>";
|
||||||
"</span><span>" + esc(transfer_money(o.at("fee").get<int64_t>())) +
|
|
||||||
"</span><span>" + std::to_string(o.at("months").get<int>()) +
|
|
||||||
" Monate</span>" +
|
|
||||||
btn("transfer-order-delete", "×", "",
|
|
||||||
"id=\"transfer-order-delete-" + std::to_string(i) +
|
|
||||||
"\" data-index=\"" + std::to_string(i) +
|
|
||||||
"\" aria-label=\"Auftrag zurücknehmen\" " + std::string(engine_mode_?"disabled title=\"Noch nicht angebunden\"":"")) +
|
|
||||||
"</div>";
|
|
||||||
}
|
}
|
||||||
|
body += "</div></div></div>";
|
||||||
}
|
}
|
||||||
body += "</div>";
|
actions = close("Schließen", true);
|
||||||
actions = close("Zurück");
|
|
||||||
} else {
|
} else {
|
||||||
title = transfer_dialog_ == "booked" ? (engine_mode_ ? "Transferauftrag" : "Auftrag vorgemerkt")
|
title = transfer_dialog_ == "booked" ? (engine_mode_ ? "Transferauftrag" : "Auftrag vorgemerkt") : "Transferliste voll";
|
||||||
: "Transferliste voll";
|
body = "<p>" + esc(transfer_notice_) + "</p>";
|
||||||
body = "<p class=\"transfer-notice\">" + esc(transfer_notice_) + "</p>";
|
actions = close("Verstanden", true);
|
||||||
actions = close("Verstanden");
|
|
||||||
}
|
}
|
||||||
return "<div id=\"transfer-layer\" class=\"transfer-layer\"><section "
|
return "<div id=\"transfer-layer\" class=\"pg-ov\"><section id=\"transfer-dialog\" class=\"pg-dlg " + esc(transfer_dialog_) + "\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"transfer-dialog-title\" style=\"width:" + pg(width) +
|
||||||
"id=\"transfer-dialog\" class=\"transfer-dialog " +
|
";\"><div><h2 id=\"transfer-dialog-title\">" + esc(title) + "</h2>" + (sub.empty() ? std::string() : "<span class=\"pg-dlg-sub\">" + sub + "</span>") + "</div><div id=\"transfer-dialog-scroll\" class=\"tm-dialog-body\" data-dialog=\"" +
|
||||||
esc(transfer_dialog_) +
|
esc(transfer_dialog_) + "\">" + body + "</div><nav class=\"pg-dlg-act\">" + actions + "</nav></section></div>";
|
||||||
"\" role=\"dialog\" aria-modal=\"true\" "
|
|
||||||
"aria-labelledby=\"transfer-dialog-title\" style=\"height:" +
|
|
||||||
scalar(height) + "dp;\"><h2 id=\"transfer-dialog-title\">" +
|
|
||||||
esc(title) +
|
|
||||||
"</h2><div id=\"transfer-dialog-scroll\" "
|
|
||||||
"class=\"transfer-dialog-scroll\" data-dialog=\"" +
|
|
||||||
esc(transfer_dialog_) + "\">" + body +
|
|
||||||
"</div><nav class=\"transfer-dialog-actions\">" + actions +
|
|
||||||
"</nav></section></div>";
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user