Implementováno hlídání limitů pro komise. Požadavek, který by překročíl
limit komise nelze uložit. V globálním nastavení byl rozchozen checkbox "Povolit zadávání požadavků". closes #137
This commit is contained in:
@@ -40,29 +40,62 @@
|
||||
</template>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
<groupbox
|
||||
vflex="1"
|
||||
mold="3d">
|
||||
<caption
|
||||
image="/img/commission-small.png"
|
||||
label="${labels.WorkgroupMembership}" />
|
||||
<hbox children="@load(vm.workgroups)">
|
||||
<template name="children">
|
||||
<listbox model="@load(vm.groupRoles[each])">
|
||||
<listhead>
|
||||
<listheader label="@load(each.fullName)" />
|
||||
</listhead>
|
||||
<template
|
||||
name="model"
|
||||
var="role">
|
||||
<hbox vflex="1">
|
||||
<groupbox
|
||||
vflex="1"
|
||||
hflex="1"
|
||||
mold="3d">
|
||||
<caption
|
||||
image="/img/commission-small.png"
|
||||
label="${labels.WorkgroupMembership}" />
|
||||
<vbox
|
||||
sclass="addScrollbar"
|
||||
children="@load(vm.workgroups)">
|
||||
<template name="children">
|
||||
<listbox model="@load(vm.groupRoles[each])">
|
||||
<listhead>
|
||||
<listheader label="@load(each.fullName)" />
|
||||
</listhead>
|
||||
<template
|
||||
name="model"
|
||||
var="role">
|
||||
<listitem>
|
||||
<listcell label="@load(role.description)" />
|
||||
</listitem>
|
||||
</template>
|
||||
</listbox>
|
||||
</template>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
<groupbox
|
||||
vflex="1"
|
||||
hflex="1"
|
||||
mold="3d">
|
||||
<caption
|
||||
image="/img/money-small.png"
|
||||
label="${labels.WorkgroupLimits}" />
|
||||
<vbox
|
||||
sclass="addScrollbar"
|
||||
children="@load(vm.workgroups)">
|
||||
<template name="children">
|
||||
<listbox>
|
||||
<listhead>
|
||||
<listheader label="@load(each.fullName)"/>
|
||||
<listheader/>
|
||||
</listhead>
|
||||
<listitem>
|
||||
<listcell label="@load(role.description)" />
|
||||
<listcell label="${labels.Limit}"/>
|
||||
<listcell label="@load(each.limit) @converter(vm.standardBigDecimalConverter)"/>
|
||||
</listitem>
|
||||
</template>
|
||||
</listbox>
|
||||
</template>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
<listitem>
|
||||
<listcell label="${labels.Spent}"/>
|
||||
<listcell label="@load(vm.workgroupSpent[each]) @converter(vm.standardBigDecimalConverter)"/>
|
||||
</listitem>
|
||||
</listbox>
|
||||
</template>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</window>
|
||||
</zk>
|
||||
Reference in New Issue
Block a user