Skip to content

Commit

Permalink
Update to templates/move template from EFP
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Oct 3, 2024
1 parent 1cead8e commit 98b188a
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 10 deletions.
176 changes: 176 additions & 0 deletions packages/record/templates/consent-copy.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
<h1>
{{t "consent-template-5.header"}}:
{{experiment.name}}
</h1>

<p>
{{t
"consent-template-5.intro-sentence"
name=PIName
institution=institution
experiment=experiment.name
}}
{{exp-format summary_statement}}
</p>

<h2>
{{#if purpose_header}} {{purpose_header}} {{else}}
{{t "consent-template-5.purpose-header"}}
{{/if}}
</h2>
<p>{{exp-format purpose}}</p>

<h2>
{{#if procedures_header}} {{procedures_header}} {{else}}
{{t "consent-template-5.procedures-header"}}
{{/if}}
</h2>
<p>
{{t "consent-template-5.duration-statement" duration=experiment.duration}}
{{exp-format procedures}}
</p>

<h2>
{{#if participation_header}} {{participation_header}} {{else}}
{{t "consent-template-5.participation-header"}}
{{/if}}
</h2>
<p>
{{t "consent-template-5.participation-content" only_adult=prompt_only_adults}}
</p>

{{#if voluntary_participation}}
<p>{{exp-format voluntary_participation}}</p>
{{/if}}
{{#if risk_statement}}

<h2>
{{#if risk_header}} {{risk_header}} {{else}}
{{t "consent-template-5.risk-header"}}
{{/if}}
</h2>

<p>{{exp-format risk_statement}}</p>
{{/if}}

<h2>
{{#if benefits_header}} {{benefits_header}} {{else}}
{{t "consent-template-5.benefits-header"}}
{{/if}}
</h2>

<p>{{exp-format payment}}</p>

<h2>{{t "consent-template-5.data-collection-header"}}</h2>

<p>
{{t "consent-template-5.data-collection-1" only_adult=prompt_only_adults}}
{{t "consent-template-5.data-collection-2"}}
</p>

<p>{{t "consent-template-5.data-collection-3"}}</p>

<h2>{{t "consent-template-5.video-privacy-header"}}</h2>
<p>{{t "consent-template-5.video-privacy-consent"}}</p>

{{#if private_level_only}}
<p>
{{t "consent-template-5.video-privacy-private-description"}}
{{t "consent-template-5.video-privacy-withdraw-private-only"}}
</p>
{{else}}
<p>{{t "consent-template-5.video-privacy-overview"}}:</p>
<ul>
<li>
"{{t "consent-template-5.video-privacy-Private"}}":
{{t "consent-template-5.video-privacy-private-description"}}
</li>
<li>
"{{t "consent-template-5.video-privacy-Scientific"}}":
{{t "consent-template-5.video-privacy-scientific-description"}}
</li>
<li>
"{{t "consent-template-5.video-privacy-Publicity"}}":
{{t "consent-template-5.video-privacy-publicity-description"}}
</li>
</ul>
<p>{{t "consent-template-5.video-privacy-withdraw"}}</p>
{{/if}}
{{#if include_databrary}}
<p>{{t "consent-template-5.databrary" htmlSafe=true}}</p>
{{/if}}
{{#if additional_video_privacy_statement}}
<p>{{exp-format additional_video_privacy_statement}}</p>
{{/if}}

<h2>{{t "consent-template-5.data-use-researchers-header"}}</h2>
<p>
{{t
"consent-template-5.data-use-researchers-content-1"
name=PIName
institution=institution
}}
</p>
<ul>
<li>{{t "consent-template-5.data-use-researchers-item-1"}}</li>
<li>{{t "consent-template-5.data-use-researchers-item-2"}}</li>
<li>
{{t
"consent-template-5.data-use-researchers-item-3"
only_adult=prompt_only_adults
}}
</li>
</ul>
<p>
{{t
"consent-template-5.data-use-researchers-content-2"
only_adult=prompt_only_adults
}}
</p>
{{#if datause}}
<p>{{exp-format datause}}</p>
{{/if}}

<h2>{{t "consent-template-5.data-use-Lookit-header"}}</h2>
<p>{{t "consent-template-5.data-use-Lookit-content"}}</p>

<h2>{{t "consent-template-5.publication-header"}}</h2>
<p>
{{t "consent-template-5.publication-content" only_adult=prompt_only_adults}}
</p>

{{#if additional_segments}}
{{#each additional_segments as |segment|}}
<h2>{{exp-format segment.title}}</h2>
<p>{{exp-format segment.text}}</p>
{{/each}}
{{/if}}

<h2>{{t "consent-template-5.research-subject-rights-header"}}</h2>
<p>{{exp-format research_rights_statement}}</p>

{{#if gdpr}}
<h2>{{t "consent-template-5.gdpr-header"}}</h2>
<p>
{{t "consent-template-5.gdpr-personal"}}:
{{exp-format gdpr_personal_data}}.
{{t "consent-template-5.gdpr-sensitive"}}:
{{exp-format gdpr_sensitive_data}}
</p>
<p>{{t "consent-template-5.gdpr-2"}}</p>
{{/if}}

<h2>{{t "consent-template-5.contact-header"}}</h2>
<p>
{{t
"consent-template-5.contact-statement-1"
name=PIName
institution=institution
contact=PIContact
only_adult=prompt_only_adults
omit_injury=omit_injury_phrase
}}
</p>
<p>
{{t "consent-template-5.contact-statement-2" only_adult=prompt_only_adults}}
</p>
21 changes: 21 additions & 0 deletions packages/record/templates/consent-video-trial.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div id="consent-video-trial" style="display: flex">
<div class="left-column">{{{consent}}}</div>
<div class="right-column">
<div id="{{video_container_id}}" class="jspsych-content"></div>
<p class="buttons">
<button id="record" class="jspsych-btn">Record</button>
<button id="stop" class="jspsych-btn" disabled>Stop</button>
<button id="play" class="jspsych-btn" disabled>Play</button>
<button id="next" class="jspsych-btn" disabled>Next</button>
</p>
<p>1. Read through this consent document.</p>
<p>2. Click "Record".</p>
<p>3. Read the statement below <u>OUT LOUD</u>:</p>
<div class="consent-statement">
"I have read and understand the consent document. I am this child's parent
or legal guardian and we both agree to participate in this study."
</div>
<p>4. Click "Stop" and then "Play" to review the recording.</p>
<p>5. Click "Next".</p>
</div>
</div>
8 changes: 0 additions & 8 deletions packages/record/templates/consent-video-trial.mustache

This file was deleted.

2 changes: 1 addition & 1 deletion packages/record/templates/playback-feed.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
controls
style="display: inline-block"
></video>
<img id="play-icon" src="{{{play_icon}}}"/>
<img id="play-icon" src="{{{play_icon}}}" />
2 changes: 1 addition & 1 deletion packages/record/templates/webcam-feed.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
height="{{height}}"
style="display: inline-block"
></video>
<img id="record-icon" src="{{{record_icon}}}">
<img id="record-icon" src="{{&record_icon}}" />

0 comments on commit 98b188a

Please sign in to comment.