1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <template name="docItem">
- <div class="container top-margin">
- <div class="row">
- <div class="col-md-12">
- {{> docMeta }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- {{> editingUsers }}
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- {{> editor}}
- </div>
- <div class="col-md-6">
- {{> viewer }}
- </div>
- </div>
- </div>
- </template>
- <template name="editor">
- <h2>doc id: {{ docid }}</h2>
- {{> sharejsCM docid=docid onRender=config id="editor" mode="javascript" }}
- </template>
- <template name="viewer">
- <iframe id="viewer_iframe">
- </iframe>
- </template>
- <template name="docMeta">
- {{#with document }}
- <span class="h1">{{> editableText collection="documents" field="title" }}</span>
- {{#if canEdit }}
- <div class="checkbox">
- <label>
- <input type="checkbox" class="js-tog-private" checked="{{ isPrivate }}"/>Private
- </label>
- </div>
- {{/if}}
- {{/with}}
- </template>
- <template name="editingUsers">
- Editors:
- {{#each users }}
- <span class="label label-success">{{firstname}}</span>
- {{/each}}
- </template>
|