3.0 source code
This commit is contained in:
14
OfficeWeb/apps/common/main/lib/template/Chat.template
Normal file
14
OfficeWeb/apps/common/main/lib/template/Chat.template
Normal file
@@ -0,0 +1,14 @@
|
||||
<div id="chat-box">
|
||||
<div id="chat-users">
|
||||
<div id="chat-user-ct"></div>
|
||||
</div>
|
||||
<div id="chat-messages">
|
||||
<div id="chat-message-ct"></div>
|
||||
</div>
|
||||
<div id="chat-options">
|
||||
<div id="chat-options-ct">
|
||||
<textarea id="chat-msg-text"></textarea>
|
||||
<button id="chat-msg-btn-add" class="btn normal dlg-btn primary"><%=scope.textSend%></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
89
OfficeWeb/apps/common/main/lib/template/Comments.template
Normal file
89
OfficeWeb/apps/common/main/lib/template/Comments.template
Normal file
@@ -0,0 +1,89 @@
|
||||
<% if (!hide) { %>
|
||||
<div id="<%= id %>" class="user-comment-item">
|
||||
|
||||
<!-- comment block -->
|
||||
|
||||
<div class="user-name"><%=scope.getUserName(username)%></div>
|
||||
<div class="user-date"><%=date%></div>
|
||||
<div class="user-quote"><%=scope.getFixedQuote(quote)%></div>
|
||||
<% if (!editText) { %>
|
||||
<div class="user-message text-select" data-can-copy="true"><%=scope.pickLink(comment)%></div>
|
||||
<% } else { %>
|
||||
<div class="inner-edit-ct">
|
||||
<textarea class="msg-reply"><%=comment%></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-inner-edit" id="id-comments-change">textEdit</button>
|
||||
<button class="btn normal dlg-btn btn-inner-close">textCancel</button>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<!-- replys elements -->
|
||||
|
||||
<% if (replys.length) { %>
|
||||
<div class="reply-arrow "></div>
|
||||
<% _.each(replys, function (item) { %>
|
||||
<div class="reply-item-ct">
|
||||
<div class="user-name"><%=scope.getFixedQuote(item.get("username"))%></div>
|
||||
<div class="user-date"><%=item.get("date")%></div>
|
||||
<% if (!item.get("editText")) { %>
|
||||
<div class="user-message text-select" data-can-copy="true"><%=scope.pickLink(item.get("reply"))%></div>
|
||||
<div class="btns-reply-ct">
|
||||
<div class="btn-edit" data-value="<%=item.get("id")%>"></div>
|
||||
<div class="btn-delete" data-value="<%=item.get("id")%>"></div>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<div class="inner-edit-ct">
|
||||
<textarea class="msg-reply textarea-fix"><%=item.get("reply")%></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-inner-edit btn-fix" id="id-comments-change">textEdit</button>
|
||||
<button class="btn normal dlg-btn btn-inner-close">textClose</button>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
<% }); %>
|
||||
<% } %>
|
||||
|
||||
<!-- add reply button -->
|
||||
|
||||
<% if (!showReply) { %>
|
||||
<% if (replys.length) { %>
|
||||
<label class="user-reply" style="margin-left: 20px; margin-top: 5px;" role="presentation" tabindex="-1">textAddReply</label>
|
||||
<% } else { %>
|
||||
<label class="user-reply" role="presentation" tabindex="-1">textAddReply</label>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<!-- edit buttons -->
|
||||
|
||||
<% if (!editText && !lock) { %>
|
||||
<div class="edit-ct">
|
||||
<div class="btn-edit"></div>
|
||||
<div class="btn-delete"></div>
|
||||
<% if (resolved) { %>
|
||||
<div class="resolve-ct-check" style="float:left;">
|
||||
<div class="resolved"></div>
|
||||
<div class="btn-resolve-check">textResolved</div>
|
||||
<% } else { %>
|
||||
<div class="resolve-ct" style="float:left;">
|
||||
<div class="btn-resolve">textResolve</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<!-- reply -->
|
||||
|
||||
<% if (showReply) { %>
|
||||
<div class="reply-ct">
|
||||
<textarea class="msg-reply" placeholder="textAddReply"></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-reply" id="id-comments-change">textReply</button>
|
||||
<button class="btn normal dlg-btn btn-close">textClose</button>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (lock) { %>
|
||||
<div class="lock-area"></div>
|
||||
<div class="lock-author"><%=lockuserid%></div>
|
||||
<% } %>
|
||||
<% if (!last) { %>
|
||||
<div class="separator-cmt"></div>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div id="comments-box">
|
||||
<div id="comments-messages"/>
|
||||
<div id="comments-add-link-ct">
|
||||
<label id="comment-btn-new" class="btn"><%=textAddCommentToDoc%></label>
|
||||
</div>
|
||||
<div id="comments-new-comment-ct" style="display: none;">
|
||||
<div id="comments-inner-ct">
|
||||
<textarea id="comment-msg-new" placeholder="<%=textEnterCommentHint%>"/>
|
||||
<button id="comment-btn-add" class="btn normal dlg-btn primary"><%=textAddComment%></button>
|
||||
<button id="comment-btn-cancel" class="btn normal dlg-btn"><%=textCancel%></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,94 @@
|
||||
<div id="<%=id%>" class="user-comment-item">
|
||||
|
||||
<!-- comment block -->
|
||||
|
||||
<div class="user-name"><%=scope.getUserName(username)%></div>
|
||||
<div class="user-date"><%=date%></div>
|
||||
<% if (!editTextInPopover || hint) { %>
|
||||
<div class="user-message"><%=scope.pickLink(comment)%></div>
|
||||
<% } else { %>
|
||||
<div class="inner-edit-ct">
|
||||
<textarea class="msg-reply"><%=comment%></textarea>
|
||||
<% if (hideAddReply) { %>
|
||||
<button class="btn normal dlg-btn primary btn-inner-edit" id="id-comments-change-popover">textAdd</button>
|
||||
<% } else { %>
|
||||
<button class="btn normal dlg-btn primary btn-inner-edit" id="id-comments-change-popover">textEdit</button>
|
||||
<% } %>
|
||||
<button class="btn normal dlg-btn btn-inner-close">textCancel</button>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<!-- replys elements -->
|
||||
|
||||
<% if (replys.length) { %>
|
||||
<div class="reply-arrow "></div>
|
||||
<% _.each(replys, function (item) { %>
|
||||
<div class="reply-item-ct">
|
||||
<div class="user-name"><%=scope.getFixedQuote(item.get("username"))%></div>
|
||||
<div class="user-date"><%=item.get("date")%></div>
|
||||
<% if (!item.get("editTextInPopover")) { %>
|
||||
<div class="user-message"><%=scope.pickLink(item.get("reply"))%></div>
|
||||
<% if (!hint) { %>
|
||||
<div class="btns-reply-ct">
|
||||
<div class="btn-edit" data-value="<%=item.get("id")%>"></div>
|
||||
<div class="btn-delete" data-value="<%=item.get("id")%>"></div>
|
||||
</div>
|
||||
<%}%>
|
||||
<% } else { %>
|
||||
<div class="inner-edit-ct">
|
||||
<textarea class="msg-reply textarea-fix"><%=item.get("reply")%></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-inner-edit btn-fix" id="id-comments-change-popover">textEdit</button>
|
||||
<button class="btn normal dlg-btn btn-inner-close">textClose</button>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
<% }); %>
|
||||
|
||||
<% } %>
|
||||
|
||||
<!-- add reply button -->
|
||||
|
||||
<% if (!showReplyInPopover && !hideAddReply && !hint) { %>
|
||||
<% if (replys.length) { %>
|
||||
<label class="user-reply" style="margin-left: 20px; margin-top: 5px;" role="presentation" tabindex="-1">textAddReply</label>
|
||||
<% } else { %>
|
||||
<label class="user-reply" role="presentation" tabindex="-1">textAddReply</label>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<!-- edit buttons -->
|
||||
|
||||
<% if (!editTextInPopover && !lock && !hint) { %>
|
||||
<div class="edit-ct">
|
||||
<div class="btn-edit"></div>
|
||||
<div class="btn-delete"></div>
|
||||
<% if (resolved) { %>
|
||||
<div class="resolve-ct-check" style="float:left;">
|
||||
<div class="resolved"></div>
|
||||
<div class="btn-resolve-check">textResolved</div>
|
||||
<% } else { %>
|
||||
<div class="resolve-ct" style="float:left;">
|
||||
<div class="btn-resolve">textResolve</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<!-- reply -->
|
||||
|
||||
<% if (showReplyInPopover) { %>
|
||||
<div class="reply-ct">
|
||||
<textarea class="msg-reply" placeholder="textAddReply"></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-reply" id="id-comments-change-popover">textReply</button>
|
||||
<button class="btn normal dlg-btn btn-close">textClose</button>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<!-- locked user -->
|
||||
|
||||
<% if (lock) { %>
|
||||
<div class="lock-area" style="cursor: default;"></div>
|
||||
<div class="lock-author" style="cursor: default;"><%=lockuserid%></div>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,32 @@
|
||||
<div class="color-box">
|
||||
<div id="id-hsb-colorpicker" style="vertical-align:top;">
|
||||
</div>
|
||||
<div class="color-info" style="">
|
||||
<div style="margin-left:15px;">
|
||||
<label class="color-label"><%= txtNew %></label>
|
||||
<div id="field-new-color" class="color-cnt top"></div>
|
||||
<div id="field-start-color" class="color-cnt bottom"></div>
|
||||
<label class="color-label"><%= txtCurrent %></label>
|
||||
</div>
|
||||
<div style="padding:13px 0 2px 0;">
|
||||
<label class="input-label">R:</label>
|
||||
<div id="extended-spin-r" class="color-spin"></div>
|
||||
</div>
|
||||
<div style="padding:2px 0;">
|
||||
<label class="input-label">G:</label>
|
||||
<div id="extended-spin-g" class="color-spin"></div>
|
||||
</div>
|
||||
<div style="padding:2px 0;">
|
||||
<label class="input-label">B:</label>
|
||||
<div id="extended-spin-b" class="color-spin"></div>
|
||||
</div>
|
||||
<div style="padding:11px 0 0 0;">
|
||||
<label class="input-label" style="width:12px;">#:</label>
|
||||
<input id="extended-text-color" type="text" role="textbox" style="width:62px; height: 22px;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer center">
|
||||
<button class="btn normal dlg-btn primary" result="1"><%= txtAdd %></button>
|
||||
<button class="btn normal dlg-btn" result="0"><%= txtCancel %></button>
|
||||
</div>
|
||||
6
OfficeWeb/apps/common/main/lib/template/Header.template
Normal file
6
OfficeWeb/apps/common/main/lib/template/Header.template
Normal file
@@ -0,0 +1,6 @@
|
||||
<div id="header-container">
|
||||
<div id="header-logo"></div>
|
||||
<div id="header-caption"><div><%= headerCaption %></div></div>
|
||||
<div id="header-documentcaption"><%= documentCaption %></div>
|
||||
<div id="header-back" style="display: <%= canBack ? 'table-cell' : 'none' %>;"><div><%= textBack %></div></div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user