docItem.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template name="docItem">
  2. <div class="container top-margin">
  3. <div class="row">
  4. <div class="col-md-12">
  5. {{> docMeta }}
  6. </div>
  7. </div>
  8. <div class="row">
  9. <div class="col-md-12">
  10. {{> editingUsers }}
  11. </div>
  12. </div>
  13. <div class="row">
  14. <div class="col-md-6">
  15. {{> editor}}
  16. </div>
  17. <div class="col-md-6">
  18. {{> viewer }}
  19. </div>
  20. </div>
  21. </div>
  22. </template>
  23. <template name="editor">
  24. <h2>doc id: {{ docid }}</h2>
  25. {{> sharejsCM docid=docid onRender=config id="editor" mode="javascript" }}
  26. </template>
  27. <template name="viewer">
  28. <iframe id="viewer_iframe">
  29. </iframe>
  30. </template>
  31. <template name="docMeta">
  32. {{#with document }}
  33. <span class="h1">{{> editableText collection="documents" field="title" }}</span>
  34. {{#if canEdit }}
  35. <div class="checkbox">
  36. <label>
  37. <input type="checkbox" class="js-tog-private" checked="{{ isPrivate }}"/>Private
  38. </label>
  39. </div>
  40. {{/if}}
  41. {{/with}}
  42. </template>
  43. <template name="editingUsers">
  44. Editors:
  45. {{#each users }}
  46. <span class="label label-success">{{firstname}}</span>
  47. {{/each}}
  48. </template>