summaryrefslogtreecommitdiff
path: root/Project-Unite/Views
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Views')
-rw-r--r--Project-Unite/Views/Contests/CreateContest.cshtml6
-rw-r--r--Project-Unite/Views/Shared/_Layout.cshtml2
2 files changed, 5 insertions, 3 deletions
diff --git a/Project-Unite/Views/Contests/CreateContest.cshtml b/Project-Unite/Views/Contests/CreateContest.cshtml
index 57e0bce..19e72ff 100644
--- a/Project-Unite/Views/Contests/CreateContest.cshtml
+++ b/Project-Unite/Views/Contests/CreateContest.cshtml
@@ -12,8 +12,8 @@
crossorigin="anonymous"></script>
<script>
$(document).ready(function () {
- alert('not xss');
- $('#enddate').datepicker();
+ jquery.datetimepicker.setLocale("en");
+
});
</script>
@@ -29,7 +29,7 @@
<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", @class="form-control" })</dd>
+ <dd>@Html.TextBoxFor(Model=>Model.EndDate, new { id = "datetimepicker", @class="form-control" })</dd>
<dt>Gold reward:</dt>
<dd>@Html.TextBoxFor(Model => Model.GoldReward, new { @class = "form-control" })</dd>
<dt>Silver reward:</dt>
diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml
index b500b33..353b7b3 100644
--- a/Project-Unite/Views/Shared/_Layout.cshtml
+++ b/Project-Unite/Views/Shared/_Layout.cshtml
@@ -24,6 +24,8 @@
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
+ <script src="@Url.Action("jquery.datetimepicker.js", "Scripts")"></script>
+ <link rel="stylesheet" href="~/Content/datetimepicker.css" />
@RenderSection("scripts", required: false)
<title>@ViewBag.Title &bull; ShiftOS</title>
@Styles.Render("~/Content/css")