Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98077264
questionnaire_wizzard.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jan 9, 13:28
Size
3 KB
Mime Type
text/html
Expires
Sat, Jan 11, 13:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23500255
Attached To
R7177 epiph
questionnaire_wizzard.html
View Options
<template name="questionnaireWizzard">
<div class="questionnaireWizzard">
{{#HammerTouchArea gestureMap=templateGestures}}
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title">{{title}}</h2>
<div class="regulations">
{{#unless preview}}
<table>
<tr>
<td>Case Manager: </td> <td>{{userDescription}} </td>
<td>Patient: </td> <td>{{patientDescription}} </td>
</tr><tr>
<td></td><td></td>
<td>Visit: </td> <td>{{visit.title}} </td>
</tr>
</table>
{{/unless}}
</div>
</div>
<div class="modal-body question">
{{#each questionsForPage}}
<!-- augment with question and answer -->
{{#with patient=../patient questionnaire=questionnaire visit=../visit question=. answer=(answerForQuestion ../visit._id _id) readonly=readonly preview=preview}}
{{#if eq_or question.type "description" "table" "table_polar"}}
<form id={{question._id}} class="questionForm" fields="answer" novalidate="novalidate">
<div class="form-group" data-required="true">
{{#if eq question.type "description"}}
{{#markdown}}{{question.label}}{{/markdown}}
{{/if}}
{{#if eq question.type "table"}}
{{> questionTable}}
{{/if}}
{{#if eq question.type "table_polar"}}
{{> questionTablePolar}}
{{/if}}
</div>
</form>
{{else}}
{{#if preview}}
<p class="code">{{questionnaire.id}}_{{question.code}}</p>
{{/if}}
{{#autoForm doc=doc schema=answerFormSchema id=question._id type=formType class="questionAutoform" fields="value"}}
{{#each afFieldNames}}
{{> afQuickField name=this.name options=afOptionsFromSchema}}
{{/each}}
{{/autoForm}}
{{/if}}
{{/with}}
<br>
{{else}}
Question not found, sorry!
{{/each}}
<div class="nav-buttons">
{{#unless isOnLastPageOfLastQuestionnaire}}
<button type="button" id="next" class="btn btn-primary">Save & Next <i class="fa fa-chevron-right"></i></button>
{{else}}
<button type="button" id="next" class="btn btn-primary">Save & Close</button>
{{/unless}}
{{#unless isOnFirstPage}}
<button type="button" id="back" class="btn btn-primary"><i class="fa fa-chevron-left"></i> Save & Back</button>
{{/unless}}
</div>
</div>
<div class="modal-footer">
<span class="pull-left questionOverview">
{{#each pages}}
<span class="fa-stack fa-lg cursorPointer jumpToPage {{css}}">
<i class="fa fa-circle fa-stack-2x activeCircle"></i>
<i class="fa fa-circle fa-stack-2x"></i>
<strong class="fa-stack-1x">{{index}}</strong>
</span>
{{/each}}
</span>
<button type="button" id="close" class="btn btn-warning">Close</button>
</div>
</div>
</div>
</div>
{{/HammerTouchArea}}
</div>
</template>
Event Timeline
Log In to Comment