Skip to content

Commit

Permalink
Added sprint functionality and started to focus on sprints before days
Browse files Browse the repository at this point in the history
  • Loading branch information
anissen committed May 2, 2012
1 parent 1f0f22a commit d4ff25c
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 4 deletions.
4 changes: 4 additions & 0 deletions apps/service/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ module.exports = (input) ->
year:
type: Number
required: true
duration:
type: Number
default: 2
description: String
days: [SprintDaySchema]

SprintDaySchema = new Schema
Expand Down
84 changes: 81 additions & 3 deletions views/app/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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>
-->
4 changes: 3 additions & 1 deletion views/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit d4ff25c

Please sign in to comment.