<commit_before>﻿@model IEnumerable<Purchasing.Core.Domain.Workgroup>

@{
    ViewBag.Title = "Select Workgroup for Order";
}

@section AdditionalScripts
{
    <script type="text/javascript">
        $(function () {
            $(".workgroup").hover(
                function () {
                    $(this).addClass("ui-state-hover");
                    $(this).removeClass("ui-state-active");
                },
                function () {
                    $(this).removeClass("ui-state-hover");
                    $(this).addClass("ui-state-active");
                });
        });
    </script>

    <style type="text/css">
        #workgroup-container
        {
            margin: 1em;
        }
    </style>
}

@if (Model.Count() == 0)
{
    <div class="ui-state-highlight">
        You are not a requester in any workgroup.  You do not have permissions to place orders, please contact your department administrator for help with permissions.
    </div>
}
else
{
    <div id="workgroup-container">
        @foreach (var workgroup in Model)
        {
            <a href="@Url.Action("Request", "OrderMockup", new {id=workgroup.Id})">
            <div class="workgroup ui-state-active ui-corner-all" style="padding: 1em;">
                <div class="workgroup-name">@workgroup.Name</div>
                <div class="workgroup-departments">@string.Join(",", workgroup.Organizations.Select(a=>a.Name))</div>
            </div>
            </a>
        }
    </div>
}<commit_msg>updated the select workgroup page to do redirect to order<commit_after>﻿@model IEnumerable<Purchasing.Core.Domain.Workgroup>

@{
    ViewBag.Title = "Select Workgroup for Order";
}

@section AdditionalScripts
{
    <script type="text/javascript">
        $(function () {
            $(".workgroup").hover(
                function () {
                    $(this).addClass("ui-state-hover");
                    $(this).removeClass("ui-state-active");
                },
                function () {
                    $(this).removeClass("ui-state-hover");
                    $(this).addClass("ui-state-active");
                });
        });
    </script>

    <style type="text/css">
        #workgroup-container
        {
            margin: 1em;
        }
    </style>
}

@if (Model.Count() == 0)
{
    <div class="ui-state-highlight">
        You are not a requester in any workgroup.  You do not have permissions to place orders, please contact your department administrator for help with permissions.
    </div>
}
else
{
    <div id="workgroup-container">
        @foreach (var workgroup in Model)
        {
            <a href="@Url.Action("Request", "Order", new {id=workgroup.Id})">
            <div class="workgroup ui-state-active ui-corner-all" style="padding: 1em;">
                <div class="workgroup-name">@workgroup.Name</div>
                <div class="workgroup-departments">@string.Join(",", workgroup.Organizations.Select(a=>a.Name))</div>
            </div>
            </a>
        }
    </div>
}
{'fraction_non_alphanumeric': 0.15165562913907285, 'fraction_numerical': 0.001986754966887417, 'mean_word_length': 1.9048076923076922, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, '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': '1209345', 'n_tokens_mistral': 875, 'n_tokens_neox': 839, 'n_words': 177}