-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Poc Wizard complete * Form is now passed to the step to ease field validation messages * Patient Registration now uses poc-wizard * Form is now an optional attribute for the poc-wizard-step * Isolating pocConfirmDialog scope
- Loading branch information
1 parent
60e0813
commit 0878d76
Showing
46 changed files
with
875 additions
and
1,307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 15 additions & 33 deletions
48
app/common/patient/components/wizard/steps/patientAddressStep.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,23 @@ | ||
<form name="vm.form" class="form-horizontal"> | ||
<div class="panel-body"> | ||
|
||
<div class="panel panel-primary content-border-margin"> | ||
<div class="form-group form-group-lg" ng-repeat="addressLevel in vm.addressLevels"> | ||
|
||
<div class="panel-heading"> | ||
<h3 class="panel-title">{{'PATIENT_INFO_ADDRESS' | translate}}</h3> | ||
</div> | ||
|
||
<div class="panel-body"> | ||
|
||
<div class="form-group form-group-lg" ng-repeat="addressLevel in vm.addressLevels"> | ||
<label for="{{addressLevel.addressField}}" class="col-sm-2 control-label">{{addressLevel.name | translate}} | ||
<span class="asterick" ng-show="addressLevel.required">*</span> | ||
</label> | ||
|
||
<label for="{{addressLevel.addressField}}" class="col-sm-2 control-label">{{addressLevel.name | translate}} | ||
<span class="asterick" ng-show="addressLevel.required">*</span></label> | ||
<div class="col-sm-10" ng-class="{'has-error': vm.form[addressLevel.addressField].$invalid && vm.showMessages}"> | ||
|
||
<div class="col-sm-10" | ||
ng-class="{'has-error': vm.form[addressLevel.addressField].$invalid && vm.shouldShowMessages()}"> | ||
|
||
<div ng-messages for="vm.form[addressLevel.addressField].$error" ng-show="vm.shouldShowMessages()"> | ||
<div ng-messages-include="../common/application/views/error-messages.html"></div> | ||
</div> | ||
|
||
<input type="text" name="{{addressLevel.addressField}}" id="{{addressLevel.addressField}}" | ||
class="form-control keyboard-in" | ||
ng-required="{{addressLevel.required}}" | ||
ng-model="vm.patient.address[addressLevel.addressField]" | ||
uib-typeahead="entry.name for entry in vm.getAddressEntryList(addressLevel.addressField, $viewValue)" | ||
typeahead-on-select="vm.addressFieldSelected(addressLevel.addressField, $item)" | ||
ng-change="vm.clearFields(addressLevel.addressField)" | ||
ng-pattern="/^([a-zA-Z0-9\s]|[\)\(\'\/\-\.])*$/" | ||
autocomplete="off" | ||
ng-maxlength="{{addressLevel.addressField === 'country' ? 50 : 255}}" | ||
maxlength="{{addressLevel.addressField === 'country' ? 50 : 255}}"> | ||
</div> | ||
</div> | ||
<div ng-messages for="vm.form[addressLevel.addressField].$error" ng-show="vm.showMessages"> | ||
<div ng-messages-include="../common/application/views/error-messages.html"></div> | ||
</div> | ||
|
||
<input type="text" name="{{addressLevel.addressField}}" id="{{addressLevel.addressField}}" class="form-control keyboard-in" | ||
ng-required="{{addressLevel.required}}" ng-model="vm.patient.address[addressLevel.addressField]" uib-typeahead="entry.name for entry in vm.getAddressEntryList(addressLevel.addressField, $viewValue)" | ||
typeahead-on-select="vm.addressFieldSelected(addressLevel.addressField, $item)" ng-change="vm.clearFields(addressLevel.addressField)" | ||
ng-pattern="/^([a-zA-Z0-9\s]|[\)\(\'\/\-\.])*$/" autocomplete="off" ng-maxlength="{{addressLevel.addressField === 'country' ? 50 : 255}}" | ||
maxlength="{{addressLevel.addressField === 'country' ? 50 : 255}}"> | ||
</div> | ||
|
||
</div> | ||
|
||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.