<commit_before>﻿@model TwitterQuiz.ViewModels.Quiz.NewQuizViewModel

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_MasterLayout.cshtml";
}

<h2>Create a new Quiz</h2>
@using(Html.BeginForm("New", "Quiz", FormMethod.Post, new { @class = "form-horizontal", id = "new-quiz"}))
{
    <div class="form-group">
        @Html.LabelFor(x => x.Name, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.Name, new { @class = "form-control", placeholder = "Name" })
        </div>
        @Html.ValidationMessageFor(x => x.Name)
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.Description, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.Description, new { @class = "form-control", placeholder = "Description" })
        </div>
        @Html.ValidationMessageFor(x => x.Description)
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.StartDate, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            @Html.EditorFor(x => x.StartDate, new { @class = "form-control", placeholder = "Time to start the quiz" })
        </div>
        @Html.ValidationMessageFor(x => x.StartDate)
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.FrequencyOfQuestions, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.FrequencyOfQuestions, new { @class = "form-control", placeholder = "Time between sending out questions in minutes" })
        </div>
        @Html.ValidationMessageFor(x => x.FrequencyOfQuestions)
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.FrequencyOfAnswers, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.FrequencyOfAnswers, new { @class = "form-control", placeholder = "Time between sending out answers in minutes" })
        </div>
        @Html.ValidationMessageFor(x => x.FrequencyOfAnswers)
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">Create</button>
        </div>
    </div>
}<commit_msg>form layout<commit_after>﻿@model TwitterQuiz.ViewModels.Quiz.NewQuizViewModel

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_MasterLayout.cshtml";
}

<div class="row">
    <div class="col-sm-10 col-sm-offset-1 col-md-6 col-md-offset-3">
        <h2>Create a new Quiz</h2>
        @using (Html.BeginForm("New", "Quiz", FormMethod.Post, new { @class = "form", id = "new-quiz" }))
        {
            <div class="form-group">
                @Html.LabelFor(x => x.Name, new { @class = "control-label" })
                
                    @Html.TextBoxFor(x => x.Name, new { @class = "form-control", placeholder = "Name" })
                @Html.ValidationMessageFor(x => x.Name)
            </div>
            <div class="form-group">
                @Html.LabelFor(x => x.Description, new { @class = "control-label" })
                
                    @Html.TextBoxFor(x => x.Description, new { @class = "form-control", placeholder = "Description" })
                @Html.ValidationMessageFor(x => x.Description)
            </div>
            <div class="form-group">
                @Html.LabelFor(x => x.StartDate, new { @class = "control-label" })
                
                    @Html.EditorFor(x => x.StartDate, new { @class = "form-control", placeholder = "Time to start the quiz" })
                @Html.ValidationMessageFor(x => x.StartDate)
            </div>
            <div class="form-group">
                @Html.LabelFor(x => x.FrequencyOfQuestions, new { @class = "control-label" })
                
                    @Html.TextBoxFor(x => x.FrequencyOfQuestions, new { @class = "form-control", placeholder = "Time between sending out questions in minutes" })
                @Html.ValidationMessageFor(x => x.FrequencyOfQuestions)
            </div>
            <div class="form-group">
                @Html.LabelFor(x => x.FrequencyOfAnswers, new { @class = "control-label" })
                
                    @Html.TextBoxFor(x => x.FrequencyOfAnswers, new { @class = "form-control", placeholder = "Time between sending out answers in minutes" })
                @Html.ValidationMessageFor(x => x.FrequencyOfAnswers)
            </div>
            <div class="form-group">
                    <button type="submit" class="btn btn-default">Create</button>
            </div>
        }
    </div>
</div>
{'fraction_non_alphanumeric': 0.1633535004321521, 'fraction_numerical': 0.0058340535868625755, 'mean_word_length': 2.2012448132780085, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 81, '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': '5548094', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1408, 'n_words': 287}