Permalink
Browse files

Added sprint functionality and started to focus on sprints before days

  • Loading branch information...
1 parent 1f0f22a commit d4ff25c7d1b2f8f558d2d2bee15b51bf94f2c503 @anissen committed May 2, 2012
Showing with 88 additions and 4 deletions.
  1. +4 −0 apps/service/index.coffee
  2. +81 −3 views/app/index.ejs
  3. +3 −1 views/layout.ejs
@@ -26,6 +26,10 @@ module.exports = (input) ->
year:
type: Number
required: true
+ duration:
+ type: Number
+ default: 2
+ description: String
days: [SprintDaySchema]
SprintDaySchema = new Schema
View
@@ -3,6 +3,59 @@
<h1>App</h1>
</div>
+
+
+<div class="modal fade" id="myModal" style="display: none;">
+ <div class="modal-header">
+ <button class="close" data-dismiss="modal">×</button>
+ <h3>Create new sprint</h3>
+ </div>
+ <div class="modal-body">
+ <form class="form-horizontal">
+ <fieldset>
+ <div class="control-group">
+ <label class="control-label" for="start-week">Start week</label>
+ <div class="controls">
+ <input type="text" id="start-week" placeholder="Start week">
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label" for="year">Year</label>
+ <div class="controls">
+ <input type="text" id="year" placeholder="Year">
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label" for="duration">Duration</label>
+ <div class="controls">
+ <input type="text" id="duration" placeholder="Duration">
+ <p class="help-block">Duration in weeks.</p>
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label" for="Description">Description</label>
+ <div class="controls">
+ <input type="text" id="Description" placeholder="Description">
+ <p class="help-block">E.g. <em>"Extend user profile page with badges"</em></p>
+ </div>
+ </div>
+ <!--
+ <div class="form-actions">
+ <button type="submit" class="btn btn-primary">Save changes</button>
+ <button class="btn">Cancel</button>
+ </div>
+ -->
+ </fieldset>
+ </form>
+ </div>
+ <div class="modal-footer">
+ <a href="#" class="btn">Close</a>
+ <a href="#" class="btn btn-primary">Save changes</a>
+ </div>
+</div>
+
+
+
<div class="row">
<div class="span2">
<h3>Sprint</h3>
@@ -20,10 +73,10 @@
</ul>
</div>
- <!-- <a href="#" class="btn">Add sprint</a> -->
+ <a class="btn" data-toggle="modal" href="#myModal" >Create new sprint</a>
</div>
-
+<!--
<div class="row">
<div class="span2">
<h3>Sprint day</h3>
@@ -80,5 +133,30 @@
</div>
</form>
+ <a href="#" title="" id="add-day-to-sprint">Add day</a>
+
+ <script type="text/javascript">
+ $(function() {
+
+ $('#add-day-to-sprint').on('click', function() {
+ $.post("/service/sprint/2012/18/add-day", {
+ "day": {
+ "day": "1",
+ "comment": "Nothing special",
+ "developerBurndown": [{
+ "developer": "ANNI",
+ "focus": "5",
+ "burndown": ["3","4"]
+ }]
+ }
+ }, function(data, textStatus, jqXHR) {
+ console.log("Post resposne:"); console.dir(data); console.log(textStatus); console.dir(jqXHR);
+ });
+ });
+
+ });
+ </script>
+
</div>
-</div>
+</div>
+-->
View
@@ -2,6 +2,9 @@
<html>
<head>
<title><%= title %> - Burn It</title>
+
+ <!-- Global scripts -->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!-- Global stylesheets -->
<link rel="stylesheet" href="/bootstrap/css/bootstrap.css" />
@@ -57,7 +60,6 @@
</body>
<!-- Global scripts -->
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script src="/assets/js/jquery-plugins.js"></script>
<script src="/bootstrap/js/bootstrap.js"></script>

0 comments on commit d4ff25c

Please sign in to comment.