{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {if $votingTab and $errorMessages}
{icon icon="fa-info-circle"}{/icon}
{elseif $voterDetails}
{if $surveyValues.instructions}
{ts 1=$surveyValues.instructions}%1{/ts}
{/if}
{if $votingTab} {ts}Click record response button to update values for each respondent as needed.{/ts} {else} {ts}Click record response button to update values for each respondent as needed.
Click Release Respondents >> button below to release any respondents for whom you haven't recorded a response.
Click Reserve More Respondents >> button if you need to get more respondents to interview.{/ts} {/if}
{if $instanceId} {capture assign=instanceURL}{crmURL p="civicrm/report/instance/$instanceId" q="reset=1"}{/capture} {/if}
{section name=rowLoop start=1 loop=5} {assign var=index value=$smarty.section.rowLoop.index} {/section}
{ts}Column{/ts} {ts}Order{/ts}
{if $index GT 1} {icon icon="fa-trash"}{ts}hide field or section{/ts}{/icon} {/if} {$form.order_bys.$index.column.html} {$form.order_bys.$index.order.html} {if $index eq 1} {$form.buttons._qf_Interview_submit_orderBy.html} {/if}
{foreach from=$readOnlyFields item=fTitle key=fName} {/foreach} {* display headers for profile survey fields *} {if $surveyFields} {foreach from=$surveyFields item=field key=fieldName} {if $field.skipDisplay} {continue} {/if} {/foreach} {/if} {foreach from=$componentIds item=voterId} {foreach from=$readOnlyFields item=fTitle key=fName} {/foreach} {* here build the survey profile fields *} {if $surveyFields} {foreach from=$surveyFields item=field key=fieldName} {if $field.skipDisplay} {continue} {/if} {/foreach} {/if} {/foreach}
{$fTitle}{copyIcon name=$field.name title=$field.title}{$field.title}{capture assign="tsNote"}{ts}Note{/ts}{/capture}{copyIcon name=note title=$tsNote}{$tsNote} {capture assign="tsResult"}{ts}Result{/ts}{/capture}{copyIcon name=result title=$tsResult}{$tsResult} {ts}Record Responses for All{/ts}
{$voterDetails.$voterId.$fName} {if $fieldName|substr:0:5 eq 'phone'} {assign var="phone_ext_field" value=$fieldName|replace:'phone':'phone_ext'} {$form.field.$voterId.$fieldName.html} {if $form.field.$voterId.$phone_ext_field.html}  {$form.field.$voterId.$phone_ext_field.html} {/if} {else} {$form.field.$voterId.$fieldName.html} {/if} {$form.field.$voterId.note.html} {$form.field.$voterId.result.html} {ts}record response{/ts} {if $allowAjaxReleaseButton} {ts}release{/ts} {/if}
{if !$votingTab}
{$form.buttons._qf_Interview_cancel_interview.html} {$form.buttons._qf_Interview_next_interviewToRelease.html} {$form.buttons._qf_Interview_done_interviewToReserve.html}
{/if}
{literal} {/literal} {*include batch copy js js file*} {include file="CRM/common/batchCopy.tpl"} {/if}