perkeep/server/go/camlistored/ui/permanode.html

90 lines
2.5 KiB
HTML

<!doctype html>
<html>
<head>
<title>Permanode</title>
<script src="base64.js"></script>
<script src="Crypto.js"></script>
<script src="SHA1.js"></script>
<script src="camli.js"></script>
<script src="?camli.mode=config&cb=onConfiguration"></script>
<script src="permanode.js"></script>
<link rel="stylesheet" href="camli.css">
</head>
<body class="camli-ui-permanode">
<div class="camli-nav"><a href="./">Home</a></div>
<h1>Permanode</h1>
<p>
Permalink:
<span id="permanode"></span>
<span id="permanodeBlob" class="camli-nav"></span>
</p>
<form id="formTitle">
<p>
Title: <input type="text" id="inputTitle" size="30" value="(loading)" disabled="disabled">
<input type="submit" id="btnSaveTitle" value="Save" disabled="disabled">
</p>
</form>
<form id="formTags">
<p>
<label for="inputNewTag">Tags:</label>
<span id="spanTags"></span>
<input id="inputNewTag" placeholder="tag1, tag2, tag3">
<input type="submit" id="btnAddTag" value="Add Tag(s)">
</form>
<form id="formAccess">
<p>Access:
<select id="selectAccess" disabled="disabled">
<option value="private">Private</option>
<option value="public">Public</option>
</select>
<input type="submit" id="btnSaveAccess" value="Save" disabled="disabled">
... with URL: <select id="selectPublishRoot">
<option value=""></option>
</select>
<input type="text" id="publishSuffix" size="40">
<input type="submit" id="btnSavePublish" value="Set URL">
</p>
</form>
<div id="existingPaths"></div>
<div id="content"></div>
<div id="members"></div>
<form id="formType">
<p>Type:
<select id='type'>
<option value=''>(None / auto)</option>
<option value='_other'>(Other)</option>
<option value="root">Root (of a hierarchy)</option>
<option value="file">File</option>
<option value="collection">File Collection / Gallery</option>
<option value="microblog">Microblog Post</option>
<option value="blog">Blog Post</option>
</select>
</p>
</form>
<div id="dnd" class="camli-dnd">
<form id="fileForm">
<input type="file" id="fileInput" multiple="true" onchange="">
<input type="submit" id="fileUploadBtn" value="Upload">
</form>
<p>
<em>or drag &amp; drop files here</em>
</p>
<pre id="info"></pre>
</div>
<h3>Current object attributes</h3>
<pre id="debugattrs" style="font-size: 8pt"></pre>
</body>
</html>