Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-15 14:22:53 +01:00
Add support button to admin-nav
Dieser Commit ist enthalten in:
Ursprung
522d4e9489
Commit
4c923e17d7
3 geänderte Dateien mit 76 neuen und 52 gelöschten Zeilen
|
@ -7,8 +7,28 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{nav-item route="adminWizardsLogs" label="admin.wizard.log.nav_label"}}
|
{{nav-item route="adminWizardsLogs" label="admin.wizard.log.nav_label"}}
|
||||||
{{nav-item route="adminWizardsManager" label="admin.wizard.manager.nav_label"}}
|
{{nav-item route="adminWizardsManager" label="admin.wizard.manager.nav_label"}}
|
||||||
|
|
||||||
|
<div class="admin-actions">
|
||||||
|
<a
|
||||||
|
target="_blank"
|
||||||
|
class="btn-primary btn btn-icon-text"
|
||||||
|
href={{
|
||||||
|
i18n "admin.wizard.support_button.url" name=wizard.support_button.url
|
||||||
|
}}
|
||||||
|
title={{
|
||||||
|
i18n
|
||||||
|
"admin.wizard.support_button.title"
|
||||||
|
name=wizard.support_button.title
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{{d-icon "far-life-ring"}}{{i18n
|
||||||
|
"admin.wizard.support_button.title"
|
||||||
|
name=wizard.support_button.title
|
||||||
|
}}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{{/admin-nav}}
|
{{/admin-nav}}
|
||||||
|
|
||||||
<div class="admin-container">
|
<div class="admin-container">
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
</div>
|
</div>
|
|
@ -47,9 +47,9 @@ en:
|
||||||
translation: "Translation"
|
translation: "Translation"
|
||||||
translation_placeholder: "key"
|
translation_placeholder: "key"
|
||||||
type: "Type"
|
type: "Type"
|
||||||
none: "Make a selection"
|
none: "Make a selection"
|
||||||
submission_key: 'submission key'
|
submission_key: "submission key"
|
||||||
param_key: 'param'
|
param_key: "param"
|
||||||
group: "Group"
|
group: "Group"
|
||||||
permitted: "Permitted"
|
permitted: "Permitted"
|
||||||
advanced: "Advanced"
|
advanced: "Advanced"
|
||||||
|
@ -58,7 +58,10 @@ en:
|
||||||
select_type: "Select a type"
|
select_type: "Select a type"
|
||||||
condition: "Condition"
|
condition: "Condition"
|
||||||
index: "Index"
|
index: "Index"
|
||||||
|
support_button:
|
||||||
|
title: "Request Support"
|
||||||
|
url: "https://thepavilion.io/w/bug-report/steps/plugin"
|
||||||
|
|
||||||
message:
|
message:
|
||||||
wizard:
|
wizard:
|
||||||
select: "Select a wizard, or create a new one"
|
select: "Select a wizard, or create a new one"
|
||||||
|
@ -91,24 +94,24 @@ en:
|
||||||
destroying: Destroying wizards...
|
destroying: Destroying wizards...
|
||||||
import_complete: Import complete
|
import_complete: Import complete
|
||||||
destroy_complete: Destruction complete
|
destroy_complete: Destruction complete
|
||||||
|
|
||||||
editor:
|
editor:
|
||||||
show: "Show"
|
show: "Show"
|
||||||
hide: "Hide"
|
hide: "Hide"
|
||||||
preview: "{{action}} Preview"
|
preview: "{{action}} Preview"
|
||||||
popover: "{{action}} Fields"
|
popover: "{{action}} Fields"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
conditional:
|
conditional:
|
||||||
name: 'if'
|
name: "if"
|
||||||
output: 'then'
|
output: "then"
|
||||||
assignment:
|
assignment:
|
||||||
name: 'set'
|
name: "set"
|
||||||
association:
|
association:
|
||||||
name: 'map'
|
name: "map"
|
||||||
validation:
|
validation:
|
||||||
name: 'ensure'
|
name: "ensure"
|
||||||
|
|
||||||
selector:
|
selector:
|
||||||
label:
|
label:
|
||||||
text: "text"
|
text: "text"
|
||||||
|
@ -136,7 +139,7 @@ en:
|
||||||
group: "Select group"
|
group: "Select group"
|
||||||
list: "Enter item"
|
list: "Enter item"
|
||||||
custom_field: "Select field"
|
custom_field: "Select field"
|
||||||
|
|
||||||
error:
|
error:
|
||||||
failed: "failed to save wizard"
|
failed: "failed to save wizard"
|
||||||
required: "{{type}} requires {{property}}"
|
required: "{{type}} requires {{property}}"
|
||||||
|
@ -144,7 +147,7 @@ en:
|
||||||
dependent: "{{property}} is dependent on {{dependent}}"
|
dependent: "{{property}} is dependent on {{dependent}}"
|
||||||
conflict: "{{type}} with {{property}} '{{value}}' already exists"
|
conflict: "{{type}} with {{property}} '{{value}}' already exists"
|
||||||
after_time: "After time invalid"
|
after_time: "After time invalid"
|
||||||
|
|
||||||
step:
|
step:
|
||||||
header: "Steps"
|
header: "Steps"
|
||||||
title: "Title"
|
title: "Title"
|
||||||
|
@ -158,7 +161,7 @@ en:
|
||||||
force_final:
|
force_final:
|
||||||
label: "Conditional Final Step"
|
label: "Conditional Final Step"
|
||||||
description: "Display this step as the final step if conditions on later steps have not passed when the user reaches this step."
|
description: "Display this step as the final step if conditions on later steps have not passed when the user reaches this step."
|
||||||
|
|
||||||
field:
|
field:
|
||||||
header: "Fields"
|
header: "Fields"
|
||||||
label: "Label"
|
label: "Label"
|
||||||
|
@ -178,7 +181,7 @@ en:
|
||||||
property: "Property"
|
property: "Property"
|
||||||
prefill: "Prefill"
|
prefill: "Prefill"
|
||||||
content: "Content"
|
content: "Content"
|
||||||
date_time_format:
|
date_time_format:
|
||||||
label: "Format"
|
label: "Format"
|
||||||
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:
|
||||||
|
@ -195,7 +198,7 @@ en:
|
||||||
weeks: "Weeks"
|
weeks: "Weeks"
|
||||||
months: "Months"
|
months: "Months"
|
||||||
years: "Years"
|
years: "Years"
|
||||||
|
|
||||||
type:
|
type:
|
||||||
text: "Text"
|
text: "Text"
|
||||||
textarea: Textarea
|
textarea: Textarea
|
||||||
|
@ -213,21 +216,21 @@ en:
|
||||||
date: Date
|
date: Date
|
||||||
time: Time
|
time: Time
|
||||||
date_time: Date & Time
|
date_time: Date & Time
|
||||||
|
|
||||||
connector:
|
connector:
|
||||||
and: "and"
|
and: "and"
|
||||||
or: "or"
|
or: "or"
|
||||||
then: "then"
|
then: "then"
|
||||||
set: "set"
|
set: "set"
|
||||||
equal: '='
|
equal: "="
|
||||||
greater: '>'
|
greater: ">"
|
||||||
less: '<'
|
less: "<"
|
||||||
greater_or_equal: '>='
|
greater_or_equal: ">="
|
||||||
less_or_equal: '<='
|
less_or_equal: "<="
|
||||||
regex: '=~'
|
regex: "=~"
|
||||||
association: '→'
|
association: "→"
|
||||||
is: 'is'
|
is: "is"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
header: "Actions"
|
header: "Actions"
|
||||||
include: "Include Fields"
|
include: "Include Fields"
|
||||||
|
@ -235,8 +238,8 @@ en:
|
||||||
post: "Post"
|
post: "Post"
|
||||||
topic_attr: "Topic Attribute"
|
topic_attr: "Topic Attribute"
|
||||||
interpolate_fields: "Insert wizard fields using the field_id in w{}. Insert user fields using field key in u{}."
|
interpolate_fields: "Insert wizard fields using the field_id in w{}. Insert user fields using field key in u{}."
|
||||||
|
|
||||||
run_after:
|
run_after:
|
||||||
label: "Run After"
|
label: "Run After"
|
||||||
wizard_completion: "Wizard Completion"
|
wizard_completion: "Wizard Completion"
|
||||||
custom_fields:
|
custom_fields:
|
||||||
|
@ -318,7 +321,7 @@ en:
|
||||||
messageable_level: Messageable Level
|
messageable_level: Messageable Level
|
||||||
visibility_level: Visibility Level
|
visibility_level: Visibility Level
|
||||||
members_visibility_level: Members Visibility Level
|
members_visibility_level: Members Visibility Level
|
||||||
|
|
||||||
custom_field:
|
custom_field:
|
||||||
nav_label: "Custom Fields"
|
nav_label: "Custom Fields"
|
||||||
add: "Add"
|
add: "Add"
|
||||||
|
@ -348,7 +351,7 @@ en:
|
||||||
basic_category: "Category"
|
basic_category: "Category"
|
||||||
basic_group: "Group"
|
basic_group: "Group"
|
||||||
post: "Post"
|
post: "Post"
|
||||||
|
|
||||||
submissions:
|
submissions:
|
||||||
nav_label: "Submissions"
|
nav_label: "Submissions"
|
||||||
title: "{{name}} Submissions"
|
title: "{{name}} Submissions"
|
||||||
|
@ -356,38 +359,38 @@ en:
|
||||||
|
|
||||||
api:
|
api:
|
||||||
label: "API"
|
label: "API"
|
||||||
nav_label: 'APIs'
|
nav_label: "APIs"
|
||||||
select: "Select API"
|
select: "Select API"
|
||||||
create: "Create API"
|
create: "Create API"
|
||||||
new: 'New API'
|
new: "New API"
|
||||||
name: "Name (can't be changed)"
|
name: "Name (can't be changed)"
|
||||||
name_placeholder: 'Underscored'
|
name_placeholder: "Underscored"
|
||||||
title: 'Title'
|
title: "Title"
|
||||||
title_placeholder: 'Display name'
|
title_placeholder: "Display name"
|
||||||
remove: 'Delete'
|
remove: "Delete"
|
||||||
save: "Save"
|
save: "Save"
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
label: "Authorization"
|
label: "Authorization"
|
||||||
btn: 'Authorize'
|
btn: "Authorize"
|
||||||
settings: "Settings"
|
settings: "Settings"
|
||||||
status: "Status"
|
status: "Status"
|
||||||
redirect_uri: "Redirect url"
|
redirect_uri: "Redirect url"
|
||||||
type: 'Type'
|
type: "Type"
|
||||||
type_none: 'Select a type'
|
type_none: "Select a type"
|
||||||
url: "Authorization url"
|
url: "Authorization url"
|
||||||
token_url: "Token url"
|
token_url: "Token url"
|
||||||
client_id: 'Client id'
|
client_id: "Client id"
|
||||||
client_secret: 'Client secret'
|
client_secret: "Client secret"
|
||||||
username: 'username'
|
username: "username"
|
||||||
password: 'password'
|
password: "password"
|
||||||
params:
|
params:
|
||||||
label: 'Params'
|
label: "Params"
|
||||||
new: 'New param'
|
new: "New param"
|
||||||
|
|
||||||
status:
|
status:
|
||||||
label: "Status"
|
label: "Status"
|
||||||
authorized: 'Authorized'
|
authorized: "Authorized"
|
||||||
not_authorized: "Not authorized"
|
not_authorized: "Not authorized"
|
||||||
code: "Code"
|
code: "Code"
|
||||||
access_token: "Access token"
|
access_token: "Access token"
|
||||||
|
@ -406,7 +409,7 @@ en:
|
||||||
|
|
||||||
log:
|
log:
|
||||||
label: "Logs"
|
label: "Logs"
|
||||||
|
|
||||||
log:
|
log:
|
||||||
nav_label: "Logs"
|
nav_label: "Logs"
|
||||||
|
|
||||||
|
@ -418,7 +421,7 @@ en:
|
||||||
imported: imported
|
imported: imported
|
||||||
upload: Select wizards.json
|
upload: Select wizards.json
|
||||||
destroy: Destroy
|
destroy: Destroy
|
||||||
destroyed: destroyed
|
destroyed: destroyed
|
||||||
|
|
||||||
wizard_js:
|
wizard_js:
|
||||||
group:
|
group:
|
||||||
|
@ -530,7 +533,7 @@ en:
|
||||||
yourself_confirm:
|
yourself_confirm:
|
||||||
title: "Did you forget to add recipients?"
|
title: "Did you forget to add recipients?"
|
||||||
body: "Right now this message is only being sent to yourself!"
|
body: "Right now this message is only being sent to yourself!"
|
||||||
|
|
||||||
realtime_validations:
|
realtime_validations:
|
||||||
similar_topics:
|
similar_topics:
|
||||||
insufficient_characters: "Type a minimum 5 characters to start looking for similar topics"
|
insufficient_characters: "Type a minimum 5 characters to start looking for similar topics"
|
||||||
|
|
|
@ -33,6 +33,7 @@ if respond_to?(:register_svg_icon)
|
||||||
register_svg_icon "chevron-right"
|
register_svg_icon "chevron-right"
|
||||||
register_svg_icon "chevron-left"
|
register_svg_icon "chevron-left"
|
||||||
register_svg_icon "save"
|
register_svg_icon "save"
|
||||||
|
register_svg_icon "far-life-ring"
|
||||||
end
|
end
|
||||||
|
|
||||||
after_initialize do
|
after_initialize do
|
||||||
|
|
Laden …
In neuem Issue referenzieren