<commit_before>﻿@model JoinRpg.Web.Models.Plot.AddPlotElementViewModel

@{
    ViewBag.Title = "Добавить вводную";
}

<h2>@ViewBag.Title</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Cюжет @Html.ActionLink(Model.PlotFolderName, "Edit", "Plot", new {Model.PlotFolderId, Model.ProjectId}, null)</h4>
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(p => p.ProjectId)
        @Html.HiddenFor(p => p.PlotFolderId)

        <div class="form-group">
            @Html.LabelFor(model => model.Content, htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Content, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.Content, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.TodoField, htmlAttributes: new {@class = "control-label col-md-2"})
            <div class="col-md-10">
                @Html.EditorFor(model => model.TodoField, new {htmlAttributes = new {@class = "form-control"}})
                @Html.ValidationMessageFor(model => model.TodoField, "", new {@class = "text-danger"})
            </div>
        </div>

        @Html.Partial("AllWorldObjectsPartial", Model)

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Добавить вводную" class="btn btn-default" />
            </div>
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}<commit_msg>Added help text to create element<commit_after>﻿@model JoinRpg.Web.Models.Plot.AddPlotElementViewModel

@{
    ViewBag.Title = "Добавить вводную";
}

<h2>@ViewBag.Title</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Cюжет @Html.ActionLink(Model.PlotFolderName, "Edit", "Plot", new {Model.PlotFolderId, Model.ProjectId}, null)</h4>
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(p => p.ProjectId)
        @Html.HiddenFor(p => p.PlotFolderId)

        <div class="form-group">
            @Html.LabelFor(model => model.Content, htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Content, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.Content, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.TodoField, htmlAttributes: new {@class = "control-label col-md-2"})
            <div class="col-md-10">
                @Html.EditorFor(model => model.TodoField, new {htmlAttributes = new {@class = "form-control"}})
                @Html.ValidationMessageFor(model => model.TodoField, "", new {@class = "text-danger"})
            </div>
        </div>

        <p>Тех, кому предназначена эта вводная, можно добавить сейчас или позже.</p>

        @Html.Partial("AllWorldObjectsPartial", Model)

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Добавить вводную" class="btn btn-default" />
            </div>
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
{'fraction_non_alphanumeric': 0.16786305908337934, 'fraction_numerical': 0.00717835450027609, 'mean_word_length': 2.453765490943756, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 61, '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': '116426', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1165, 'n_words': 209}