mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
form: move referral info message to aside, change wording
This commit is contained in:
parent
4c20250888
commit
d8d478a95e
@ -43,7 +43,7 @@
|
||||
<div id="notification-box"></div>
|
||||
<div class="page-container">
|
||||
<div class="card dark:~d_neutral @low">
|
||||
<div class="flex flex-col justify-between md:flex-row gap-3 items-baseline mb-2">
|
||||
<div class="flex flex-col md:flex-row gap-3 items-baseline mb-2">
|
||||
<span class="heading mr-5">
|
||||
{{ if .passwordReset }}
|
||||
{{ .strings.passwordReset }}
|
||||
@ -58,9 +58,6 @@
|
||||
{{ .helpMessage }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ if .fromUser }}
|
||||
<span class="badge ~positive text-lg p-1 px-2 self-center">{{ .strings.invitedBy }} {{ .fromUser }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="flex flex-col md:flex-row gap-3">
|
||||
<div class="flex-1">
|
||||
@ -126,6 +123,9 @@
|
||||
</form>
|
||||
</div>
|
||||
<div class="flex-initial">
|
||||
{{ if .fromUser }}
|
||||
<aside class="col aside sm ~positive mb-4" id="invite-from-user" data-from="{{ .fromUser }}">{{ .strings.invitedBy }}</aside>
|
||||
{{ end }}
|
||||
<div class="card ~neutral @low mb-4">
|
||||
<span class="label supra">{{ .strings.passwordRequirementsHeader }}</span>
|
||||
<ul>
|
||||
|
@ -37,7 +37,7 @@
|
||||
"changePassword": "Change Password",
|
||||
"referralsDescription": "Invite friends & family to Jellyfin with this link. Come back here for a new one if it expires.",
|
||||
"copyReferral": "Copy Link",
|
||||
"invitedBy": "Invited By"
|
||||
"invitedBy": "You were invited by user {user}."
|
||||
},
|
||||
"notifications": {
|
||||
"errorUserExists": "User already exists.",
|
||||
|
@ -392,3 +392,8 @@ const create = (event: SubmitEvent) => {
|
||||
validator.validate();
|
||||
|
||||
form.onsubmit = create;
|
||||
|
||||
const invitedByAside = document.getElementById("invite-from-user");
|
||||
if (typeof(invitedByAside) != "undefined" && invitedByAside != null) {
|
||||
invitedByAside.textContent = invitedByAside.textContent.replace("{user}", invitedByAside.getAttribute("data-from"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user