<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

${uiLabelMap.PageTitleEditSurveyQuestions} ${uiLabelMap.ContentSurveySurveyId} ${surveyId}

<#assign commonUrl="EditSurveyQuestions?surveyId=${parameters.surveyId}&" /> <#assign messageMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("lowCount", lowIndex, "highCount", highIndex, "total", listSize)/> <#assign commonDisplaying = Static["org.apache.ofbiz.base.util.UtilProperties"].getMessage("CommonUiLabels", "CommonDisplaying", messageMap, locale)/> <@htmlTemplate.nextPrev commonUrl=commonUrl listSize=listSize viewSize=viewSize viewIndex=viewIndex highIndex=highIndex commonDisplaying=commonDisplaying/> <#assign alt_row = false> <#list surveyQuestionAndApplList as surveyQuestionAndAppl> <#assign questionType = surveyQuestionAndAppl.getRelatedOne("SurveyQuestionType", true)/> <#assign questionCat = surveyQuestionAndAppl.getRelatedOne("SurveyQuestionCategory", true)!/> <#assign currentSurveyPage = surveyQuestionAndAppl.getRelatedOne("SurveyPage", true)!/> <#assign currentSurveyMultiResp = surveyQuestionAndAppl.getRelatedOne("SurveyMultiResp", true)!/> <#if currentSurveyMultiResp?has_content> <#assign currentSurveyMultiRespColumns = currentSurveyMultiResp.getRelated("SurveyMultiRespColumn", null, null, false)/> <#else> <#assign currentSurveyMultiRespColumns = []/> class="alternate-row">
<#if currentSurveyMultiRespColumns?has_content> <#else> <#assign alt_row = !alt_row>
${uiLabelMap.CommonId} ${uiLabelMap.CommonType} ${uiLabelMap.ContentSurveryCategory} ${uiLabelMap.CommonDescription} ${uiLabelMap.ContentSurveyQuestion} ${uiLabelMap.CommonPage} ${uiLabelMap.ContentSurveyMultiResp} ${uiLabelMap.ContentSurveyMultiRespColumn} ${uiLabelMap.CommonRequired} ${uiLabelMap.CommonSequenceNum} ${uiLabelMap.ContentSurveyWithQuestion} ${uiLabelMap.ContentSurveyWithOption}      
${surveyQuestionAndAppl.surveyQuestionId} ${questionType.get("description",locale)} ${(questionCat.description)!} ${surveyQuestionAndAppl.description!} ${surveyQuestionAndAppl.question!} ${uiLabelMap.CommonEdit} ${uiLabelMap.ContentSurveyQuestion}
${uiLabelMap.CommonRemove}
<#-- apply question from category --> <#if surveyQuestionCategory?has_content>

<#assign alt_row = false> <#list categoryQuestions as question> <#assign questionType = question.getRelatedOne("SurveyQuestionType", false)> class="alternate-row"> <#assign alt_row = !alt_row>
${uiLabelMap.CommonId} ${uiLabelMap.CommonDescription} ${uiLabelMap.CommonType} ${uiLabelMap.ContentSurveyQuestion} ${uiLabelMap.CommonPage} ${uiLabelMap.ContentSurveyMultiResp} ${uiLabelMap.ContentSurveyMultiRespColumn} ${uiLabelMap.CommonRequired} ${uiLabelMap.CommonSequenceNum} ${uiLabelMap.ContentSurveyWithQuestion} ${uiLabelMap.ContentSurveyWithOption}  
${question.surveyQuestionId} ${question.description!} ${questionType.get("description",locale)} ${question.question!}
  • ${uiLabelMap.ContentSurveyApplyQuestionFromCategory}