1 | |
package org.kuali.student.lum.program.client.major.proposal; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.configurable.mvc.Configurer; |
4 | |
import org.kuali.student.common.ui.client.configurable.mvc.SectionTitle; |
5 | |
import org.kuali.student.common.ui.client.configurable.mvc.sections.VerticalSection; |
6 | |
import org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView; |
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.ProgramMsgConstants; |
10 | |
import org.kuali.student.lum.program.client.ProgramSections; |
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
public class MajorProposalInformationEditConfiguration extends AbstractSectionConfiguration { |
16 | |
|
17 | |
|
18 | 0 | public MajorProposalInformationEditConfiguration(Configurer configurer) { |
19 | 0 | this.setConfigurer(configurer); |
20 | 0 | rootSection = new VerticalSectionView(ProgramSections.PROGRAM_PROPOSAL_EDIT, getLabel(ProgramMsgConstants.PROGRAM_MENU_SECTIONS_PROPOSALINFORMATION), ProgramConstants.PROGRAM_MODEL_ID); |
21 | 0 | } |
22 | |
|
23 | |
@Override |
24 | |
protected void buildLayout() { |
25 | 0 | VerticalSection section = new VerticalSection(SectionTitle.generateH3Title("Proposal Information")); |
26 | 0 | configurer.addField(section, ProgramConstants.PROPOSAL_TITLE_PATH, generateMessageInfo(ProgramMsgConstants.PROPOSALINFORMATION_CLUPROGRAMTITLE)); |
27 | 0 | configurer.addField(section, ProgramConstants.PROPOSAL_TYPE_OF_MODIFICATON_PATH, generateMessageInfo(ProgramMsgConstants.PROPOSALINFORMATION_CLUMODIFICATIONTYPE)); |
28 | 0 | configurer.addField(section, ProgramConstants.PROPOSAL_ABSTRACT_PATH, generateMessageInfo(ProgramMsgConstants.PROPOSALINFORMATION_CLUABSTRACTTYPE)); |
29 | 0 | configurer.addField(section, ProgramConstants.PROPOSAL_RATIONALE_PATH, generateMessageInfo(ProgramMsgConstants.PROPOSALINFORMATION_CLUPROPOSALRATIONALE)); |
30 | 0 | rootSection.addSection(section); |
31 | 0 | } |
32 | |
|
33 | |
} |