1 | |
package org.kuali.student.lum.program.client.major.proposal; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.configurable.mvc.SectionTitle; |
4 | |
import org.kuali.student.common.ui.client.configurable.mvc.sections.VerticalSection; |
5 | |
import org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView; |
6 | |
import org.kuali.student.common.ui.client.widgets.field.layout.element.MessageKeyInfo; |
7 | |
import org.kuali.student.lum.common.client.configuration.AbstractSectionConfiguration; |
8 | |
import org.kuali.student.lum.program.client.ProgramConstants; |
9 | |
import org.kuali.student.lum.program.client.ProgramSections; |
10 | |
import org.kuali.student.lum.program.client.properties.ProgramProperties; |
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
public class MajorProposalInformationEditConfiguration extends AbstractSectionConfiguration { |
16 | |
|
17 | |
|
18 | 0 | public MajorProposalInformationEditConfiguration() { |
19 | 0 | rootSection = new VerticalSectionView(ProgramSections.PROGRAM_PROPOSAL_EDIT, ProgramProperties.get().program_menu_sections_proposalInformation(), ProgramConstants.PROGRAM_MODEL_ID); |
20 | 0 | } |
21 | |
|
22 | |
@Override |
23 | |
protected void buildLayout() { |
24 | 0 | VerticalSection section = new VerticalSection(SectionTitle.generateH3Title("Proposal Information")); |
25 | 0 | configurer.addField(section, ProgramConstants.PROPOSAL_TITLE_PATH, new MessageKeyInfo(ProgramProperties.get().proposalInformation_cluProgramTitle())); |
26 | 0 | configurer.addField(section, ProgramConstants.PROPOSAL_TYPE_OF_MODIFICATON_PATH, new MessageKeyInfo(ProgramProperties.get().proposalInformation_cluModificationType())); |
27 | 0 | configurer.addField(section, ProgramConstants.PROPOSAL_ABSTRACT_PATH, new MessageKeyInfo(ProgramProperties.get().proposalInformation_cluAbstractType())); |
28 | 0 | configurer.addField(section, ProgramConstants.PROPOSAL_RATIONALE_PATH, new MessageKeyInfo(ProgramProperties.get().proposalInformation_cluProposalRationale())); |
29 | 0 | rootSection.addSection(section); |
30 | 0 | } |
31 | |
|
32 | |
} |