<commit_before>﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Commencement.Controllers.ViewModels.AdminPetitionsViewModel>" %>
<%@ Import Namespace="Commencement.Controllers.Helpers" %>
<%@ Import Namespace="Commencement.Controllers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Commencement | Registration Petitions
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <ul class="btn">
        <li><%= Html.ActionLink<PetitionController>(a=>a.Index(), "Back to Petitions") %></li>
    </ul>

    <h2>Registration Petitions</h2>

    <%
        Html.Grid(Model.PendingRegistrationPetitions.OrderByDescending(a=>a.DateSubmitted))
            .Name("Petitions")
            .Sortable()
            .CellAction(cell=>
                            {
                                if (cell.Column.Name == "Ceremony.DateTime")
                                {
                                    cell.Text = cell.DataItem.Ceremony.DateTime.ToString("g");
                                }
                            })
            .Columns(col =>
                         {
                             col.Add(a =>{ %>
                                        <%--<%= Html.ActionLink<PetitionController>(b=>b.RegistrationPetition(a.Id), "Select") %>--%>
                                        <a href="<%: Url.Action("RegistrationPetition", "Petition", new {id = a.Id}) %>">
                                            <img src="<%: Url.Content("~/Images/to-do-list_checked1_small.gif") %>" />
                                        </a>
                                         <% });
                             col.Bound(a => a.Registration.Student.LastName);
                             col.Bound(a => a.Registration.Student.FirstName);
                             col.Bound(a => a.MajorCode.Name).Title("Major");
                             col.Bound(a => a.MajorCode.College.Id).Title("College");
                             col.Bound(a => a.Ceremony.DateTime).Title("Ceremony");
                             col.Bound(a => a.NumberTickets);
                             col.Bound(a => a.DateSubmitted);
                         })
            .Render();<commit_msg>Added the units to the table so users don't have to click in to find out this info.<commit_after>﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Commencement.Controllers.ViewModels.AdminPetitionsViewModel>" %>
<%@ Import Namespace="Commencement.Controllers.Helpers" %>
<%@ Import Namespace="Commencement.Controllers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Commencement | Registration Petitions
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <ul class="btn">
        <li><%= Html.ActionLink<PetitionController>(a=>a.Index(), "Back to Petitions") %></li>
    </ul>

    <h2>Registration Petitions</h2>

    <%
        Html.Grid(Model.PendingRegistrationPetitions.OrderByDescending(a=>a.DateSubmitted))
            .Name("Petitions")
            .Sortable()
            .CellAction(cell=>
                            {
                                if (cell.Column.Name == "Ceremony.DateTime")
                                {
                                    cell.Text = cell.DataItem.Ceremony.DateTime.ToString("g");
                                }
                            })
            .Columns(col =>
                         {
                             col.Add(a =>{ %>
                                        <%--<%= Html.ActionLink<PetitionController>(b=>b.RegistrationPetition(a.Id), "Select") %>--%>
                                        <a href="<%: Url.Action("RegistrationPetition", "Petition", new {id = a.Id}) %>">
                                            <img src="<%: Url.Content("~/Images/to-do-list_checked1_small.gif") %>" />
                                        </a>
                                         <% });
                             col.Bound(a => a.Registration.Student.LastName);
                             col.Bound(a => a.Registration.Student.FirstName);
                             col.Bound(a => a.Registration.Student.EarnedUnits).Title("Units");
                             col.Bound(a => a.MajorCode.Name).Title("Major");
                             col.Bound(a => a.MajorCode.College.Id).Title("College");
                             col.Bound(a => a.Ceremony.DateTime).Title("Ceremony");
                             col.Bound(a => a.NumberTickets);
                             col.Bound(a => a.DateSubmitted);
                         })
            .Render();
{'fraction_non_alphanumeric': 0.143687707641196, 'fraction_numerical': 0.0020764119601328905, 'mean_word_length': 1.4476626016260163, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 78, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7316499', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1210, 'n_words': 162}