Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAI-1014 Example of toggles and concepts and repeat htmlforms #548

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 65 additions & 20 deletions configuration/pih/htmlforms/mentalHealth.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,20 @@
display: block;
}

<!-- .two-columns {-->
<!-- column-count: 2;-->
<!-- -webkit-column-count: 2;-->
<!-- -moz-column-count: 2;-->
<!-- }-->

.three-columns {
column-count: 3;
-webkit-column-count: 3;
-moz-column-count: 3;
.five-columns, .four-columns, .three-columns, .two-columns {
display: table;
height: 100%;
width: 100%;
}

.two-columns > div {
display: table-cell;
width: 50%;
}

.three-columns > div {
display: table-cell;
width: 33%;
}

.simple-form-ui input {
Expand Down Expand Up @@ -1025,19 +1029,60 @@
<section id="mh-diagnoses" sectionTag="fieldset" headerTag="legend" headerStyle="title"
headerCode="pihcore.diagnoses.label">
<div class="section-container">
<div class="two-columns">
<div>
<repeat>
<template>
<obs conceptId="PIH:Mental health diagnosis" style="checkbox"
answerConceptId="{cId}"
toggle="{toggleName}"/>

</template>

<render cId="CIEL:115810" toggleName="handicapsIntellectuelsLeger"/>
<render cId="CIEL:134015" toggleName="handicapsIntellectuelsModere"/>

<render cId="CIEL:121303" toggleName="autism"/>
</repeat>
</div>

<div>
<div id="autism">
<repeat>
<template>
<obs conceptId="PIH:Mental health diagnosis" style="checkbox"
answerConceptId="{cId}"/>

</template>

<render cId="PIH:20596" toggleName="autism1"/>
<render cId="PIH:20597" toggleName="autism2"/>
<render cId="PIH:20598" toggleName="autism3"/>
</repeat>
</div>
</div>
</div>

<br/>
<p>
<obs conceptId="PIH:Mental health diagnosis" answerConceptSetIds="PIH:HUM Psychological diagnosis"
style="autocomplete"/>
</p>
<p>
<obs conceptId="PIH:Mental health diagnosis" answerConceptSetIds="PIH:HUM Psychological diagnosis"
style="autocomplete"/>
</p>
<p>
<obs conceptId="PIH:Mental health diagnosis" answerConceptSetIds="PIH:HUM Psychological diagnosis"
style="autocomplete"/>
<strong>Diagnoses</strong>
</p>

<div class="three-columns">
<div>
<obs conceptId="PIH:Mental health diagnosis" answerConceptSetIds="PIH:HUM Psychological diagnosis"
style="autocomplete"/>
</div>
<div>
<obs conceptId="PIH:Mental health diagnosis" answerConceptSetIds="PIH:HUM Psychological diagnosis"
style="autocomplete"/>
</div>
<div>
<obs conceptId="PIH:Mental health diagnosis" answerConceptSetIds="PIH:HUM Psychological diagnosis"
style="autocomplete"/>
</div>
</div>

</div>
</section>

Expand Down