1<form class="forms">
2<div class="dialog-lg dialog-resizable" style="height:80vh">
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    <div class="row margin-bottom-half">
9      <h4 class="ellipsis margin-right-half">{{doc_id}}</h4>
10      <span
11         ng-show="doc_meta"
12         class="blue-1 text-small nowrap cursor-pointer"
13         uib-tooltip-html="{{doc_meta}}"
14         tooltip-placement="auto right-top"
15         tooltip-append-to-body="true"
16         tooltip-trigger="'mousedown'"
17         tooltip-class="tooltip-maxheight">metadata</span>
18    </div>
19    <div
20       ui-ace="ace_options"
21       ng-model="doc_json"
22       style="height:98%;"
23       class="wb-ace-editor column flex-grow-2">
24    </div>
25  </div>
26  <div class="panel-footer">
27    <a ng-click="$dismiss('cancel')" ng-hide="readonly">
28      Cancel
29    </a>
30    <button
31       ng-hide="readonly"
32       type="submit"
33       ng-disabled="errors()"
34       ng-click="!errors() && $close('ok')">
35       Save
36     </button>
37    <button
38       ng-show="readonly"
39       type="submit"
40       ng-click="$close('ok')">
41      Done
42    </button>
43  </div>
44</div>
45</form>
46