[About] Refactor overlay templates
Refactor overlay templates to separate out the overlay container from the inner dialog containing the form; this permits the easy reuse of that overlay container to supply a non-form-like About dialog, WTD-667.
This commit is contained in:
25
platform/commonUI/dialog/res/templates/dialog.html
Normal file
25
platform/commonUI/dialog/res/templates/dialog.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<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-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>
|
||||
Reference in New Issue
Block a user