Skip to content

Commit

Permalink
Adding riskLevel field to role editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Mar 20, 2015
1 parent c1b4ec5 commit 8b823be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Expand Up @@ -30,6 +30,7 @@ <h3 style="margin-left: 20px;"><wicket:message key="PageRoleEditor.subtitle.basi
<div class="form-group" wicket:id="roleType" />
<div class="form-group" wicket:id="requestable" />
<div class="form-group" wicket:id="identifier"/>
<div class="form-group" wicket:id="riskLevel"/>

<!-- Owner ref -->
<div class="form-group">
Expand Down
Expand Up @@ -113,6 +113,7 @@ public class PageRole extends PageAdminRoles implements ProgressReportingAwarePa
private static final String ID_OWNER_EDIT = "ownerRefEdit";
private static final String ID_OWNER_LABEL = "ownerRefLabel";
private static final String ID_APPROVER_REF = "approverRef";
private static final String ID_RISK_LEVEL = "riskLevel";

private static final String ID_INDUCEMENTS = "inducementsPanel";
private static final String ID_ASSIGNMENTS = "assignmentsPanel";
Expand Down Expand Up @@ -327,6 +328,10 @@ private void initLayout(){
createStringResource("PageRoleEditor.label.identifier"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
form.add(identifier);

TextFormGroup riskLevel = new TextFormGroup(ID_RISK_LEVEL, new PrismPropertyModel(model, RoleType.F_RISK_LEVEL),
createStringResource("PageRoleEditor.label.riskLevel"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
form.add(riskLevel);

IModel choices = WebMiscUtil.createReadonlyModelFromEnum(ActivationStatusType.class);
IChoiceRenderer renderer = new EnumChoiceRenderer();
DropDownFormGroup adminStatus = new DropDownFormGroup(ID_ADMIN_STATUS, new PrismPropertyModel(model,
Expand Down
Expand Up @@ -29,6 +29,7 @@ PageRoleEditor.label.description=Description
PageRoleEditor.label.type=Type
PageRoleEditor.label.requestable=Requestable
PageRoleEditor.label.identifier=Identifier
PageRoleEditor.label.riskLevel=Risk Level
PageRoleEditor.label.ownerRef=Owner
PageRoleEditor.label.ownerRef.placeholder=Set Owner
PageRoleEditor.label.approverRef=Approver
Expand Down

0 comments on commit 8b823be

Please sign in to comment.