@@ -112,6 +112,15 @@ NumberSeriesFormTitle=Číselné řady
|
||||
Number=Číslo:
|
||||
Prefix=Prefix:
|
||||
|
||||
GlobalSettings=Globální nastavení
|
||||
Requirements=Požadavky
|
||||
EMails=E-maily
|
||||
NewRequirement=Nový požadavek
|
||||
AuthRequirement=Dílčí schválení
|
||||
ConfirmRequirement=Schválení
|
||||
InsertField=Vložit pole
|
||||
EnableRequirements=Povolit zadávání požadavků
|
||||
|
||||
CentresForRequirements=Střediska, pro která lze vkládat požadavky
|
||||
WorkgroupMembership=Členství v komisích
|
||||
LogedInUser=Přihlášený uživatel:
|
||||
|
||||
@@ -157,6 +157,10 @@
|
||||
<property name="sessionFactory" ref="sessionFactory"/>
|
||||
</bean>
|
||||
|
||||
<bean id="settingsDao" class="info.bukova.isspst.dao.jpa.GlobalSettingsDaoJPA">
|
||||
<property name="sessionFactory" ref="sessionFactory"/>
|
||||
</bean>
|
||||
|
||||
<!-- Business logic -->
|
||||
<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
|
||||
|
||||
@@ -238,4 +242,27 @@
|
||||
<property name="dao" ref="serviceItemDao" />
|
||||
<property name="validator" ref="validator" />
|
||||
</bean>
|
||||
|
||||
<bean id="settingsService" class="info.bukova.isspst.services.settings.GlobalSettingServiceImpl">
|
||||
<constructor-arg name="marshaller" ref="marshallerSettings"/>
|
||||
<constructor-arg name="unmarshaller" ref="unmarshallerSettings"/>
|
||||
<property name="dao" ref="settingsDao"/>
|
||||
</bean>
|
||||
|
||||
<bean id="xmlCtxSettings" class="org.castor.spring.xml.XMLContextFactoryBean">
|
||||
<property name="castorProperties">
|
||||
<props>
|
||||
<prop key="org.exolab.castor.xml.introspector.primitive.nodetype">element</prop>
|
||||
</props>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="unmarshallerSettings" class="org.castor.spring.xml.CastorUnmarshallerFactoryBean">
|
||||
<property name="xmlContext" ref="xmlCtxSettings" />
|
||||
</bean>
|
||||
|
||||
<bean id="marshallerSettings" class="org.castor.spring.xml.CastorMarshallerFactoryBean">
|
||||
<property name="xmlContext" ref="xmlCtxSettings" />
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<menuitem label="${labels.AgendaWorkflow}" href="/settings/workflow" disabled="${not sec:isAllGranted('PERM_EDIT_WORKFLOW')}"/>
|
||||
<menuitem label="Číselné řady" onClick="@command('numSeries')"/>
|
||||
<menuitem label="Limity částek"/>
|
||||
<menuitem label="E-maily" />
|
||||
<menuitem label="${labels.GlobalSettings}" onClick="@command('globalSettings')"/>
|
||||
</menubar>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,108 @@
|
||||
<?page title="EMail" 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.GlobalSettingsVM')" width="620px"
|
||||
binder="@init(queueName='email')">
|
||||
<caption src="/img/settings.png" zclass="form-caption" label="${labels.GlobalSettings}" />
|
||||
|
||||
<tabbox orient="vertical" height="400px">
|
||||
<tabs width="100px">
|
||||
<tab label="${labels.Requirements}"/>
|
||||
<tab label="${labels.EMails}"/>
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
<div>
|
||||
<checkbox label="${labels.EnableRequirements}" checked="@bind(vm.settings.enableRequirements)"/>
|
||||
</div>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tab label="${labels.NewRequirement}"/>
|
||||
<tab label="${labels.AuthRequirement}"/>
|
||||
<tab label="${labels.ConfirmRequirement}"/>
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
<grid>
|
||||
<columns>
|
||||
<column hflex="min"/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${labels.MailSubject}"/> <textbox value="@bind(vm.settings.newReqTemplate.subject)" width="100%"/>
|
||||
</row>
|
||||
<row spans="2">
|
||||
<vbox>
|
||||
<ckeditor toolbar="Basic" value="@bind(vm.settings.newReqTemplate.text)" width="460px" height="180px"/>
|
||||
<button label="${labels.InsertField}" popup="fieldsNew, position=after_start"/>
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<grid>
|
||||
<columns>
|
||||
<column hflex="min"/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${labels.MailSubject}"/> <textbox value="@bind(vm.settings.authReqTemplate.subject)" width="100%"/>
|
||||
</row>
|
||||
<row spans="2">
|
||||
<vbox>
|
||||
<ckeditor toolbar="Basic" value="@bind(vm.settings.authReqTemplate.text)" width="460px" height="180px"/>
|
||||
<button label="${labels.InsertField}" popup="fieldsAuth, position=after_start"/>
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<grid>
|
||||
<columns>
|
||||
<column hflex="min"/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${labels.MailSubject}"/> <textbox value="@bind(vm.settings.confReqTemplate.subject)" width="100%"/>
|
||||
</row>
|
||||
<row spans="2">
|
||||
<vbox>
|
||||
<ckeditor toolbar="Basic" value="@bind(vm.settings.confReqTemplate.text)" width="460px" height="180px"/>
|
||||
<button label="${labels.InsertField}" popup="fieldsConfirm, position=after_start"/>
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
<menupopup id="fieldsNew" children="@load(vm.requirementFields)">
|
||||
<template name="children">
|
||||
<menuitem label="@load(each) @converter(vm.locConverter)" onClick="@command('insertField', field=each, message=vm.settings.newReqTemplate)"/>
|
||||
</template>
|
||||
</menupopup>
|
||||
<menupopup id="fieldsAuth" children="@load(vm.requirementFields)">
|
||||
<template name="children">
|
||||
<menuitem label="@load(each) @converter(vm.locConverter)" onClick="@command('insertField', field=each, message=vm.settings.authReqTemplate)"/>
|
||||
</template>
|
||||
</menupopup>
|
||||
<menupopup id="fieldsConfirm" children="@load(vm.requirementFields)">
|
||||
<template name="children">
|
||||
<menuitem label="@load(each) @converter(vm.locConverter)" onClick="@command('insertField', field=each, message=vm.settings.confReqTemplate)"/>
|
||||
</template>
|
||||
</menupopup>
|
||||
</tabpanel>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
|
||||
|
||||
<include src="/app/formButtons.zul"/>
|
||||
</window>
|
||||
</zk>
|
||||
@@ -1,7 +1,8 @@
|
||||
<?page title="NumberSeriesFormTitle" contentType="text/html;charset=UTF-8"?>
|
||||
<zk>
|
||||
<window id="editWin" border="normal" apply="org.zkoss.bind.BindComposer"
|
||||
viewModel="@id('vm') @init('info.bukova.isspst.ui.settings.NumberSeriesVM')" closable="true" width="400px">
|
||||
viewModel="@id('vm') @init('info.bukova.isspst.ui.settings.NumberSeriesVM')" closable="true" width="400px"
|
||||
binder="@init(queueName='numSeries')">
|
||||
<caption zclass="form-caption" label="${labels.NumberSeriesFormTitle}" />
|
||||
<!-- <combobox></combobox> -->
|
||||
<grid model="@load(vm.numberSeriesList)">
|
||||
|
||||
Reference in New Issue
Block a user