diff options
| author | Michael <[email protected]> | 2017-05-20 20:42:40 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-20 20:42:40 -0400 |
| commit | b4673afa8c2225b621e4aa668630fe17490f85e1 (patch) | |
| tree | a1352b0149c38470af0fc55ea92a11f0596d3d0e /Project-Unite/Views | |
| parent | 364dff1fb6defbb4879b39b2c61b9eddac27cfb9 (diff) | |
| download | project-unite-b4673afa8c2225b621e4aa668630fe17490f85e1.tar.gz project-unite-b4673afa8c2225b621e4aa668630fe17490f85e1.tar.bz2 project-unite-b4673afa8c2225b621e4aa668630fe17490f85e1.zip | |
I win.
Diffstat (limited to 'Project-Unite/Views')
| -rw-r--r-- | Project-Unite/Views/Contests/CreateContest.cshtml | 6 | ||||
| -rw-r--r-- | Project-Unite/Views/Shared/_Layout.cshtml | 2 |
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 • ShiftOS</title> @Styles.Render("~/Content/css") |
