aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/views/users
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/registerEmail.ejs43
-rw-r--r--app/views/users/signup.ejs86
2 files changed, 129 insertions, 0 deletions
diff --git a/app/views/users/registerEmail.ejs b/app/views/users/registerEmail.ejs
new file mode 100644
index 0000000..bdf5b65
--- /dev/null
+++ b/app/views/users/registerEmail.ejs
@@ -0,0 +1,43 @@
+<% include ../templates/header %>
+
+</head>
+<body>
+
+ <!-- Wrapper
+ ================================================== -->
+ <div class="container" id="wrapper">
+ <div class="row-fluid">
+
+ <form class="form-horizontal" method="post">
+ <fieldset>
+
+ <h1><legend><%= title %></legend></h1>
+ <p>Vær vennlig å registrer eposten din</p>
+
+ <div class="control-group">
+ <label class="control-label">Epost-adresse</label>
+ <div class="controls">
+ <div class="input-prepend">
+ <span class="add-on"><i class="icon-envelope"></i></span>
+ <input type="email" name="email" id="email" placeholder="E-post" required>
+ </div>
+ </div>
+ </div>
+ <div class="control-group">
+ <div class="form-actions">
+ <button type="submit" id="buttonSubmit" name="submit" class="btn btn-primary">Registrer</button>
+ <button type="reset" id="buttonReset" name="reset" class="btn">Nullstill</button>
+ </div>
+ </div>
+
+
+ </fieldset>
+ </form>
+
+ </div><!-- /div.row -->
+ </div><!-- /div.#wrapper -->
+
+
+<% include ../templates/footer %>
+</body>
+</html>
diff --git a/app/views/users/signup.ejs b/app/views/users/signup.ejs
new file mode 100644
index 0000000..611c052
--- /dev/null
+++ b/app/views/users/signup.ejs
@@ -0,0 +1,86 @@
+<% include ../templates/header %>
+ <link rel="stylesheet" href="/css/login.css" />
+</head>
+<body>
+
+ <input type="hidden" id="userId">
+ <div id="account-form-container">
+ <form method="post" id="account-form" class="form-horizontal well span6">
+ <h1></h1>
+ <p id="sub1" class="subheading">Please tell us a little about yourself.</p>
+ <hr>
+ <fieldset>
+ <div id="name-cg" class="control-group">
+ <label for="name-tf" class="control-label">Name</label>
+ <div class="controls">
+ <input id="name-tf" type="text" name="name" class="input-xlarge">
+ </div>
+ </div>
+ <div id="email-cg" class="control-group">
+ <label for="email-tf" class="control-label">Email</label>
+ <div class="controls">
+ <% if (invite) { %>
+ <span class="input uneditable-input"><%= email %></span>
+ <% } else { %>
+ <input id="email-tf" type="text" name="email" class="input-xlarge">
+ <% } %>
+ </div>
+ </div>
+ <hr>
+ <p id="sub2" class="subheading"></p>
+ <div id="user-cg" class="control-group">
+ <label for="user-tf" class="control-label">Username</label>
+ <div class="controls">
+ <input id="user-tf" type="text" name="username" class="input-xlarge disabled">
+ </div>
+ </div>
+ <div id="pass-cg" class="control-group">
+ <label for="pass-tf" class="control-label">Password</label>
+ <div class="controls">
+ <input id="pass-tf" type="password" name="password" value="" class="input-xlarge">
+ </div>
+ </div>
+ <div class="form-actions">
+ <button type="button" id="account-form-btn1" class="btn">Cancel</button>
+ <button type="submit" id="account-form-btn2" class="btn">Submit</button>
+ </div>
+ </fieldset>
+ </form>
+ </div>
+ <!-- display form errors in a custom modal window //-->
+ <div class="modal-form-errors modal hide fade">
+ <div class="modal-header">
+ <button data-dismiss="modal" class="close">x</button>
+ <h3>Whoops!</h3>
+ </div>
+ <div class="modal-body">
+ <p class="subheading">It looks like there was a problem.</p>
+ <ul></ul>
+ </div>
+ <div class="modal-footer">
+ <button data-dismiss="modal" class="btn btn-warning">OK</button>
+ </div>
+ </div>
+
+
+
+
+
+ <div class="modal-alert modal hide fade">
+ <div class="modal-header">
+ <button data-dismiss="modal" class="close">x</button>
+ <h3></h3>
+ </div>
+ <div class="modal-body">
+ <p></p>
+ </div>
+ <div class="modal-footer">
+ <button data-dismiss="modal" id="ok" class="btn btn-warning">OK</button>
+ </div>
+ </div>
+ <script src="/js/views/signup.js"></script>
+ <script src="/js/form-validators/accountValidator.js"></script>
+ <script src="/js/controllers/signupController.js"></script>
+
+
+<% include ../templates/footer %>