Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: bae6987307
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (34 sloc) 1.547 kB
<div class="form-content">
<h2>Publish</h2>
<div>
<label for="last_published">Last published:<span></span></label>
<%= document.get('published_on') ? s.util.prettyDate(document.get('published_on')) : "Not yet published" %>
<br class="clear"/>
</div>
<div>
<label for="networks">Networks:<span>Choose some Networks your document should appear in.</span></label>
<select name="networks" class="networks-selection" data-placeholder="Choose networks ..." style="width:350px;" multiple="multiple">
<% availableNetworks.each(function(network) { %>
<option value="<%= network._id %>"<%= networks.get(network._id) ? ' selected="selected"' : '' %>> <%= network.get('name') %></option>
<% }); %>
</select>
<br class="clear"/>
</div>
<div>
<label for="version_remark">Remark:<span>Enter optional version description</span></label>
<input type="text" id="version_remark" name="user_name" value="adsgadsf"/>
<br class="clear"/>
</div>
<% if (isCurrentUser(document.get('creator'))) { %>
<div>
<label for="">&nbsp;</label>
<% if (document.get('published_on') != document.get('updated_at')) { %>
<input class="publish-document" type="submit" id="document_name" value="<%= document.get('published_version') ? "Publish Changes": "Publish" %>"/>
<% } %>
<% if (document.get('published_version')) { %>
<input class="unpublish-document" type="submit" id="document_name" value="Unpublish"/>
<% } %>
<br class="clear"/>
</div>
<% } %>
</div>
Jump to Line
Something went wrong with that request. Please try again.