summaryrefslogtreecommitdiff
path: root/views/controls
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls')
-rw-r--r--views/controls/editor/collaborators.ejs61
-rw-r--r--views/controls/editor/light-control.ejs16
-rw-r--r--views/controls/editor/settings.ejs8
-rw-r--r--views/controls/editor/wallpaper.ejs12
-rw-r--r--views/controls/reader/about-room.ejs7
5 files changed, 100 insertions, 4 deletions
diff --git a/views/controls/editor/collaborators.ejs b/views/controls/editor/collaborators.ejs
new file mode 100644
index 0000000..69e5b64
--- /dev/null
+++ b/views/controls/editor/collaborators.ejs
@@ -0,0 +1,61 @@
+<div class="collaborators fixed mediaDrawer animate">
+ <span class="close">X</span>
+
+ <div>
+ <h2>Collaborators</h2>
+
+ <p>
+ To invite others to contribute to this project, submit their email address below. They'll receive an email with instructions to join this blog and register if they're not a Vvalls user yet.
+ </p>
+
+ <form>
+ <input type="text" id="collaborator-email" name="email">
+ <input type="submit" id="collaborator-invite" value="Invite to this project">
+ </form>
+
+ <div id="collaborator-url-rapper">
+ We've sent a link to join this project to <span id="collaborator-dummy-email"></span>.
+ You can also send this link yourself:
+ <input type="text" id="collaborator-url">
+ </div>
+
+ <ul id="collaborator-list">
+ </ul>
+
+ </div>
+
+</div>
+
+<script type="text/html" id="collaborator-template">
+ <li>
+ <a class="user">
+ <div class="avatar"></div><span class="username"></span>
+ </a>
+ <span class="email"></span>
+ <button data-role="destroy-collaborator" class="remove-user">Remove</button>
+ <span class="role">owner</span>
+ </li>
+</script>
+
+<style>
+#collaborator-url-rapper {
+ display: none;
+ background: #fff;
+ border: 1px solid;
+ box-shadow: -3px 3px 0;
+ padding: 10px;
+ font-weight: 300;
+ font-size: 14px;
+ margin: 10px 0;
+}
+#collaborator-url {
+ font-size: 16px;
+ width: 500px;
+ border: 1px solid;
+ font-size: 14px;
+ padding: 5px;
+ font-weight: 300;
+ margin-top: 5px;
+ display: block;
+}
+</style>
diff --git a/views/controls/editor/light-control.ejs b/views/controls/editor/light-control.ejs
index ddd282b..a67df34 100644
--- a/views/controls/editor/light-control.ejs
+++ b/views/controls/editor/light-control.ejs
@@ -1,8 +1,19 @@
<div class="vvbox lightcontrol">
+
<div class="slider">
- <input type="range" min="0" max="100" value="0" id="outline-hue" />
- <h4>Outline Hue</h4>
+ <input type="range" min="0" max="110" value="0" id="brightness-control" />
+ <h4>Brightness</h4>
</div>
+
+ <div class="color-swatches">
+ <div class="swatch" id="wall-color" data-mode="wall"></div><label>wall</label>
+ <div class="swatch" id="floor-color" data-mode="floor"></div><label>floor</label>
+ <div class="swatch" id="ceiling-color" data-mode="ceiling"></div><label>ceiling</label>
+ <br>
+ <div class="swatch" id="outline-color" data-mode="outline"></div><label>outlines</label>
+ </div>
+
+<!--
<div class="slider">
<input type="range" min="0" max="100" value="100" id="wall-hue" />
<h4>Wall Hue</h4>
@@ -15,4 +26,5 @@
<input type="range" min="0" max="100" value="0" id="shadow-control" />
<h4>Shadow</h4>
</div>
+-->
</div>
diff --git a/views/controls/editor/settings.ejs b/views/controls/editor/settings.ejs
index 6f46be3..e4ec7ee 100644
--- a/views/controls/editor/settings.ejs
+++ b/views/controls/editor/settings.ejs
@@ -3,11 +3,17 @@
<input type="hidden" name="_id" value="new">
<div class="setting">
- <a href="#" id="startpoint">
+ <a href="#" class="modalLink" id="startpoint">
<span class="icon-ios7-navigate-outline"></span>
<span id="startText">Select Startpoint</span>
<span id="moveText">Move to Desired Point</span></a>
</div>
+ <div class="setting">
+ <a href="#" class="modalLink" data-role='show-collaborators'>
+ <span class="icon-ios7-plus-outline"></span>
+ Add Collaborators
+ </a>
+ </div>
<div class="setting">
<input type="text" name="name" placeholder="room name">
diff --git a/views/controls/editor/wallpaper.ejs b/views/controls/editor/wallpaper.ejs
index 144e419..55ecf85 100644
--- a/views/controls/editor/wallpaper.ejs
+++ b/views/controls/editor/wallpaper.ejs
@@ -1,4 +1,16 @@
<div class="vvbox wallpaper">
+ <div class="swatches"></div>
+
+ <div class="wallpaperUpload">
+ <form>
+ <span class="icon-ios7-upload-outline upload-icon"></span>
+ <label>Upload wallpaper</label>
+ <input type="file" accept="image/*" class="file" multiple>
+ </form>
+<!--
+ <input type="text" placeholder="Enter Image URL" class="url">
+ -->
+ </div>
</div>
<div class="floatingSwatch"></div>
diff --git a/views/controls/reader/about-room.ejs b/views/controls/reader/about-room.ejs
index f990da8..2aa244b 100644
--- a/views/controls/reader/about-room.ejs
+++ b/views/controls/reader/about-room.ejs
@@ -3,7 +3,12 @@
[[- name ]],<br>
<a href="[[- authorlink ]]">[[- author ]]</a>
</h1>
- <h2>Last modified [[- date ]]</h2>
+ <h2>
+ Last modified [[- date ]]
+ [[ if (canEdit) { ]]
+ &middot; <a href="[[- editlink ]]" class="editlink">Edit</a>
+ [[ } ]]
+ </h2>
<span>[[- description ]]</span>
</div>