- Fixed bug where viewProfile did not show pretty printed values
- Fixed bug/rfe where it was not obvious when hovering over the rank column in the Asset Manager that you can drag rows up and down. Added cursor:move to the td's style.
This commit is contained in:
parent
1d5ab960ee
commit
1a1f477563
4 changed files with 10 additions and 4 deletions
|
|
@ -1495,7 +1495,7 @@ sub www_manageAssets {
|
|||
var assetManager = new AssetManager();
|
||||
assetManager.AddColumn('".WebGUI::Form::checkbox({extras=>'onchange="toggleAssetListSelectAll(this.form);"'})."','','center','form');
|
||||
assetManager.AddColumn(' ','','center','');
|
||||
assetManager.AddColumn('".$i18n->get("rank")."','','right','numeric');
|
||||
assetManager.AddColumn('".$i18n->get("rank")."','style=\"cursor:move\"','right','numeric');
|
||||
assetManager.AddColumn('".$i18n->get("99")."','','left','');
|
||||
assetManager.AddColumn('".$i18n->get("type")."','','left','');
|
||||
assetManager.AddColumn('".$i18n->get("last updated")."','','center','');
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ sub www_viewProfile {
|
|||
next if ($field->get("fieldName") eq "email" && !$u->profileField("publicEmail"));
|
||||
push(@array, {
|
||||
'profile.label' => $field->getLabel,
|
||||
'profile.value' => $u->profileField($field->getId)
|
||||
'profile.value' => $field->formField({dataDefault => $u->profileField($field->getId)},2)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ Optionally pass in a list of properties to override the default properties of an
|
|||
|
||||
=head3 withWrapper
|
||||
|
||||
A boolean indicating whether to return just the field, or the field with a table label wrapper.
|
||||
An integer indicating whether to return just the field's form input, or the field with a table label wrapper (1), or just the field value (2).
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -143,8 +143,10 @@ sub formField {
|
|||
$default = WebGUI::Operation::Shared::secureEval($properties->{dataDefault});
|
||||
}
|
||||
$properties->{value} = $default;
|
||||
if ($withWrapper) {
|
||||
if ($withWrapper == 1) {
|
||||
return WebGUI::Form::DynamicField->new(%{$properties})->displayFormWithWrapper;
|
||||
} elsif ($withWrapper == 2) {
|
||||
return WebGUI::Form::DynamicField->new(%{$properties})->displayValue;
|
||||
} else {
|
||||
return WebGUI::Form::DynamicField->new(%{$properties})->displayForm;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue