mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
i18n admin strings
This commit is contained in:
parent
479d03ba70
commit
29447a2784
4 changed files with 73 additions and 47 deletions
|
@ -1,52 +1,52 @@
|
|||
<div class="view-customize">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="smtp-host">Host</label>
|
||||
<label for="smtp-host">{{localize 'smtp_host'}}</label>
|
||||
{{focus-input id="smtp-host" type="text" value=model.smtp.host class=(if SMTPHostEmptyError "form-control is-invalid" "form-control")}}
|
||||
<small class="form-text">e.g. my.host.com</small>
|
||||
<small class="form-text">{{localize 'smtp_host_explain'}}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtp-port">Port</label>
|
||||
<label for="smtp-port">{{localize 'smtp_port'}}</label>
|
||||
{{input id="smtp-port" type="text" value=model.smtp.port class=(if SMTPPortEmptyError "form-control is-invalid" "form-control")}}
|
||||
<small class="form-text text-muted">e.g. 587</small>
|
||||
<small class="form-text text-muted">{{localize 'smtp_port_explain'}}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtp-userid">Username</label>
|
||||
<label for="smtp-userid">{{localize 'smtp_username'}}</label>
|
||||
{{input id="smtp-userid" type="text" value=model.smtp.userid class="form-control"}}
|
||||
<small class="form-text text-muted">e.g. Login username for SMTP server</small>
|
||||
<small class="form-text text-muted">{{localize 'smtp_username_explain'}}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtp-password">Password</label>
|
||||
<label for="smtp-password">{{localize 'smtp_password'}}</label>
|
||||
{{input id="smtp-password" type="password" value=model.smtp.password class="form-control"}}
|
||||
<small class="form-text text-muted">e.g. Login password for SMTP server</small>
|
||||
<small class="form-text text-muted">{{localize 'smtp_password_explain'}}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtp-sender">Sender Email</label>
|
||||
<label for="smtp-sender">{{localize 'smtp_sender_email'}}</label>
|
||||
{{input id="smtp-sender" type="email" value=model.smtp.sender class=(if SMTPSenderEmptyError "form-control is-invalid" "form-control")}}
|
||||
<small class="form-text text-muted">e.g. user@some-domain.com</small>
|
||||
<small class="form-text text-muted">{{localize 'smtp_sender_email_explain'}}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtp-senderName">Sender Name</label>
|
||||
<label for="smtp-senderName">{{localize 'smtp_sender_name'}}</label>
|
||||
{{input id="smtp-senderName" type="text" value=model.smtp.senderName class=(if senderNameError "form-control is-invalid" "form-control")}}
|
||||
<small class="form-text text-muted">e.g. Documize</small>
|
||||
<small class="form-text text-muted">{{localize 'smtp_sender_name_explain'}}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtp-fqdn">Sender Server Fully Qualified Domain Name</label>
|
||||
<label for="smtp-fqdn">{{localize 'smtp_fqdn'}}</label>
|
||||
{{input id="smtp-fqdn" type="text" value=model.smtp.fqdn class="form-control"}}
|
||||
<small class="form-text text-muted">(optional) SMTP can require valid domain name, e.g. docs.example.org</small>
|
||||
<small class="form-text text-muted">{{localize 'smtp_fqdn_explain'}}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Anonymous Authentication (Ignore Credentials)</label>
|
||||
<label>{{localize 'smtp_anon_auth'}}</label>
|
||||
{{x-toggle value=model.smtp.anonymous size="medium" theme="light" onToggle=(action (mut model.smtp.anonymous))}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Base64 Encode Credentials</label>
|
||||
<label>{{localize 'smtp_base64'}}</label>
|
||||
{{x-toggle value=model.smtp.base64creds size="medium" theme="light" onToggle=(action (mut model.smtp.base64creds))}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Use SSL</label>
|
||||
<label>{{localize 'smtp_ssl'}}</label>
|
||||
{{x-toggle value=model.smtp.usessl size="medium" theme="light" onToggle=(action (mut model.smtp.usessl))}}
|
||||
</div>
|
||||
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Send label=buttonText onClick=(action "saveSMTP")}}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#if spaces}}
|
||||
{{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Export label="Export All Content" onClick=(action "onExport")}}
|
||||
{{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Export label=(localize 'space_admin_export') onClick=(action "onExport")}}
|
||||
<Ui::UiSpacer @size="300" />
|
||||
|
||||
<div class="view-customize">
|
||||
|
@ -10,22 +10,22 @@
|
|||
{{#link-to "folder.index" space.id space.slug}}
|
||||
<div class="name">
|
||||
{{#if (eq space.spaceType constants.SpaceType.Public)}}
|
||||
<i class={{concat "dicon " constants.Icon.World}} title="Public space" />
|
||||
<i class={{concat "dicon " constants.Icon.World}} title={{localize 'public'}} />
|
||||
{{/if}}
|
||||
{{#if (eq space.spaceType constants.SpaceType.Protected)}}
|
||||
<i class={{concat "dicon " constants.Icon.People}} title="Protected space" />
|
||||
<i class={{concat "dicon " constants.Icon.People}} title={{localize 'protected'}} />
|
||||
{{/if}}
|
||||
{{#if (eq space.spaceType constants.SpaceType.Private)}}
|
||||
<i class={{concat "dicon " constants.Icon.Person}} title="Personal space" />
|
||||
<i class={{concat "dicon " constants.Icon.Person}} title={{localize 'personal'}} />
|
||||
{{/if}}
|
||||
{{space.name}}
|
||||
</div>
|
||||
<div class="desc">Some description that is to be wired up to the backend</div>
|
||||
<div class="desc">{{space.desc}}</div>
|
||||
{{/link-to}}
|
||||
<Ui::UiSpacer @size="200" />
|
||||
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.AddUser color=constants.Color.Green tooltip="Add myself as owner" onClick=(action "onOwner" space.id)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip="Delete space" onClick=(action "onShow" space.id)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.AddUser color=constants.Color.Green tooltip=(localize 'space_admin_make_owner') onClick=(action "onOwner" space.id)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip=(localize 'space_admin_delete') onClick=(action "onShow" space.id)}}
|
||||
{{/ui/ui-toolbar}}
|
||||
</div>
|
||||
</li>
|
||||
|
@ -36,14 +36,14 @@
|
|||
<div id="space-delete-modal" class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">Space Deletion</div>
|
||||
<div class="modal-header">{{localize 'space_admin_delete_title'}}</div>
|
||||
<div class="modal-body">
|
||||
<form onsubmit={{action "onDelete"}}>
|
||||
<p>Are you sure you want to delete this space and all documents?</p>
|
||||
<p>{{localize 'space_admin_delete_check'}}</p>
|
||||
<div class="form-group">
|
||||
<label for="delete-space-name">Please type space name to confirm</label>
|
||||
{{input type="text" id="delete-space-name" class="form-control mousetrap" placeholder="Space name" value=deleteSpace.name}}
|
||||
<small class="form-text text-muted">This will delete all documents and templates within this space!</small>
|
||||
<label for="delete-space-name">{{localize 'space_admin_confirm'}}</label>
|
||||
{{input type="text" id="delete-space-name" class="form-control mousetrap" placeholder="" value=deleteSpace.name}}
|
||||
<small class="form-text text-muted">{{localize 'space_admin_confirm_explain'}}</small>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -56,7 +56,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<p>There are no shared spaces to manage</p>
|
||||
<p>{{localize 'space_admin_empty'}}</p>
|
||||
{{/if}}
|
||||
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
</div>
|
||||
<div class="grid-cell-2 grid-cell-right">
|
||||
{{#ui/ui-toolbar dark=false light=true raised=false large=false bordered=false}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Green tooltip="Update label" onClick=(action "onShowUpdateModal" label)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip="Delete label" onClick=(action "onShowDeleteModal" label)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Green tooltip=(localize 'update') onClick=(action "onShowUpdateModal" label)}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip=(localize 'delete') onClick=(action "onShowDeleteModal" label)}}
|
||||
{{/ui/ui-toolbar}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -30,14 +30,14 @@
|
|||
<div id="add-label-modal" class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">Add Label</div>
|
||||
<div class="modal-header">{{localize 'label_add'}}</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="add-label-name">Name</label>
|
||||
{{input type="text" id="add-label-name" class="form-control mousetrap" placeholder="Label name" value=labelName}}
|
||||
<label for="add-label-name">{{localize 'name'}}</label>
|
||||
{{input type="text" id="add-label-name" class="form-control mousetrap" placeholder="" value=labelName}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Color</label>
|
||||
<label>{{localize 'color'}}</label>
|
||||
{{ui/label-color-picker onChange=(action "onSetColor")}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -53,14 +53,14 @@
|
|||
<div id="edit-label-modal" class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">Update Label</div>
|
||||
<div class="modal-header">{{localize 'label_update'}}</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="edit-label-name">Name</label>
|
||||
{{input type="text" id="edit-label-name" class="form-control mousetrap" placeholder="Label name" value=labelName}}
|
||||
<label for="edit-label-name">{{localize 'name'}}</label>
|
||||
{{input type="text" id="edit-label-name" class="form-control mousetrap" placeholder="" value=labelName}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Color</label>
|
||||
<label>{{localize 'color'}}</label>
|
||||
{{ui/label-color-picker onChange=(action "onSetColor")}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -73,6 +73,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{#ui/ui-dialog title="Delete Label" confirmCaption="Delete" buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDelete")}}
|
||||
<p>Are you sure you want to delete the label <b>{{deleteLabel.name}}?</b></p>
|
||||
{{#ui/ui-dialog title=(localize 'label_delete') confirmCaption="Delete" buttonColor=constants.Color.Red show=showDeleteDialog onAction=(action "onDelete")}}
|
||||
<p>{{localize 'label_delete_confirm' deleteLabel.name}}</p>
|
||||
{{/ui/ui-dialog}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue