summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Contests/CreateContest.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-20 20:06:42 -0400
committerMichael <[email protected]>2017-05-20 20:06:42 -0400
commite37b3223dbcd7957bbe113c5cb9a5698205fb722 (patch)
treebb6abeb3f6cf408b69745331fd09bb7fcca0f48e /Project-Unite/Views/Contests/CreateContest.cshtml
parentb0c200196e5506b456895f9ee0c4c8dcd547fdb7 (diff)
downloadproject-unite-e37b3223dbcd7957bbe113c5cb9a5698205fb722.tar.gz
project-unite-e37b3223dbcd7957bbe113c5cb9a5698205fb722.tar.bz2
project-unite-e37b3223dbcd7957bbe113c5cb9a5698205fb722.zip
create contest page
Diffstat (limited to 'Project-Unite/Views/Contests/CreateContest.cshtml')
-rw-r--r--Project-Unite/Views/Contests/CreateContest.cshtml38
1 files changed, 38 insertions, 0 deletions
diff --git a/Project-Unite/Views/Contests/CreateContest.cshtml b/Project-Unite/Views/Contests/CreateContest.cshtml
new file mode 100644
index 0000000..e134312
--- /dev/null
+++ b/Project-Unite/Views/Contests/CreateContest.cshtml
@@ -0,0 +1,38 @@
+@model Project_Unite.Models.CreateContestViewModel
+
+@{
+ ViewBag.Title = "Create contest";
+}
+
+<h2>Create contest</h2>
+
+<p>This page will let you create a ShiftOS community contest.</p>
+<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js"
+ integrity="sha256-eGE6blurk5sHj+rmkfsGYeKyZx3M4bG+ZlFyA7Kns7E="
+ crossorigin="anonymous"></script>
+<script>
+ $('#enddate').datepicker();
+</script>
+
+@using (Html.BeginForm())
+{
+ @Html.AntiForgeryToken()
+
+ <dl>
+ <dt>Contest name:</dt>
+ <dd>@Html.TextBoxFor(Model=>Model.Name, new { @class = "form-control" })</dd>
+ <dt>Contest description</dt>
+ <dd>@Html.TextAreaFor(Model => Model.Description, new { @class = "form-control" })</dd>
+ <dt>Video ID:</dt>
+ <dd>If you have posted a YouTube video for this contest, paste its ID here. @Html.TextBoxFor(Model => Model.VideoId, new { @class = "form-control" })</dd>
+ <dt>Gold reward:</dt>
+ <dd>@Html.EditorFor(Model => Model.GoldReward, new { @class = "form-control" })</dd>
+ <dt>Silver reward:</dt>
+ <dd>@Html.EditorFor(Model => Model.SilverReward, new { @class = "form-control" })</dd>
+ <dt>Bronze reward:</dt>
+ <dd>@Html.EditorFor(Model => Model.BronzeReward, new { @class = "form-control" })</dd>
+ </dl>
+
+ <hr/>
+ <input type="submit" class="btn btn-primary" value="Open the contest!"/>
+} \ No newline at end of file