<commit_before>﻿@model Auction.Web.Models.CreateAuctionModel

<h2>Create Auction</h2>
@if (TempData["Success"] != null)
{
    <div class="row">
        @TempData["Success"]
    </div>
}

@using (Html.BeginForm("CreateAuction", "Auction", FormMethod.Post))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <div class="row">
        @Html.LabelFor(m => m.Name)
        @Html.EditorFor(m => m.Name)
    </div>
    <div class="row">
        @Html.LabelFor(m => m.ItemTitle)
        @Html.EditorFor(m => m.ItemTitle)
    </div>
    <div class="row">
        @Html.LabelFor(m => m.DateOfAuction)
        @Html.TextBoxFor(m => m.DateOfAuction, new { @Value = DateTime.Now, id = "datepicker" })
    </div>

    @Html.Submit()
}

@section scripts{
    <script>
        $(document).ready(function() { $("#datepicker").datepicker({ dateFormat: 'dd-mm-yy' }).Val() });
    </script>
}

<commit_msg>Some validations added<commit_after>﻿@model Auction.Web.Models.CreateAuctionModel

<h2>Create Auction</h2>
@if (TempData["Success"] != null)
{
    <div class="row">
        @TempData["Success"]
    </div>
}

@using (Html.BeginForm("CreateAuction", "Auction", FormMethod.Post))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <div class="row">
        @Html.LabelFor(m => m.Name)
        @Html.EditorFor(m => m.Name)
        @Html.ValidationMessageFor(m => m.Name)
    </div>
    <div class="row">
        @Html.LabelFor(m => m.ItemTitle)
        @Html.EditorFor(m => m.ItemTitle)
        @Html.ValidationMessageFor(m => m.ItemTitle)
    </div>
    <div class="row">
        @Html.LabelFor(m => m.DateOfAuction)
        @Html.TextBoxFor(m => m.DateOfAuction, new {@Value = DateTime.Now, id = "datepicker"})
        @Html.ValidationMessageFor(m => m.DateOfAuction)
    </div>

    @Html.Submit()
}

@section scripts{
    <script>
        $(document).ready(function() { $("#datepicker").datepicker({ dateFormat: 'dd-mm-yy' }).Val() });
    </script>
}


{'fraction_non_alphanumeric': 0.19127346524606798, 'fraction_numerical': 0.0020294266869609334, 'mean_word_length': 3.024489795918367, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 42, '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': '2493516', 'n_tokens_mistral': 702, 'n_tokens_neox': 687, 'n_words': 114}