{** * templates/manager/reviewForms/reviewFormElementForm.tpl * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Form to create/modify a review form element. * *}
{csrf} {fbvElement id="reviewFormId" type="hidden" name="reviewFormId" value=$reviewFormId} {fbvElement id="reviewFormElementId" type="hidden" name="reviewFormElementId" value=$reviewFormElementId} {include file="controllers/notification/inPlaceNotification.tpl" notificationId="reviewFormElementsNotification"} {fbvFormArea id="reviewFormElementForm"} {fbvFormSection title="manager.reviewFormElements.question" required=true for="question"} {fbvElement type="textarea" id="question" value=$question multilingual=true rich=true} {/fbvFormSection} {fbvFormSection title="manager.reviewFormElements.description" for="description"} {fbvElement type="textarea" id="description" value=$description multilingual=true rich=true} {/fbvFormSection} {fbvFormSection for="required" list=true} {if $required} {assign var="checked" value=true} {else} {assign var="checked" value=false} {/if} {fbvElement type="checkbox" id="required" label="manager.reviewFormElements.required" checked=$checked inline="true"} {/fbvFormSection} {fbvFormSection for="included" list=true} {if $included} {assign var="checked" value=true} {else} {assign var="checked" value=false} {/if} {fbvElement type="checkbox" id="included" label="manager.reviewFormElements.included" checked=$checked inline="true"} {/fbvFormSection} {fbvFormSection for="elementType" list=true} {fbvElement type="select" label="manager.reviewFormElements.elementType" id="elementType" defaultLabel="" from=$reviewFormElementTypeOptions selected=$elementType size=$fbvStyles.size.MEDIUM required=true} {/fbvFormSection}
{capture assign=elementOptionsUrl}{url router=$smarty.const.ROUTE_COMPONENT component="listbuilder.settings.reviewForms.ReviewFormElementResponseItemListbuilderHandler" op="fetch" reviewFormId=$reviewFormId reviewFormElementId=$reviewFormElementId escape=false}{/capture} {load_url_in_div id="elementOptionsListbuilderContainer" url=$elementOptionsUrl}

{translate key="common.requiredField"}

{fbvFormButtons id="reviewFormElementFormSubmit" submitText="common.save"} {/fbvFormArea}