mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-13 18:38:11 +02:00
ADded hints to mutations. Not visisble yet!!!
This commit is contained in:
1 parent
64807f3c7a
commit
f37d0a77f9
2 files changed
+27
No files matched your search
@@ -98,6 +98,18 @@ $PageSection = "Admin";
|
||||
></textarea>
|
||||
</label>
|
||||
|
||||
<label class="AdminEditorField AdminEditorWideField">
|
||||
<span>Hint</span>
|
||||
<textarea
|
||||
id="AdminMutationHint"
|
||||
rows="3"
|
||||
placeholder="Optional hint shown by the Mutation Hints upgrade."
|
||||
></textarea>
|
||||
<small>
|
||||
Optional. Leave blank if this mutation should not have a hint.
|
||||
</small>
|
||||
</label>
|
||||
|
||||
<label class="AdminEditorField">
|
||||
<span>Priority</span>
|
||||
<input
|
||||
|
||||
@@ -626,6 +626,11 @@ function LoadAdminMutationIntoForm(
|
||||
Mutation.Description ?? ""
|
||||
);
|
||||
|
||||
SetAdminMutationField(
|
||||
"AdminMutationHint",
|
||||
Mutation.Hint ?? ""
|
||||
);
|
||||
|
||||
SetAdminMutationField(
|
||||
"AdminMutationPriority",
|
||||
Number(
|
||||
@@ -749,6 +754,11 @@ function StartNewAdminMutation() {
|
||||
""
|
||||
);
|
||||
|
||||
SetAdminMutationField(
|
||||
"AdminMutationHint",
|
||||
""
|
||||
);
|
||||
|
||||
SetAdminMutationField(
|
||||
"AdminMutationPriority",
|
||||
10
|
||||
@@ -1991,6 +2001,11 @@ function GetAdminMutationFormData() {
|
||||
"AdminMutationDescription"
|
||||
).value.trim(),
|
||||
|
||||
Hint:
|
||||
document.getElementById(
|
||||
"AdminMutationHint"
|
||||
).value.trim(),
|
||||
|
||||
Priority: Number(
|
||||
document.getElementById(
|
||||
"AdminMutationPriority"
|
||||
|
||||
Reference in new issue
Block a user