Disabled submission of tender types that have no items
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@420 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -18,7 +18,8 @@ foreach ($depositTypes AS $type) {
|
||||
echo $form->input("TenderType.{$type['id']}.checked",
|
||||
array(//'label' => $type['name'],
|
||||
'type' => 'checkbox',
|
||||
'checked' => true,
|
||||
'checked' => $type['stats']['undeposited'] > 0 ? true : false,
|
||||
'disabled' => $type['stats']['undeposited'] > 0 ? false : true,
|
||||
'value' => true,
|
||||
'label' => (" I have exactly " .
|
||||
FormatHelper::currency($type['stats']['undeposited']) .
|
||||
|
||||
Reference in New Issue
Block a user