template.major3Select.ftl Maven / Gradle / Ivy
[#ftl]
[#macro majorSelect id extra...]
[#local emptyOption = b.text('filed.choose') + "..." /]
[#local projectLabel = '项目'/]
[#local projectId = id + "project" /]
[#local projectName = extra['projectId']!'project.id' /]
[#if extra['theme']??]
[#local theme = extra['theme']/]
[/#if]
[#if project??]
[#assign thisProject=project/]
[#else]
[#assign thisProject=projectContext.project/]
[/#if]
[#local educatonLabel = b.text('entity.EducationLevel') /]
[#local levelId = id + "level" /]
[#local levelName = extra['levelId']!'level.id' /]
[#if theme??]
[@b.select label=educatonLabel id=levelId name=levelName items=[] empty=emptyOption theme=theme/]
[#else]
[@b.select label=educatonLabel id=levelId name=levelName items=[] empty=emptyOption /]
[/#if]
[#local departLabel = b.text("common.college") /]
[#local departId = id + 'department' /]
[#local departName = extra['departId']!'department.id' /]
[#if theme??]
[@b.select label=departLabel id=departId name=departName items=[] empty=emptyOption theme=theme/]
[#else]
[@b.select label=departLabel id=departId name=departName items=[] empty=emptyOption /]
[/#if]
[#if extra['majorId']??]
[#local majorLabel = b.text('entity.major') /]
[#local majorId = id + 'major' /]
[#local majorName = extra['majorId'] /]
[#if theme??]
[@b.select label=majorLabel id=majorId name=majorName items=[] empty=emptyOption theme=theme/]
[#else]
[@b.select label=majorLabel id=majorId name=majorName items=[] empty=emptyOption /]
[/#if]
[/#if]
[#if extra['majorId']?? && extra['directionId']??]
[#local directionLabel = b.text('entity.direction') /]
[#local directionId = id + 'direction' /]
[#local directionName = extra['directionId'] /]
[#if theme??]
[@b.select label=directionLabel id=directionId name=directionName items=[] empty=emptyOption theme=theme/]
[#else]
[@b.select label=directionLabel id=directionId name=directionName items=[] empty=emptyOption/]
[/#if]
[/#if]
[/#macro]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy