Umožněn upload obrázku podpisu uživatele. Menu Nastavení -> Uživatelské
nastavení. refs #132
This commit is contained in:
@@ -165,6 +165,8 @@ GlobalSettingsRefunds=Náhrady
|
||||
GlobalSettingsFreeMealsCount=Počet jídel zdarma
|
||||
GlobalSettingsHours=Hodin
|
||||
|
||||
UserSettings=Uživatelské nastavení
|
||||
|
||||
TravelOrdersFormTitle=Vyúčtování služební cesty
|
||||
TravelOrdersGridNumser=Číslo
|
||||
TravelOrdersGridReqDate=Datum požadavku
|
||||
|
||||
@@ -159,6 +159,12 @@
|
||||
<aop:scoped-proxy/>
|
||||
</bean>
|
||||
|
||||
<!-- File storage -->
|
||||
<bean id="storage" class="info.bukova.isspst.storage.LocalFileStorage">
|
||||
<property name="context" ref="servletContext"/>
|
||||
<property name="rootPath" value="/WEB-INF/upload"/>
|
||||
</bean>
|
||||
|
||||
<bean id="definitionFiller" class="info.bukova.isspst.reporting.DefinitionFiller"/>
|
||||
|
||||
<bean id="genFactory" class="info.bukova.isspst.reporting.GeneratorFactory"/>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
dummy file
|
||||
@@ -74,6 +74,9 @@
|
||||
image="/img/global-setting-016.png"
|
||||
label="${labels.GlobalSettings}…"
|
||||
onClick="@command('globalSettings')" />
|
||||
<menuitem
|
||||
label="${labels.UserSettings}…"
|
||||
onClick="@command('userSettings')" />
|
||||
<menuitem
|
||||
label="${labels.AgendaWorkflow}"
|
||||
href="/settings/workflow"
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?page title="UserSettings" contentType="text/html;charset=UTF-8"?>
|
||||
<zk>
|
||||
<window id="editWin" border="normal"
|
||||
closable="true"
|
||||
apply="org.zkoss.bind.BindComposer"
|
||||
viewModel="@id('vm') @init('info.bukova.isspst.ui.settings.UserSettingsVM')"
|
||||
onClose="@command('onClose')"
|
||||
width="700px">
|
||||
<caption
|
||||
zclass="form-caption"
|
||||
label="${labels.UserSettings}" />
|
||||
|
||||
<vbox>
|
||||
<label value="Podpis:"/>
|
||||
<hbox>
|
||||
<button label="Nahrát obrázek podpisu"
|
||||
upload="true,maxsize=600,accept=image/*"
|
||||
onUpload="@command('uploadSignature')"
|
||||
sclass="nicebutton"/>
|
||||
<div width="400px" height="110px" style="border: 1px solid black;">
|
||||
<image height="100px" content="@load(vm.signatureImg)"/>
|
||||
</div>
|
||||
</hbox>
|
||||
<button label="Smazat" onClick="@command('removeSignature')" sclass="nicebutton"/>
|
||||
</vbox>
|
||||
|
||||
<include src="/app/formButtons.zul"/>
|
||||
|
||||
</window>
|
||||
</zk>
|
||||
Reference in New Issue
Block a user