diff options
Diffstat (limited to 'share/html/Asset/Elements/EditPeople')
-rw-r--r-- | share/html/Asset/Elements/EditPeople | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/share/html/Asset/Elements/EditPeople b/share/html/Asset/Elements/EditPeople index 8db9a7f1f9..79120caa6b 100644 --- a/share/html/Asset/Elements/EditPeople +++ b/share/html/Asset/Elements/EditPeople @@ -45,12 +45,19 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -% for my $role ( $AssetObj->Roles ) { - <&| /Elements/LabeledValue, Label => loc($role), Class => "asset-people-".CSSClass($role) &> - <& /Elements/EmailInput, Name => $role, Size => undef, Default => $ARGS{$role}, Autocomplete => 1, ($AssetObj->Role($role)->{Single} ? () : (AutocompleteType => 'Principals', AutocompleteMultiple => 1)) &> +% for my $role ( $object->Roles ) { +% my $custom_role = $object->CustomRoleObj($role); +% my $hint = $custom_role ? $custom_role->EntryHint : ''; + <&| /Elements/LabeledValue, Label => $object->LabelForRole($role), Class => "asset-people-".CSSClass($role), LabelTooltip => $hint &> + <& /Elements/EmailInput, Name => $role, Size => undef, Default => $ARGS{$role}, Autocomplete => 1, ($object->Role($role)->{Single} ? () : (AutocompleteType => 'Principals', AutocompleteMultiple => 1)) &> </&> % } +<%init> +my $object = $AssetObj->Id ? $AssetObj : $CatalogObj; +</%init> + <%args> $AssetObj +$CatalogObj </%args> |