电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
3.0 KiB

  1. <div class="subheader" ng-if="model.form">
  2. <div class="fixed-container">
  3. <div class="btn-group pull-right">
  4. <button type="button" class="btn btn-default" ng-click="openEditor()" ng-if="model.form.latestVersion">
  5. <i class="glyphicon glyphicon-edit icon-and-label"></i> {{'FORM.ACTION.OPEN-IN-EDITOR' | translate}}
  6. </button>
  7. <button type="button" class="btn btn-default" ng-click="useAsNewVersion()" ng-if="!model.form.latestVersion">
  8. {{'FORM.ACTION.USE-AS-NEW-VERSION' | translate}}
  9. </button>
  10. </div>
  11. <div class="btn-group pull-right">
  12. <button type="button" class="btn btn-default" ng-click="editForm()" ng-disabled="!model.form.latestVersion"
  13. title="{{'FORM.ACTION.EDIT' | translate}}">
  14. <i class="glyphicon glyphicon-pencil"></i>
  15. </button>
  16. <button type="button" class="btn btn-default" ng-click="duplicateForm()" ng-disabled="!model.form.latestVersion"
  17. title="{{'FORM.ACTION.DUPLICATE' | translate}}">
  18. <i class="editor-icon editor-icon-copy"></i>
  19. </button>
  20. <button type="button" class="btn btn-default" ng-click="deleteForm()" title="{{'FORM.ACTION.DELETE' | translate}}"
  21. ng-disabled="!model.form.latestVersion">
  22. <i class="glyphicon glyphicon-trash"></i>
  23. </button>
  24. </div>
  25. <div class="pull-right">
  26. <a ng-click="returnToList()" class="action">&larr; {{'GENERAL.ACTION.RETURN-TO-LIST' | translate}}</a>
  27. </div>
  28. <h2><span class="version">v{{model.form.version}}</span>{{model.form.name}}</h2>
  29. <div class="clearfix">
  30. <div class="col-xs-4 details">
  31. <span><i class="glyphicon glyphicon-user"></i>{{'FORM.DETAILS.CREATED-BY' | translate:model.form}}</span>
  32. <span><i class="glyphicon glyphicon-pencil"></i>{{'FORM.DETAILS.LAST-UPDATED-BY' | translate:model.form}}</span>
  33. </div>
  34. <div class="col-xs-8 details clearfix">
  35. <div class="related btn-group">
  36. <button id="toggle-history" type="button" class="btn btn-subtle" ng-click="toggleHistory($event)"
  37. title="{{'FORM.ACTION.EDIT' | translate}}">
  38. {{'FORM.DETAILS.HISTORY-TITLE' | translate}} <span class="counter" ng-show="model.versions.data.length">{{model.versions.data.length}}</span>
  39. </button>
  40. </div>
  41. <p ng-if="model.form.description">
  42. {{model.form.description}}
  43. </p>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="container-fluid content" ng-if="model.form" auto-height offset="40">
  49. <div class="center-pane" style="overflow-x:hidden">
  50. <div class="content roweditor-canvas container-fluid" ng-controller="FormReadonlyViewController">
  51. <div id="canvasSection" class="content-canvas-wrapper" ng-class="{'editing': editState.editing}">
  52. <ul style="min-height:400px; width: 100%" class="form-canvas content-canvas">
  53. <li ng-repeat="field in formItems track by field._guid" class="form-field-wrapper">
  54. <div form-builder-element form-element="field" edit-state="editState" form-mode="formMode"></div>
  55. </li>
  56. </ul>
  57. </div>
  58. </div>
  59. </div>
  60. </div>