tellform/public/modules/forms/base/views/directiveViews/field/legal.html

54 lines
2.1 KiB
HTML
Raw Normal View History

<div class="field row radio legal"
on-enter-key="nextField()"
key-to-truthy key-char-truthy="y" key-char-falsey="n" field="field">
2016-05-05 13:00:58 +00:00
<div class="col-xs-12 field-title" ng-style="{'color': design.colors.questionColor}">
2016-05-13 18:31:12 +00:00
<h3>
<small class="field-number">
{{index+1}}
<i class="fa fa-angle-double-right" aria-hidden="true"></i>
</small>
{{field.title}}
2016-05-05 13:00:58 +00:00
<span class="required-error" ng-show="!field.required">{{ 'OPTIONAL' | translate }}</span>
2016-05-13 18:31:12 +00:00
</h3>
2015-07-27 18:11:43 +00:00
<br>
<p style="color:#ddd;">{{field.description}}</p>
2015-07-27 18:11:43 +00:00
</div>
2015-11-06 01:22:16 +00:00
<div class="col-xs-12 field-input container">
2015-07-27 18:11:43 +00:00
<div class="row-fluid">
<label class="btn col-md-5 col-xs-12"
ng-class="{activeBtn: field.fieldValue == 'true'}">
2016-05-13 23:52:28 +00:00
<input class="focusOn"
2016-05-17 00:30:20 +00:00
ng-focus="setActiveField(field._id, index, true)"
2016-05-05 13:00:58 +00:00
ng-style="{'color': design.colors.answerColor, 'border-color': design.colors.answerColor}"
2016-05-13 23:52:28 +00:00
type="radio" value="true"
2016-05-05 13:00:58 +00:00
ng-model="field.fieldValue"
2016-04-22 00:30:35 +00:00
ng-model-options="{ debounce: 250 }"
2016-05-05 13:00:58 +00:00
ng-required="field.required"
2016-05-13 23:52:28 +00:00
ng-disabled="field.disabled"
ng-change="$root.nextField()"/>
<div class="letter" style="float:left">
Y
</div>
2016-05-05 13:00:58 +00:00
<span> {{ 'LEGAL_ACCEPT' | translate }} </span>
2015-07-27 18:11:43 +00:00
</label>
<label class="btn col-md-5 col-md-offset-1 col-xs-12"
ng-class="{activeBtn: field.fieldValue == 'false'}">
2016-05-13 23:52:28 +00:00
<input class="focusOn"
ng-style="{'color': design.colors.answerColor, 'border-color': design.colors.answerColor}"
type="radio" value="false"
2016-05-05 13:00:58 +00:00
ng-model="field.fieldValue"
2016-04-22 00:30:35 +00:00
ng-model-options="{ debounce: 250 }"
2016-05-13 23:52:28 +00:00
ng-required="field.required"
ng-disabled="field.disabled"
ng-change="$root.nextField()"/>
<div class="letter" style="float:left">
N
</div>
2016-05-05 13:00:58 +00:00
<span>{{ 'LEGAL_NO_ACCEPT' | translate }} </span>
2015-07-27 18:11:43 +00:00
</label>
</div>
2016-05-05 13:00:58 +00:00
2015-07-27 18:11:43 +00:00
</div>
</div>
<br>