1<form class="forms">
2<div class="dialog-lg dialog-resizable">
3  <div class="panel-header">
4    <h2 class="ellipsis">{{header}}</h2>
5  </div>
6  <div class="alert alert-warning" ng-if="error_message">{{error_message}}</div>
7  <div class="panel-content" style="height:calc(100% - 100px)">
8    <h4 class="margin-bottom-1">{{doc_id}}</h4>
9      <div style="overflow: auto;height:95%;">
10        <div
11           ui-ace="ace_options"
12           ng-model="doc_json"
13           style="min-height:380px;height:100%"
14           class="wb-ace-editor"></div>
15      </div>
16  </div>
17  <div class="panel-footer">
18    <a ng-click="$dismiss('cancel')" ng-hide="readonly">
19      Cancel
20    </a>
21    <button
22       ng-hide="readonly"
23       type="submit"
24       ng-disabled="errors()"
25       ng-click="!errors() && $close('ok')">
26       Save
27     </button>
28    <button
29       ng-show="readonly"
30       type="submit"
31       ng-click="$close('ok')">
32      Done
33    </button>
34  </div>
35</div>
36</form>
37