diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/controls/editor/media-editor.ejs | 30 | ||||
| -rw-r--r-- | views/controls/editor/settings.ejs | 4 | ||||
| -rw-r--r-- | views/mail/password.html.ejs | 25 | ||||
| -rw-r--r-- | views/mail/password.text.ejs | 11 | ||||
| -rw-r--r-- | views/mail/welcome.html.ejs | 17 | ||||
| -rw-r--r-- | views/mail/welcome.text.ejs | 4 | ||||
| -rw-r--r-- | views/partials/scripts.ejs | 3 | ||||
| -rw-r--r-- | views/partials/sign-in.ejs | 75 |
8 files changed, 166 insertions, 3 deletions
diff --git a/views/controls/editor/media-editor.ejs b/views/controls/editor/media-editor.ejs new file mode 100644 index 0000000..93405fc --- /dev/null +++ b/views/controls/editor/media-editor.ejs @@ -0,0 +1,30 @@ +<div class="vvbox settings" id="editorMediaSettings"> + <input type="hidden" name="_csrf" value="[[- token ]]"> + <input type="hidden" name="_id" value="new"> + + <div class="setting"> + <input type="text" name="name" placeholder="room name" /> + </div> + + <div class="setting"> + <textarea name="description" placeholder="short description"></textarea> + </div> + + <div class="setting"> + <div class="radio-group"> + <input id="privacy_private" class="radio-group__option" type="radio" name="privacy" value="public" checked> + <label class="radio-group__label" for="privacy_private"> + Everyone + </label> + <input id="privacy_public" class="radio-group__option" type="radio" name="privacy" value="private"> + <label class="radio-group__label" for="privacy_public"> + Just for me + </label> + </div> + </div> + + <div class="setting"> + <button data-role="save-media">Save</button> + </div> + +</div> diff --git a/views/controls/editor/settings.ejs b/views/controls/editor/settings.ejs index a7d6213..867d5f3 100644 --- a/views/controls/editor/settings.ejs +++ b/views/controls/editor/settings.ejs @@ -16,9 +16,7 @@ <div class="setting"> <textarea name="description" placeholder="short description"></textarea> </div> - <div class="setting"> - <input type="text" placeholder="http://vvalls.com/t987" /> - </div> + <div class="setting"> <div class="radio-group"> <input id="privacy_private" class="radio-group__option" type="radio" name="privacy" value="public" checked> diff --git a/views/mail/password.html.ejs b/views/mail/password.html.ejs new file mode 100644 index 0000000..f266488 --- /dev/null +++ b/views/mail/password.html.ejs @@ -0,0 +1,25 @@ +<html> +<body> + +<p> + Hey there, +</p> + +<p> + We received a request to reset the password associated with this email address. +</p> + +<p> + Click the link below to make a new password: +</p> + +<p> + <a href="http://vvalls.com/auth/password?nonce=[[- passwordNonce ]]">http://vvalls.com/auth/password?nonce=[[- passwordNonce ]]</a> +</p> + +<p> + If this was requested in error, please disregard this message. +</p> + +</body> +</html> diff --git a/views/mail/password.text.ejs b/views/mail/password.text.ejs new file mode 100644 index 0000000..67e4b60 --- /dev/null +++ b/views/mail/password.text.ejs @@ -0,0 +1,11 @@ + +Hey there, + +We received a request to reset the password associated with this email address. + +Click the link below to make a new password: + +http://vvalls.com/auth/password?nonce=[[- passwordNonce ]] + +If this was requested in error, please disregard this message. + diff --git a/views/mail/welcome.html.ejs b/views/mail/welcome.html.ejs new file mode 100644 index 0000000..8b7194b --- /dev/null +++ b/views/mail/welcome.html.ejs @@ -0,0 +1,17 @@ +<html> +<body> + +<p> + <a href="http://vvalls.com/"><img src="http://vvalls.com/img/logo.svg"></a> +</p> + +<p> + Welcome to Vvalls, [[- username ]] +</p> + +<p> + <a href="http://vvalls.com/">www.vvalls.com</a> +</p> + +</body> +</html> diff --git a/views/mail/welcome.text.ejs b/views/mail/welcome.text.ejs new file mode 100644 index 0000000..cab9c15 --- /dev/null +++ b/views/mail/welcome.text.ejs @@ -0,0 +1,4 @@ + +Welcome to Vvalls, [[- username ]] + +http://www.posthang.com diff --git a/views/partials/scripts.ejs b/views/partials/scripts.ejs index 80be29f..9f0c2f2 100644 --- a/views/partials/scripts.ejs +++ b/views/partials/scripts.ejs @@ -65,6 +65,9 @@ <script type="text/javascript" src="/assets/javascripts/ui/site/SignInModal.js"></script> <script type="text/javascript" src="/assets/javascripts/ui/site/SignUpModal.js"></script> +<script type="text/javascript" src="/assets/javascripts/ui/site/UsernameTaken.js"></script> +<script type="text/javascript" src="/assets/javascripts/ui/site/PasswordForgot.js"></script> +<script type="text/javascript" src="/assets/javascripts/ui/site/PasswordReset.js"></script> <script type="text/javascript" src="/assets/javascripts/ui/site/LayoutsModal.js"></script> <script type="text/javascript" src="/assets/javascripts/ui/site/EditProjectModal.js"></script> <script type="text/javascript" src="/assets/javascripts/ui/site/EditProfileModal.js"></script> diff --git a/views/partials/sign-in.ejs b/views/partials/sign-in.ejs index 3341aec..11b930f 100644 --- a/views/partials/sign-in.ejs +++ b/views/partials/sign-in.ejs @@ -74,4 +74,79 @@ </div> </div> +<div class="mediaDrawer fixed animate forgotPassword"> + <div class="box"> + <form id="forgotPw" method="post" autocomplete="off"> + <li> + Forgot your password? Enter the email address you used to sign up + and we can reset it for you. + </li> + <li> + <label class="description" for="emailInput">Email:</label> + <div> + <input id="emailInput" name="email" class="element text medium" type="text" maxlength="255" value="" autocomplete="off" spellcheck="false"> + </div> + </li> + <li class="buttons"> + <input id="saveForm" class="bb button" type="submit" value="Submit"> + </li> + <div class="errors"> + <div>There was a problem with your submission:</div> + <div class="errorList"></div> + </div> + </form> + </div> +</div> + +<div class="mediaDrawer fixed animate resetPassword"> + <div class="box"> + <form id="resetPassword" method="post"> + <input type="hidden" name="nonce"> + Please reset your password. + <br><br> + <li> + <label class="description" for="passwordInput1">Password:</label> + <div> + <input id="passwordInput1" name="password" class="element text medium" type="password" maxlength="255"> + </div> + </li> + <li> + <label class="description" for="passwordInput2">Again!</label> + <div> + <input id="passwordInput2" class="element text medium" type="password" maxlength="255"> + </div> + </li> + <li class="buttons"> + <input id="saveForm" class="bb button" type="submit" value="Submit" /> + </li> + <div class="errors"> + <div class="errorList"></div> + </div> + </form> + </div> +</div> + +<div class="mediaDrawer fixed animate usernameTaken"> + <div class="box"> + <form id="usernameTaken" method="post" autocomplete="off"> + We're sorry, the username <b>[[- username ]]</b> is already being used. + <br><br> + Please choose another username. + <br><br> + <li> + <label class="description" for="usernameInput">Username:</label> + <div> + <input id="usernameInput" name="username" class="element text medium" type="text" maxlength="255" value="" autocomplete="off" spellcheck="false"> + </div> + </li> + <li class="buttons"> + <input id="saveForm" class="bb button" type="submit" value="Submit"> + </li> + <div class="errors"> + <div class="errorList"></div> + </div> + </form> + </div> +</div> + [[ } ]] |
