1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

Select language for server and per user

This commit is contained in:
Harvey Kandola 2022-03-21 12:43:45 -04:00
parent 4494ace0a2
commit e81cbad385
5 changed files with 18 additions and 16 deletions

View file

@ -1,25 +1,25 @@
{{#section/base-editor-inline document=document folder=folder page=page tip=(localize 'section_pdf') isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
<div class="form-group">
<label for="new-space-name">{{localize 'pdf'}}</label>
<label>{{localize 'pdf'}}</label>
{{input type="text" class="form-control mousetrap" placeholder="click upload button below" value=pdfName readonly=true}}
<small class="form-text text-muted">{{localize 'section_pdf_upload_explain'}}</small>
</div>
<div class="form-group">
<label for="new-space-name">{{localize 'section_pdf_height'}}</label>
<label>{{localize 'section_pdf_height'}}</label>
{{input type="number" class="form-control mousetrap" placeholder="e.g. 700" value=pdfOption.height}}
<small class="form-text text-muted">{{localize 'section_pdf_height_explain'}}</small>
</div>
<div class="form-group">
<label for="new-space-name">{{localize 'section_pdf_start'}}</label>
<label>{{localize 'section_pdf_start'}}</label>
{{input type="number" class="form-control mousetrap" placeholder="e.g. 1" value=pdfOption.startPage}}
<small class="form-text text-muted">{{localize 'section_pdf_start_explain'}}</small>
</div>
<div class="form-group">
<label for="new-space-name">{{localize 'section_pdf_sidebar'}}</label>
<label>{{localize 'section_pdf_sidebar'}}</label>
<select onchange={{action "onSetSidebar" value="target.value"}} class="form-control" role="button" tabindex="0">
<option value="none" selected={{is-equal pdfOption.sidebar "none"}}>
{{localize 'section_pdf_sidebar_none'}}

View file

@ -7,6 +7,6 @@
{{#each content key="@identity" as |item|}}
<option value={{read-path item optionValuePath}} selected={{is-equal item selection}}>
{{read-path item optionLabelPath}}
</option>
</option>
{{/each}}
</select>