Revize 3d07030e
Přidáno uživatelem Ondřej Fibich před téměř 9 roky(ů)
application/controllers/transfers.php | ||
---|---|---|
// array with only one origin account
|
||
$arr_orig_accounts[$oa->id] = $oa->name . ' (' . $oa->id . ', '
|
||
. $oa->account_attribute_id . ', ' . $oa->member_id . ')';
|
||
// account attributes for types of accounts
|
||
$aa_model = new Account_attribute_Model();
|
||
$account_attributes = $aa_model->get_account_attributes();
|
||
|
||
foreach ($account_attributes as $aattr)
|
||
{
|
||
$arr_attributes[$aattr->id] = $aattr->id . ' ' . $aattr->name;
|
||
}
|
||
|
||
$arr_attributes = arr::merge(array
|
||
(
|
||
NULL => '----- ' . __('Select account type') . ' -----'
|
||
), $arr_attributes);
|
||
|
||
// form
|
||
$form = new Forge('transfers/add_from_account/' . $origin_account_id);
|
||
... | ... | |
// destination account
|
||
$form->group('Destination account');
|
||
|
||
$form->dropdown('account_type')
|
||
->options($arr_attributes)
|
||
->style('width:450px');
|
||
|
||
$form->dropdown('aname')
|
||
->label('Destination account (name, ID, type, member ID)')
|
||
->options($dst_accounts)
|
Také k dispozici: Unified diff
refs #967: Removal of account type select box from add from account transfer form because this functionality is now handled by destination account filter