Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92767135
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
Sat, Nov 23, 13:33
Size
4 KB
Mime Type
text/html
Expires
Mon, Nov 25, 13:33 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22475077
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">
<div class="title-wrapper">
<h2 class="modal-title">{{title}}</h2>
</div>
<div class="regulations">
{{#unless preview}}
<table>
<tr>
<td>Current case manager: </td> <td>{{userDescription}} </td>
<td>Patient: </td> <td>{{patientDescription}} </td>
</tr>
<tr>
{{#if language}}
<td>Language:</td><td>{{language}}</td>
{{else}}
<td></td><td></td>
{{/if}}
<td>Visit: </td> <td>{{visit.title}} </td>
</tr>
<tr>
<td></td><td></td>
<td>Study: </td> <td>{{studyTitle}}</td>
</tr>
</table>
{{else}}
{{#if hasLangs}}
<select id="source-lang" class="form-control">
{{#each langs}}
<option value={{code}}>{{name}} ({{nativeName}}) {{suffix}}</option>
{{/each}}
</select>
{{/if}}
{{/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 display=(displayQuestion ../visit._id .)}}
{{#if eq_or question.type "description" "table" "table_polar"}}
<form id={{question._id}} class="questionForm"
fields="answer" novalidate="novalidate" style={{display}}
data-conditional={{question.conditional}}>
<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}}
{{#if display}}
{{/if}}
{{#autoForm doc=doc schema=answerFormSchema id=question._id
type=formType class="questionAutoform" fields="value"
style=display data-conditional=question.conditional}}
{{> afQuickFields name=this.name}}
{{/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