aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/views/project/post.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/project/post.ejs')
-rw-r--r--app/views/project/post.ejs103
1 files changed, 103 insertions, 0 deletions
diff --git a/app/views/project/post.ejs b/app/views/project/post.ejs
new file mode 100644
index 0000000..5e8f283
--- /dev/null
+++ b/app/views/project/post.ejs
@@ -0,0 +1,103 @@
+<% include ../templates/header %>
+
+</head>
+<body>
+ <% include ../templates/navbar %>
+
+ <!-- Wrapper
+ ================================================== -->
+ <div class="container" id="wrapper">
+ <div class="row-fluid">
+
+
+ <form class="form-horizontal" method="post">
+ <input type="hidden" name="project" value="<%= project._id %>">
+ <fieldset>
+
+ <h1><legend><%= title %></legend></h1>
+ <div class="control-group">
+ <label for="username" class="control-label">Av</label>
+ <div class="controls">
+ <span class="input-medium uneditable-input"><%= req.user.username %></span>
+ </div>
+ </div>
+ <div class="control-group">
+ <label for="what" class="control-label">Hva <strong class="text-error">*</strong></label>
+ <div class="controls">
+ <input type="text" name="what" id="what" placeholder="Hva ble kjøpt" required maxlength="40">
+ </div>
+ </div>
+ <%
+ // we need to populate the date- and timefield with the current time and date
+ var d = new Date();
+ var n = d.getFullYear() + '-' + ('0' + (d.getMonth()+1)).slice(-2) + '-' + ('0' + d.getDate()).slice(-2);
+ var t = d.toLocaleTimeString().slice(0, 5);
+ %>
+ <!-- <%= d %> -->
+ <div class="control-group">
+ <label for="date" class="control-label">Når</label>
+ <div class="controls">
+ <input type="date" name="date" value="<%= n %>" class="input-medium">
+ <input type="time" name="time" value="<%= t %>" class="input-medium">
+ </div>
+ </div>
+ <div class="control-group">
+ <label for="cost" class="control-label">Hvor mye <strong class="text-error">*</strong></label>
+ <div class="controls">
+ <input type="number" name="value" id="value" class="input-small" placeholder="0" required>
+ </div>
+ </div>
+<!-- <div class="control-group">
+ <label for="split_between" class="control-label">Delt på</label>
+ <div class="controls">
+
+ <span class="selectAll">Select all</span>
+ <select name="participants[]" id="participants" multiple="multiple">
+ <option value="5180e11b0074a8b029000001" selected="selected">Dennis</option>
+ <option value="51814b792c94cc5346000001" selected="selected">Kurt</option>
+ </select>
+ </div>
+ </div>
+ <div class="control-group">
+ <label for="file" class="control-label">Kvittering</label>
+ <div class="controls">
+ <input type="file" name="file" id="file">
+ </div>
+ </div>-->
+ <div class="control-group">
+ <label for="comment" class="control-label">Kommentar</label>
+ <div class="controls">
+ <textarea id="comment" name="comment" class="span6"></textarea>
+ </div>
+ </div>
+
+ <div class="control-group">
+ <div class="form-actions">
+ <button type="submit" id="button1id" name="button1id" class="btn btn-primary">Post</button>
+ <button type="reset" id="button2id" name="button2id" class="btn">Nullstill</button>
+ </div>
+ </div>
+
+ </fieldset>
+ </form>
+
+
+
+
+
+
+
+ </div><!-- /div.row -->
+ </div><!-- /div.#wrapper -->
+
+
+<% include ../templates/footer %>
+<!-- <script>
+ $(".selectAll").click(function() {
+ $('#participants').children().attr('selected','selected');
+ //$(this).parent().find('option').attr('selected','selected');
+ });
+</script>-->
+
+</body>
+</html>