summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Contests/CreateContest.cshtml
blob: 911ca6ed0f0dc427429cbce6f5fc41b9dfd72879 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@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>
    $(document).ready(function () {
        alert('not xss');
        $('#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>End date:</dt>
        <dd>@Html.TextBoxFor(Model=>Model.EndDate, new { id = "enddate" })</dd>
            <dt>Gold reward:</dt>
            <dd>@Html.TextBoxFor(Model => Model.GoldReward, new { @class = "form-control" })</dd>
            <dt>Silver reward:</dt>
            <dd>@Html.TextBoxFor(Model => Model.SilverReward, new { @class = "form-control" })</dd>
            <dt>Bronze reward:</dt>
            <dd>@Html.TextBoxFor(Model => Model.BronzeReward, new { @class = "form-control" })</dd>
        </dl>

    <hr/>
    <input type="submit" class="btn btn-primary" value="Open the contest!"/>
}