mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
3d95c8b744
Enable/disable the confirmation button in overlay dialogs such that it is only enabled when the included form is valid. WTD-593.
34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
<div class="abs overlay">
|
|
<div class="abs blocker"></div>
|
|
<div class="abs holder">
|
|
<a href=""
|
|
ng-click="ngModel.cancel()"
|
|
class="btn normal outline ui-symbol close">x</a>
|
|
<div class="abs contents">
|
|
<div class="abs top-bar">
|
|
<div class="title">{{ngModel.title}}</div>
|
|
<div class="hint">All fields marked <span class="ui-symbol req">*</span> are required.</div>
|
|
</div>
|
|
<div class="abs form outline editor">
|
|
<div class='abs contents'>
|
|
<!-- mct-include key="'form'" ng-model="" -->
|
|
<mct-form ng-model="ngModel.value"
|
|
structure="ngModel.structure"
|
|
name="createForm">
|
|
</mct-form>
|
|
</div>
|
|
</div>
|
|
<div class="abs bottom-bar">
|
|
<a class='btn lg major'
|
|
href=''
|
|
ng-class="{ disabled: !createForm.$valid }"
|
|
ng-click="ngModel.confirm()">
|
|
OK
|
|
</a>
|
|
<a class='btn lg subtle' href='' ng-click="ngModel.cancel()">
|
|
Cancel
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |