| 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.HorizontalSection; |
| 6 | |
import org.kuali.student.common.ui.client.configurable.mvc.sections.VerticalSection; |
| 7 | |
import org.kuali.student.lum.program.client.ProgramConstants; |
| 8 | |
import org.kuali.student.lum.program.client.ProgramMsgConstants; |
| 9 | |
import org.kuali.student.lum.program.client.major.edit.MajorKeyProgramInfoEditConfiguration; |
| 10 | |
|
| 11 | |
public class MajorProposalKeyProgramInfoEditConfiguration extends MajorKeyProgramInfoEditConfiguration { |
| 12 | |
|
| 13 | |
|
| 14 | |
public MajorProposalKeyProgramInfoEditConfiguration(Configurer configurer) { |
| 15 | 0 | super(configurer); |
| 16 | 0 | } |
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
@Override |
| 22 | |
protected VerticalSection createKeyProgramInformationSection() { |
| 23 | 0 | VerticalSection section = new VerticalSection(SectionTitle.generateH3Title(getLabel(ProgramMsgConstants.PROGRAMINFORMATION_IDENTIFYINGDETAILS))); |
| 24 | |
|
| 25 | 0 | VerticalSection s1 = new VerticalSection(); |
| 26 | 0 | HorizontalSection s2 = new HorizontalSection(); |
| 27 | |
|
| 28 | 0 | configurer.addField(s1, ProgramConstants.CODE, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_CODE)); |
| 29 | 0 | configurer.addField(s1, ProgramConstants.PROGRAM_CLASSIFICATION, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_CLASSIFICATION)); |
| 30 | 0 | configurer.addField(s1, ProgramConstants.DEGREE_TYPE, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_DEGREETYPE)); |
| 31 | 0 | s2.addSection(s1); |
| 32 | 0 | s2.addSection(createReadOnlySection()); |
| 33 | 0 | section.addSection(s2); |
| 34 | 0 | return section; |
| 35 | |
} |
| 36 | |
|
| 37 | |
protected VerticalSection createReadOnlySection() { |
| 38 | 0 | VerticalSection section = new VerticalSection(); |
| 39 | 0 | section.addStyleName("readOnlySection"); |
| 40 | 0 | section.addStyleName("readOnlyNeedsToBeOnTheRight"); |
| 41 | 0 | configurer.addReadOnlyField(section, ProgramConstants.CREDENTIAL_PROGRAM_INSTITUTION_ID, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_INSTITUTION)); |
| 42 | 0 | configurer.addReadOnlyField(section, ProgramConstants.CREDENTIAL_PROGRAM_TYPE_NAME, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_CREDENTIALPROGRAM)); |
| 43 | 0 | configurer.addReadOnlyField(section, ProgramConstants.CREDENTIAL_PROGRAM_LEVEL, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_LEVEL)); |
| 44 | 0 | return section; |
| 45 | |
} |
| 46 | |
|
| 47 | |
} |