<commit_before>﻿@model Coop_Listing_Site.Models.ViewModels.StudentUpdateModel

@{
    ViewBag.Title = "Update Your Student Record";

    SelectList majorSelectList = ViewBag.Majors;
    SelectList gpaSelectList = ViewBag.GPAs;
}

<h2>@Html.Raw(ViewBag.Title)</h2>

@if (ViewBag.NoMatch != null)
{
    <h3>@Html.Raw(ViewBag.NoMatch)</h3>
}


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.UserId)
        

        <div id="allOther">

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

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

        </div>

        <div id="passRequested">

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

        </div>


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

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

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

        <div class="form-group" id="buttons">

            <div class="col-md-offset-2 col-md-5">
                <input type="submit" value="Save" class="btn btn-default" /> 
            </div>

            <div class="col-md-offset-2 col-md-5">
                <input type="button" onclick="document.location.href='@Url.Action("Index","ControlPanel")';" value="Cancel" class="btn btn-default" />
            </div>
            </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
   
    @Scripts.Render("~/bundles/jqueryval")
    <script>
        $('#allOther').show();
        $('#passRequested').show();<commit_msg>Resending actual stuff I want merged<commit_after>﻿@model Coop_Listing_Site.Models.ViewModels.StudentUpdateModel

@{
    ViewBag.Title = "Update Your Student Record";

    SelectList majorSelectList = ViewBag.Majors;
    SelectList gpaSelectList = ViewBag.GPAs;
}

<h2>@Html.Raw(ViewBag.Title)</h2>

@if (ViewBag.NoMatch != null)
{
    <h3>@Html.Raw(ViewBag.NoMatch)</h3>
}


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.UserId)
        

        <div id="allOther">

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

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

        </div>

        <div id="passRequested">

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

        </div>


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

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

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

        <div class="form-group" id="buttons">

            <div class="col-md-offset-2 col-md-5">
                <input type="submit" value="Save" class="btn btn-default" /> 
            </div>

            <div class="col-md-offset-2 col-md-5">
                <input type="button" onclick="document.location.href='@Url.Action("Index","ControlPanel")';" value="Cancel" class="btn btn-default" />
            </div>

        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
   
    @Scripts.Render("~/bundles/jqueryval")
    <script>
        $('#allOther').show();
        $('#passRequested').show();
{'fraction_non_alphanumeric': 0.15854224698235841, 'fraction_numerical': 0.0060352831940575676, 'mean_word_length': 1.8809762621196924, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 139, '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': '3022793', 'n_tokens_mistral': 2598, 'n_tokens_neox': 2472, 'n_words': 460}