Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added local mvc4 references for appharbor
- Loading branch information
Showing
23 changed files
with
17,212 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,89 @@ | ||
@{ | ||
ViewBag.Title = "Index"; | ||
} | ||
|
||
@*<script src="Scripts/GameEditor.js"></script>*@ | ||
|
||
<link type="text/css" href="http://aspnet-skins.telerikstatic.com/mvcz/2012.2.607/telerik.common.min.css" rel="stylesheet"/> | ||
<link type="text/css" href="http://aspnet-skins.telerikstatic.com/mvcz/2012.2.607/telerik.vista.min.css" rel="stylesheet"/> | ||
|
||
<script type="text/html" id="roundItem-template"> | ||
<li> | ||
<div class="row"> | ||
<div class="five columns"> | ||
<a href="#" data-bind="click: questionClicked"> | ||
<span data-bind="text: questionText" /> | ||
</a> | ||
</div> | ||
|
||
<div class="two columns"> | ||
@*The two divs below are not working :-(*@ | ||
<div data-bind="visible:$parent.showGameEditControls"> | ||
@*<a href="#">down</a> | ||
<a href="#">up</a> | ||
<a href="#">del</a> *@ | ||
</div> | ||
<div data-bind="visible:$parent.showListControls"> | ||
<button data-bind="click:$parent.addQuestionToGame" >add</button> | ||
</div> | ||
@*hack :-(*@ | ||
<button data-bind="click:$parent.addQuestionToGame" >add</button> | ||
</div> | ||
</div> | ||
<div data-bind="visible: isVisible"> | ||
<div class="row"> | ||
<div class="one columns">#</div> | ||
<div class="five columns"><label>Answer</label></div> | ||
<div class="two columns"><label>Points</label></div> | ||
</div> | ||
<div data-bind="foreach: answers "> | ||
<div class="row"> | ||
<div class="one columns" data-bind="text: answerNumber"></div> | ||
<div class="five columns"> | ||
<input type="text" data-bind="value: text, enable: $parent.isGameEditor" /> | ||
</div> | ||
<div class="two columns"> | ||
<input type="text" data-bind="value: points, enable: $parent.isGameEditor" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
</script> | ||
|
||
<div class="container white"> | ||
|
||
@*make game*@ | ||
@*<div class="eight columns"> | ||
<ul data-bind="template: { name: 'roundItem-template', foreach: gameRounds.rounds }"></ul> | ||
</div>*@ | ||
|
||
@*all questions*@ | ||
@*<div class="eight columns"> | ||
<label> | ||
Search: | ||
<input type="text" data-bind="value:questionFilter" /> | ||
</label> | ||
<ul data-bind="template: { name: 'roundItem-template', foreach: allRounds.rounds }"></ul> | ||
</div>*@ | ||
|
||
@(Html.Telerik().Grid<FamilyFeud.Service.Models.Question>() | ||
.Name("Grid") | ||
.Columns(columns => | ||
{ | ||
|
||
columns.Bound(o => o.QuestionText).Width(200); | ||
|
||
}) | ||
.DataBinding(dataBinding => dataBinding.Ajax().Select("GetAllQuestions", "Game")) | ||
.Pageable() | ||
.Sortable() | ||
.Scrollable() | ||
.Groupable() | ||
.Filterable() | ||
) | ||
|
||
|
||
</div> | ||
|
||
@{ | ||
ViewBag.Title = "Index"; | ||
} | ||
|
||
@*<script src="Scripts/GameEditor.js"></script>*@ | ||
|
||
<link type="text/css" href="http://aspnet-skins.telerikstatic.com/mvcz/2012.2.607/telerik.common.min.css" rel="stylesheet"/> | ||
|
||
<link type="text/css" href="http://aspnet-skins.telerikstatic.com/mvcz/2012.2.607/telerik.vista.min.css" rel="stylesheet"/> | ||
|
||
<script type="text/html" id="roundItem-template"> | ||
<li> | ||
<div class="row"> | ||
<div class="five columns"> | ||
<a href="#" data-bind="click: questionClicked"> | ||
<span data-bind="text: questionText" /> | ||
</a> | ||
</div> | ||
|
||
<div class="two columns"> | ||
@*The two divs below are not working :-(*@ | ||
<div data-bind="visible:$parent.showGameEditControls"> | ||
@*<a href="#">down</a> | ||
<a href="#">up</a> | ||
<a href="#">del</a> *@ | ||
</div> | ||
<div data-bind="visible:$parent.showListControls"> | ||
<button data-bind="click:$parent.addQuestionToGame" >add</button> | ||
</div> | ||
@*hack :-(*@ | ||
<button data-bind="click:$parent.addQuestionToGame" >add</button> | ||
</div> | ||
</div> | ||
<div data-bind="visible: isVisible"> | ||
<div class="row"> | ||
<div class="one columns">#</div> | ||
<div class="five columns"><label>Answer</label></div> | ||
<div class="two columns"><label>Points</label></div> | ||
</div> | ||
<div data-bind="foreach: answers "> | ||
<div class="row"> | ||
<div class="one columns" data-bind="text: answerNumber"></div> | ||
<div class="five columns"> | ||
<input type="text" data-bind="value: text, enable: $parent.isGameEditor" /> | ||
</div> | ||
<div class="two columns"> | ||
<input type="text" data-bind="value: points, enable: $parent.isGameEditor" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
</script> | ||
|
||
<div class="container white"> | ||
|
||
@*make game*@ | ||
@*<div class="eight columns"> | ||
<ul data-bind="template: { name: 'roundItem-template', foreach: gameRounds.rounds }"></ul> | ||
</div>*@ | ||
|
||
@*all questions*@ | ||
@*<div class="eight columns"> | ||
<label> | ||
Search: | ||
<input type="text" data-bind="value:questionFilter" /> | ||
</label> | ||
<ul data-bind="template: { name: 'roundItem-template', foreach: allRounds.rounds }"></ul> | ||
</div>*@ | ||
|
||
@(Html.Telerik().Grid<FamilyFeud.Service.Models.Question>() | ||
.Name("Grid") | ||
.Columns(columns => | ||
{ | ||
|
||
columns.Bound(o => o.QuestionText).Width(200); | ||
|
||
}) | ||
.DataBinding(dataBinding => dataBinding.Ajax().Select("GetAllQuestions", "Game")) | ||
.Pageable() | ||
.Sortable() | ||
.Scrollable() | ||
.Groupable() | ||
.Filterable() | ||
) | ||
|
||
|
||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.