Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
improved wizard settings UX
Dieser Commit ist enthalten in:
Ursprung
3f4b8afb55
Commit
aeadef9aa5
3 geänderte Dateien mit 10 neuen und 4 gelöschten Zeilen
|
@ -4,9 +4,9 @@
|
||||||
{{#each-in field.validations as |name props|}}
|
{{#each-in field.validations as |name props|}}
|
||||||
<li>
|
<li>
|
||||||
<span class="setting-title">
|
<span class="setting-title">
|
||||||
{{input type="checkbox" checked=props.status }}
|
<h4>{{i18n (concat 'admin.wizard.field.validations.' name)}}</h4>
|
||||||
{{i18n 'admin.wizard.field.validations.enable'
|
{{input type="checkbox" checked=props.status}}
|
||||||
validation_type=(i18n (concat 'admin.wizard.field.validations.' name))}}
|
{{i18n 'admin.wizard.field.validations.enabled'}}
|
||||||
</span>
|
</span>
|
||||||
<div class="validation-container">
|
<div class="validation-container">
|
||||||
<div class="validation-section">
|
<div class="validation-section">
|
||||||
|
|
|
@ -647,6 +647,12 @@
|
||||||
.realtime-validations ul {
|
.realtime-validations ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
background-color: var(--tertiary-low);
|
||||||
|
padding: 0 1em;
|
||||||
|
margin: 0 0 1em 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.validation-container {
|
.validation-container {
|
||||||
|
|
|
@ -178,7 +178,7 @@ en:
|
||||||
instructions: "<a href='https://momentjs.com/docs/#/displaying/format/' target='_blank'>Moment.js format</a>"
|
instructions: "<a href='https://momentjs.com/docs/#/displaying/format/' target='_blank'>Moment.js format</a>"
|
||||||
validations:
|
validations:
|
||||||
header: "Realtime Validations"
|
header: "Realtime Validations"
|
||||||
enable: "Enable %{validation_type}"
|
enabled: "Enable this validation"
|
||||||
similar_topics: "Similar Topics"
|
similar_topics: "Similar Topics"
|
||||||
position: "Position"
|
position: "Position"
|
||||||
above: "Above"
|
above: "Above"
|
||||||
|
|
Laden …
In neuem Issue referenzieren