<commit_before>﻿@using PhotoContest.Models.Enumerations
@model PhotoContest.App.Models.Contest.EditContestBindingModel
@using (Html.BeginForm("Manage", "Contests", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    @Html.AntiForgeryToken()
    <h1>Edit contest</h1>
    <hr />
        <div class="row">
            @if (Model.ParticipationType == ParticipationType.Closed)
            {
                @Html.ActionLink("Manage Candidates", "Candidates", "Contests", new { @class = "btn btn-success" })
            }
            @Html.ActionLink("Manage Participants", "Participants", "Contests", new { @class = "btn btn-success" })
            @if(Model.Status == ContestStatus.Active)
            {
                @Html.ActionLink("Pause Contest", "Pause", "Contests", new { contestId = Model.Id }, new { @class = "btn btn-warning" })
            }
            @if (Model.Status == ContestStatus.Inactive)
            {
                @Html.ActionLink("Restart Contest", "Restart", "Contests", new { contestId = Model.Id}, new { @class = "btn btn-warning" })
            }
            @Html.ActionLink("Dismiss Contest", "Dismiss", "Contests", new { contestId = Model.Id }, new { @class = "btn btn-danger" })
        </div>
        <br />
        @Html.LabelFor(m => m.Title, new { @class = "col-md-4 control-label" })
        <div class="col-md-8">
            @Html.TextBoxFor(m => m.Title, new { @class = "form-control" })
        </div>
        @Html.ValidationMessage("Title")

        @Html.LabelFor(m => m.Description, new { @class = "col-md-4 control-label" })
        <div class="col-md-8">
            @Html.TextAreaFor(m => m.Description, new { @class = "form-control" })<commit_msg>Fix - show Manage Jury button for VotingType.Closed contests.<commit_after>﻿@using PhotoContest.Models.Enumerations
@model PhotoContest.App.Models.Contest.EditContestBindingModel
@using (Html.BeginForm("Manage", "Contests", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    @Html.AntiForgeryToken()
    <h1>Edit contest</h1>
    <hr />
    <div class="row">
        @if (Model.ParticipationType == ParticipationType.Closed)
        {
            @Html.ActionLink("Manage Candidates", "Candidates", "Contests", new { @class = "btn btn-success" })
        }
        @Html.ActionLink("Manage Participants", "Participants", "Contests", new { @class = "btn btn-success" })
        @if (Model.VotingType == VotingType.Closed)
        {
            @Html.ActionLink("Manage Jury", "Jury", "Contests", new { @class = "btn btn-success" })
        }
    </div>
    <br/>
    <div class="row">
        @if (Model.Status == ContestStatus.Active)
        {
            @Html.ActionLink("Pause Contest", "Pause", "Contests", new { contestId = Model.Id }, new { @class = "btn btn-warning" })
        }
        @if (Model.Status == ContestStatus.Inactive)
        {
            @Html.ActionLink("Restart Contest", "Restart", "Contests", new { contestId = Model.Id }, new { @class = "btn btn-warning" })
        }
        @Html.ActionLink("Dismiss Contest", "Dismiss", "Contests", new { contestId = Model.Id }, new { @class = "btn btn-danger" })
    </div>
        <br />
        @Html.LabelFor(m => m.Title, new { @class = "col-md-4 control-label" })
        <div class="col-md-8">
            @Html.TextBoxFor(m => m.Title, new { @class = "form-control" })
        </div>
        @Html.ValidationMessage("Title")

        @Html.LabelFor(m => m.Description, new { @class = "col-md-4 control-label" })
        <div class="col-md-8">
            @Html.TextAreaFor(m => m.Description, new { @class = "form-control" })
{'fraction_non_alphanumeric': 0.1709190672153635, 'fraction_numerical': 0.0032921810699588477, 'mean_word_length': 2.5295256534365924, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3312496', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1136, 'n_words': 235}