1<form class="forms">
2<div class="dialog-lg dialog-resizable" id="doc_editor_dialog" style="min-height:600px">
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 id="result_box" style="overflow: auto;height:95%">
10        <div id="result_editor" ui-ace="ace_options" ng-model="doc_json" style="min-height:400px;height:100%"></div>
11      </div>
12    </div>
13  <div class="panel-footer scroll-shadow">
14    <a ng-click="$dismiss('cancel')" ng-hide="readonly">
15      Cancel
16    </a>
17    <button ng-hide="readonly" type="submit" ng-disabled="errors()"
18       ng-click="!errors() && $close('ok')">Save</button>
19    <button ng-show="readonly" type="submit"
20       ng-click="$close('ok')">Done</button>
21  </div>
22</div>
23  </form>
24