1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-05 21:45:28 +02:00

i18n admin sections

This commit is contained in:
McMatts 2022-03-02 19:55:52 -05:00
parent a7dac6911c
commit 479d03ba70
9 changed files with 131 additions and 78 deletions

View file

@ -1,52 +1,51 @@
<div class="view-customize">
<div class="form-group">
<label for="siteTitle">Site Name</label>
<label for="siteTitle">{{localize 'customize_name'}}</label>
{{focus-input id="siteTitle" type="text" value=model.general.title class=(if hasTitleInputError "form-control is-invalid" "form-control")}}
<small class="form-text text-muted">Provide short title for this Documize Community instance</small>
<small class="form-text text-muted">{{localize 'customize_name_explain'}}</small>
</div>
<div class="form-group">
<label id="siteMessage">Site Message</label>
<label id="siteMessage">{{localize 'customize_message'}}</label>
<div id="editor-message" class="wysiwyg wysiwyg-editor">
{{{model.general.message}}}
</div>
<small class="form-text text-muted">Provide short message explaining this Documize Community instance</small>
<small class="form-text text-muted">{{localize 'customize_message_explain'}}</small>
</div>
<div class="form-group">
<label>Site Theme</label>
<label>{{localize 'customize_theme'}}</label>
{{ui/theme-picker onChange=(action "onThemeChange")}}
</div>
<div class="form-group">
<label>Site Logo</label>
<label>{{localize 'customize_logo'}}</label>
<div>
{{ui/ui-button light=true color=constants.Color.Gray label="Use Default" onClick=(action "onDefaultLogo")}}
{{ui/ui-button light=true color=constants.Color.Gray label=(localize 'customize_logo_default') onClick=(action "onDefaultLogo")}}
{{ui/ui-button-gap}}
{{ui/ui-button light=true color=constants.Color.Yellow label="Upload Custom" id="upload-logo"}}
{{ui/ui-button light=true color=constants.Color.Yellow label=(localize 'customize_logo_upload') id="upload-logo"}}
</div>
<small class="form-text text-muted">You can choose to upload a small logo (e.g. 64px x 64px)</small>
<small class="form-text text-muted">{{localize 'customize_logo_explain'}}</small>
</div>
{{#if (eq appMeta.location "selfhost")}}
<div class="form-group">
<label for="orgDomain">Site URL Subdomain</label>
<label for="orgDomain">{{localize 'customize_subdomain'}}</label>
{{input id="orgDomain" type="text" value=domain class="form-control" placeholder="e.g. docs"}}
<small class="form-text text-muted">If you are hosting on "docs.example.org" then the subdomain value should be set to "docs"</small>
<small class="form-text text-muted">{{localize 'customize_subdomain_explain'}}</small>
</div>
{{/if}}
<div class="form-group">
<label>Public Spaces Viewable By Anonymous Users</label>
<label>{{localize 'customize_anon'}}</label>
{{x-toggle value=model.general.allowAnonymousAccess size="medium" theme="light" onToggle=(action (mut model.general.allowAnonymousAccess))}}
<small class="form-text text-muted">Share content with unauthenticated site visitors</small>
<small class="form-text text-muted">{{localize 'customize_anon_explain'}}</small>
</div>
<div class="form-group">
<label for="conversionEndpoint">Conversion Service URL</label>
<label for="conversionEndpoint">{{localize 'customize_conversion_url'}}</label>
{{input id="conversionEndpoint" type="text" value=model.general.conversionEndpoint class=(if hasConversionEndpointInputError "form-control is-invalid" "form-control")}}
<small class="form-text text-muted">
Endpoint for handling import/export (e.g. https://api.documize.com,
<a href="https://docs.documize.com/s/WNEpptWJ9AABRnha/administration-guides/d/WO0pt_MXigAB6sJ7/general-options">read the documentation</a>)
{{localize 'customize_conversion_explain'}} (e.g. https://api.documize.com, <a href="https://docs.documize.com/s/WNEpptWJ9AABRnha/administration-guides/d/WO0pt_MXigAB6sJ7/general-options">read the documentation</a>)
</small>
</div>
<div class="form-group">
<label for="maxTags">Maximum Tags Per Document</label>
<label for="maxTags">{{localize 'customize_tags'}}</label>
<select class="form-control" id="maxTags" {{action "change" on="change"}}>
<option selected={{is-equal 3 maxTags}} value="3">3</option>
<option selected={{is-equal 4 maxTags}} value="4">4</option>
@ -57,7 +56,7 @@
<option selected={{is-equal 9 maxTags}} value="9">9</option>
<option selected={{is-equal 10 maxTags}} value="10">10</option>
</select>
<small class="form-text text-muted">How many tags can be assigned to a document (between 3 and 10 tags)</small>
<small class="form-text text-muted">{{localize 'customize_tags_explain'}}</small>
</div>
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Settings label=(localize 'save') onClick=(action "save")}}