NINS_CODE/bahmniapps/registration/views/dob.html

30 lines
1.8 KiB
HTML
Raw Normal View History

2024-12-12 22:37:39 +06:00
<article class="form-field dob-birthtime-wrapper" id="dob">
<div class="field-attribute">
<label for="birthdate">{{ ::'REGISTRATION_LABEL_DOB' | translate}}<span class="asterick" ng-show="::dobMandatory">*</span></label>
</div>
<div class="field-value">
<input id="birthdate" type="date" ng-model="patient.birthdate" ng-disabled="isDisabledAttribute('birthDate')" max="{{::today}}" ng-change="patient.calculateAge()" ng-blur="handleUpdate('birthdate')" ng-required="::dobMandatory">
</div>
<div class="showOn-desktop-registration">
<div class="field-value">
<input type="checkbox" ng-model="patient.birthdateEstimated" id="birthdateEstimated" ng-blur="handleUpdate('birthdateEstimated')" class="estimate-check" ng-checked="isDisabledAttribute('birthDate')">
</div>
<div class="field-attribute estimated-label">
<label for="birthdate">{{ ::'REGISTRATION_LABEL_ESTIMATE' | translate}}</label>
</div>
</div>
<div class="showOn-small-screen-registration clearfix">
<div class="field-attribute estimated-label">
<label for="birthdate">{{ ::'REGISTRATION_LABEL_ESTIMATE' | translate}}</label>
</div>
<div class="field-value">
<input type="checkbox" id="birthdateEstimated" ng-checked="isDisabledAttribute('birthDate')" ng-model="patient.birthdateEstimated" class="estimate-check">
</div>
</div>
<div ng-show="::showBirthTime" class="field-attribute">
<label for="birthtime">{{ ::'REGISTRATION_LABEL_BIRTH_TIME' | translate}}</label>
</div>
<div ng-show="::showBirthTime" class="field-value">
<input id="birthtime" type="time" ng-model="patient.birthtime" ng-blur="handleUpdate('birthtime')">
</div>
</article>