mirror of
https://github.com/sismics/docs.git
synced 2025-12-20 13:11:41 +00:00
Init share app, client refactoring
This commit is contained in:
13
docs-web/src/main/webapp/partial/docs/document.share.html
Normal file
13
docs-web/src/main/webapp/partial/docs/document.share.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<div class="modal-header">
|
||||
<h3>Share document</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
<label for="share-result">Name the sharing if you want to share multiple times the same document.</label>
|
||||
<input type="text" id="share-result" ng-model="name" />
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button ng-click="close(name)" class="btn btn-primary"><span class="icon-share icon-white"></span> Share</button>
|
||||
<button ng-click="close(null)" class="btn">Cancel</button>
|
||||
</div>
|
||||
@@ -7,6 +7,10 @@
|
||||
|
||||
<div class="page-header">
|
||||
<h1>{{ document.title }} <small>{{ document.create_date | date: 'yyyy-MM-dd' }}</small></h1>
|
||||
<p>
|
||||
<button class="btn btn-small btn-inverse" ng-click="share()"><span class="icon-share icon-white"></span> Share</button>
|
||||
<button class="btn btn-small" ng-repeat="share in document.shares" ng-click="showShare(share)"><span class="icon-ok"></span> {{ share.name ? share.name : 'shared' }}</button>
|
||||
</p>
|
||||
<ul class="inline">
|
||||
<li ng-repeat="tag in document.tags"><span class="label label-info" ng-style="{ 'background': tag.color }">{{ tag.name }}</span></li>
|
||||
</ul>
|
||||
0
docs-web/src/main/webapp/partial/share/main.html
Normal file
0
docs-web/src/main/webapp/partial/share/main.html
Normal file
1
docs-web/src/main/webapp/partial/share/share.html
Normal file
1
docs-web/src/main/webapp/partial/share/share.html
Normal file
@@ -0,0 +1 @@
|
||||
Shared document
|
||||
Reference in New Issue
Block a user