@using Petwork.Web.Models.Contest
@model ContestForm
@{
ViewBag.Title = "Contest Create";
Layout = "~/Views/Shared/_LayoutUserThreeBars.cshtml";
Account account = ViewBag.Account;
}
@using (@Html.BeginForm("SaveContest", "Contest", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
- @Resources.Contest.Name
@Html.TextBoxFor(x => x.Name, new { Class = "w400p" })
@Html.ValidationMessageFor(x => x.Name)
- @Resources.Contest.From
@Html.TextBoxFor(x => x.Start, new { Class = "w120p mr10p", id = "Start" })
@Resources.Contest.Until
@Html.TextBoxFor(x => x.End, new { Class = "w120p mr10p", id = "End" })
@Html.ValidationMessageFor(x => x.Start)
@Html.ValidationMessageFor(x => x.End)
-
@Html.RadioButtonFor(x => x.Type, ContestType.Public, new { name = "Type", id = "grPublic" })
-
@Html.RadioButtonFor(x => x.Type, ContestType.Closed, new { name = "Type", id = "grClosed" })
-
@Html.RadioButtonFor(x => x.Type, ContestType.Private, new { name = "Type", id = "grPrivate" })
@Html.ValidationMessageFor(x => x.Type)
- @Resources.Contest.Description
@Html.TextAreaFor(x => x.Description)
@Html.ValidationMessageFor(x => x.Description)
@if (account.Type != AccountType.Personal)
{
- @Resources.Contest.Rules
@Html.TextAreaFor(x => x.Rules)
@Html.ValidationMessageFor(x => x.Rules)
- @Resources.Contest.Prize
if (account.Type == AccountType.Organization)
{
- @Resources.Contest.Medal
}
else
{
- @Resources.Contest.Product
@Html.TextBoxFor(x => x.Product, new { value = "Enter Product SKU" })
- @Resources.Contest.Other
@Html.TextAreaFor(x => x.Other, new { id = "other" })
@Html.ValidationMessageFor(x => x.Other)
}
}
-
- @Resources.Contest.Invitations
-
}
@* javascript ("~/Scripts/p4p.widgets.users_select.js") *@
@* javascript ("~/Scripts/jquery-ui-timepicker-addon.js") *@