<commit_before>﻿@using ExpenseManager.Entity.Enums
@model IEnumerable<ExpenseManager.Web.Models.Category.CategoryShowModel>

@{
    ViewBag.Title = "Categories Management";
}

<p>
    @Html.ActionLink("Create new", "Create",null,new {@class="btn btn-action"})
</p>
<div class="medium-margin-top">
    @if (Model.Count() != 0)
    {
        <ul class="nav nav-tabs" role="tablist" id="categoriesTab">
            <li class="active"><a href="#income" role="tab" data-toggle="tab" id="incomesTab">Incomes</a></li>
            <li><a href="#expense" role="tab" data-toggle="tab">Expenses</a></li>
            <li><a href="#incomeandexpense" role="tab" data-toggle="tab">Incomes and Expenses</a></li>
        </ul>

        <div class="tab-content">
            <div class="tab-pane fade in active" id="income">
                <table class="table-condensed table table-hover">
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.Name)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Description)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Type)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Icon)
                        </th>
                        <th></th>
                    </tr>
                    @foreach (var category in Model)
                    {
                        if (category.Type == CategoryType.Income)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(m => category.Name)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Description)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Type)
                                </td>
                                <td>
                                    <span class="glyphicon @category.Icon"></span>
                                </td>
                                <td>
                                    <div class="dropdown">
                                        <a href="#" class="dropdown-toggle btn btn-primary" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></a>
                                        <ul class="dropdown-menu">
                                            <li>
                                                @Html.ActionLink("Edit", "Edit", new {Guid = category.Guid})
                                            </li>
                                            <li>
                                                @Html.ActionLink("Delete", "Delete", new {Guid = category.Guid}, new {onclick = "return confirm('Are you sure you wish to delete this category?');"})
                                            </li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                        }
                    }
                </table>
            </div>

            <div class="tab-pane fade" id="expense">
                <table class="table-condensed table table-hover">
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.Name)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Description)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Type)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Icon)
                        </th>
                        <th></th>
                    </tr>
                    @foreach (var category in Model)
                    {
                        if (category.Type == CategoryType.Expense)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(m => category.Name)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Description)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Type)
                                </td>
                                <td>
                                    <span class="glyphicon @category.Icon"></span>
                                </td>
                                <td>
                                    <div class="dropdown">
                                        <a href="#" class="dropdown-toggle btn btn-primary" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></a>
                                        <ul class="dropdown-menu">
                                            <li>
                                                @Html.ActionLink("Edit", "Edit", new {Guid = category.Guid})
                                            </li>
                                            <li>
                                                @Html.ActionLink("Delete", "Delete", new {Guid = category.Guid}, new {onclick = "return confirm('Are you sure you wish to delete this category?');"})
                                            </li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                        }
                    }
                </table>
            </div>

            <div class="tab-pane fade" id="incomeandexpense">
                <table class="table-condensed table table-hover">
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.Name)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Description)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Type)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Icon)
                        </th>
                        <th></th>
                    </tr>
                    @foreach (var category in Model)
                    {
                        if (category.Type == CategoryType.IncomeAndExpense)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(m => category.Name)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Description)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Type)
                                </td>
                                <td>
                                    <span class="glyphicon @category.Icon"></span>
                                </td>
                                <td>
                                    <div class="dropdown">
                                        <a href="#" class="dropdown-toggle btn btn-primary" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></a>
                                        <ul class="dropdown-menu">
                                            <li>
                                                @Html.ActionLink("Edit", "Edit", new {Guid = category.Guid})
                                            </li>
                                            <li>
                                                @Html.ActionLink("Delete", "Delete", new {Guid = category.Guid}, new {onclick = "return confirm('Are you sure you wish to delete this category?');"})<commit_msg># deleted Type from Categories table<commit_after>﻿@using ExpenseManager.Entity.Enums
@model IEnumerable<ExpenseManager.Web.Models.Category.CategoryShowModel>

@{
    ViewBag.Title = "Categories Management";
}

<p>
    @Html.ActionLink("Create new", "Create",null,new {@class="btn btn-action"})
</p>
<div class="medium-margin-top">
    @if (Model.Count() != 0)
    {
        <ul class="nav nav-tabs" role="tablist" id="categoriesTab">
            <li class="active"><a href="#income" role="tab" data-toggle="tab" id="incomesTab">Incomes</a></li>
            <li><a href="#expense" role="tab" data-toggle="tab">Expenses</a></li>
            <li><a href="#incomeandexpense" role="tab" data-toggle="tab">Incomes and Expenses</a></li>
        </ul>

        <div class="tab-content">
            <div class="tab-pane fade in active" id="income">
                <table class="table-condensed table table-hover">
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.Name)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Description)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Icon)
                        </th>
                        <th></th>
                    </tr>
                    @foreach (var category in Model)
                    {
                        if (category.Type == CategoryType.Income)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(m => category.Name)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Description)
                                </td>
                                <td>
                                    <span class="glyphicon @category.Icon"></span>
                                </td>
                                <td>
                                    <div class="dropdown">
                                        <a href="#" class="dropdown-toggle btn btn-primary" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></a>
                                        <ul class="dropdown-menu">
                                            <li>
                                                @Html.ActionLink("Edit", "Edit", new {Guid = category.Guid})
                                            </li>
                                            <li>
                                                @Html.ActionLink("Delete", "Delete", new {Guid = category.Guid}, new {onclick = "return confirm('Are you sure you wish to delete this category?');"})
                                            </li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                        }
                    }
                </table>
            </div>

            <div class="tab-pane fade" id="expense">
                <table class="table-condensed table table-hover">
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.Name)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Description)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Icon)
                        </th>
                        <th></th>
                    </tr>
                    @foreach (var category in Model)
                    {
                        if (category.Type == CategoryType.Expense)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(m => category.Name)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Description)
                                </td>
                                <td>
                                    <span class="glyphicon @category.Icon"></span>
                                </td>
                                <td>
                                    <div class="dropdown">
                                        <a href="#" class="dropdown-toggle btn btn-primary" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></a>
                                        <ul class="dropdown-menu">
                                            <li>
                                                @Html.ActionLink("Edit", "Edit", new {Guid = category.Guid})
                                            </li>
                                            <li>
                                                @Html.ActionLink("Delete", "Delete", new {Guid = category.Guid}, new {onclick = "return confirm('Are you sure you wish to delete this category?');"})
                                            </li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                        }
                    }
                </table>
            </div>

            <div class="tab-pane fade" id="incomeandexpense">
                <table class="table-condensed table table-hover">
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.Name)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Description)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Icon)
                        </th>
                        <th></th>
                    </tr>
                    @foreach (var category in Model)
                    {
                        if (category.Type == CategoryType.IncomeAndExpense)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(m => category.Name)
                                </td>
                                <td>
                                    @Html.DisplayFor(m => category.Description)
                                </td>
                                <td>
                                    <span class="glyphicon @category.Icon"></span>
                                </td>
                                <td>
                                    <div class="dropdown">
                                        <a href="#" class="dropdown-toggle btn btn-primary" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></a>
                                        <ul class="dropdown-menu">
                                            <li>
                                                @Html.ActionLink("Edit", "Edit", new {Guid = category.Guid})
                                            </li>
                                            <li>
                                                @Html.ActionLink("Delete", "Delete", new {Guid = category.Guid}, new {onclick = "return confirm('Are you sure you wish to delete this category?');"})
{'fraction_non_alphanumeric': 0.10718703612073231, 'fraction_numerical': 0.00012370113805047008, 'mean_word_length': 0.7117298327334322, 'pattern_counts': {'":': 0, '<': 267, '<?xml version=': 0, '>': 303, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 133, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7057905', 'n_tokens_mistral': 3423, 'n_tokens_neox': 3219, 'n_words': 662}