removes yes/no radio toggle for compliance questions

This commit is contained in:
Seyi Adebajo 2017-04-03 10:49:20 -07:00 committed by Mars Lan
parent ff9c1eb4e3
commit cbfcf5d487
2 changed files with 55 additions and 85 deletions

View File

@ -22,6 +22,8 @@
display: inline-block;
font-size: 16px;
border:1px solid set-color(grey, light);
border-radius: 2px;
padding: 5px;
background-color: tint(set-color(green, green5), 65%);
}
}

View File

@ -33,26 +33,16 @@
<section class="metadata-prompt" id="has-member">
<header class="metadata-prompt__header">
<p class="metadata-prompt__page-number">Question 1 of 3</p>
<p>Can any fields in this dataset's schema be used to identify a
member?</p>
<p>
<span class="metadata-prompt__page-number">
<strong>1</strong>
of
<strong>3</strong>
</span>
Can any fields in this dataset's schema be used to identify a
member?
</p>
</header>
<span>
{{#radio-button-composer
value=true
name="has-member"
groupValue=(readonly userIndicatesDatasetHas.member)
changed=(action 'didChangePrivacyIdentifiable')}}
Yes
{{/radio-button-composer}}
{{#radio-button-composer
value=false
name="has-member"
groupValue=(readonly userIndicatesDatasetHas.member)
changed=(action 'didChangePrivacyIdentifiable')}}
No
{{/radio-button-composer}}
</span>
</section>
{{dataset-schema-table
@ -66,72 +56,50 @@
onSubjectChange=(action "onMemberFieldSubjectChange")
onPrivacyChange=(action "onFieldPrivacyChange")}}
{{#if showOrgPrompt}}
<section class="metadata-prompt" id="has-org">
<header class="metadata-prompt__header">
<p class="metadata-prompt__page-number">Question 2 of 3</p>
<p>Do fields in the schema contain the ID of an organization?</p>
</header>
<span>
{{#radio-button-composer
value=true
name="has-org"
groupValue=(readonly userIndicatesDatasetHas.org)
changed=(action 'didChangePrivacyIdentifiable')}}
Yes
{{/radio-button-composer}}
{{#radio-button-composer
value=false
name="has-org"
groupValue=(readonly userIndicatesDatasetHas.org)
changed=(action 'didChangePrivacyIdentifiable')}}
No
{{/radio-button-composer}}
</span>
</section>
{{dataset-table-org-compliance
sortColumnWithName=sortColumnWithName
filterBy=filterBy
sortDirection=sortDirection
searchTerm=searchTerm
fields=orgComplianceEntities
fieldFormats=logicalTypes
onFormatChange=(action "onFieldFormatChange")
onPrivacyChange=(action "onFieldPrivacyChange")}}
{{/if}}
<section class="metadata-prompt" id="has-org">
<header class="metadata-prompt__header">
<p>
<span class="metadata-prompt__page-number">
<strong>2</strong>
of
<strong>3</strong>
</span>
Do fields in the schema contain the ID of an organization?
</p>
</header>
</section>
{{#if showGroupPrompt}}
<section class="metadata-prompt" id="has-group">
<header class="metadata-prompt__header">
<p class="metadata-prompt__page-number">Question 3 of 3</p>
<p>Do fields in the schema contain the ID of a group?</p>
</header>
<span>
{{#radio-button-composer
value=true
name="has-group"
groupValue=(readonly userIndicatesDatasetHas.group)
changed=(action 'didChangePrivacyIdentifiable')}}
Yes
{{/radio-button-composer}}
{{#radio-button-composer
value=false
name="has-group"
groupValue=(readonly userIndicatesDatasetHas.group)
changed=(action 'didChangePrivacyIdentifiable')}}
No
{{/radio-button-composer}}
</span>
</section>
{{dataset-table-group-compliance
sortColumnWithName=sortColumnWithName
filterBy=filterBy
sortDirection=sortDirection
searchTerm=searchTerm
fields=groupComplianceEntities
fieldFormats=logicalTypes
onFormatChange=(action "onFieldFormatChange")
onPrivacyChange=(action "onFieldPrivacyChange")}}
{{/if}}
{{dataset-table-org-compliance
sortColumnWithName=sortColumnWithName
filterBy=filterBy
sortDirection=sortDirection
searchTerm=searchTerm
fields=orgComplianceEntities
fieldFormats=logicalTypes
onFormatChange=(action "onFieldFormatChange")
onPrivacyChange=(action "onFieldPrivacyChange")}}
<section class="metadata-prompt" id="has-group">
<header class="metadata-prompt__header">
<p>
<span class="metadata-prompt__page-number">
<strong>3</strong>
of
<strong>3</strong>
</span>
Do fields in the schema contain the ID of a group?
</p>
</header>
</section>
{{dataset-table-group-compliance
sortColumnWithName=sortColumnWithName
filterBy=filterBy
sortDirection=sortDirection
searchTerm=searchTerm
fields=groupComplianceEntities
fieldFormats=logicalTypes
onFormatChange=(action "onFieldFormatChange")
onPrivacyChange=(action "onFieldPrivacyChange")}}
</div>
{{yield}}