<commit_before>﻿<link href="/App_Plugins/Merchello/Common/Css/merchello.css" rel="stylesheet">

<div ng-controller="Merchello.Dashboards.Customer.ListController"
     ng-show="loaded">

    <umb-panel>

        <umb-header>

            <div class="span4">
                <div class="umb-headline-editor-wrapper">
                    <h1 class="umb-headline">Customers</h1>
                </div>

                <!-- Tabs for All Customers, Accepts Marketing, and Repeat Customers -->
                <ul class="nav nav-tabs umb-nav-tabs span12">
                    <li class="ng-scope active">
                        <a href="#tab6" data-toggle="tab" class="ng-binding">All Customers</a>
                    </li>
                    <!-- COMMENT: Removed For Merchello v1.0 -->
                    <!--
                    <li class="ng-scope">
                    <a href="#tab0" data-toggle="tab" class="ng-binding">Accepts Marketing</a>
                    </!--li>
                    <li class="ng-scope">
                        <a href="#tab0" data-toggle="tab" class="ng-binding">Repeat Customers</a>
                    </li>
                    -->
                </ul>
            </div>


            <div class="span8">
                <div class="btn-toolbar pull-right umb-btn-toolbar">

                    <!-- New Order Button -->
                    <div class="btn-group">
                        <!-- ACTION: New Customer -->
                        <a class="btn btn-success" data-ng-click="openNewCustomerDialog()">New Customer</a>
                    </div>

                </div>
            </div>

        </umb-header>

        <merchello-panel>

            <div class="merchello-pane">
                <form class="form-horizontal row-fluid">
                    <!-- Number of Customer Per Page -->
                    <div class="controls pull-right" data-ng-show="customers.length > 0">
                        <span style="line-height: 30px; margin-left: -2em;">Show:&nbsp;</span>
                        <select name="limitSelect" class="form-control span9 col-xs-9" data-ng-model="limitAmount" data-ng-change="limitChanged(limitAmount)">
                            <option value="10">10</option>
                            <option value="25">25</option>
                            <option value="50">50</option>
                            <option value="100">100</option>
                        </select>
                    </div>
                    <!-- Customer Filters -->
                    <div class="form-group control-group">
                        <label for="customerFilter" class="col-xs-2 control-label">Filter Customers:</label>
                        <div class="col-xs-10 controls">
                            <input id="customerFilter" class="form-control span6" name="customerFilter" data-ng-model="filterText" placeholder="Type a customer's name or email." />
                            <!-- ACTION: Customer Filter -->
                            <button type="submit" class="btn" data-ng-click="loadCustomers(filterText)">Filter</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="merchello-pane">
                <!-- Pagination -->
                <div class="pager" data-ng-show="maxPages > 1">
                    <button class="btn" data-ng-disabled="currentPage == 0" data-ng-click="changePage(currentPage - 1)">
                        <localize key="general_previous" />
                    </button>
                    {{currentPage+1}}/{{maxPages}}
                    <button class="btn" data-ng-disabled="currentPage >= maxPages - 1" data-ng-click="changePage(currentPage + 1)">
                        <localize key="general_next" />
                    </button>
                </div>
                <!-- Table of Customers -->
                <table class="table table-hover merchello-selectable-table">
                    <thead>
                        <tr>
                            <th><input type="checkbox" /></th> <!-- This needs to allow a user to select all orders and change the status, delete, etc -->
                            <th data-ng-click="changeSortOrder('firstName')" data-ng-class="{'sorted': sortProperty == 'firstName' ||  sortProperty == '-firstName'}">
                                <i data-ng-class="{'icon-navigation-up': sortProperty == 'firstName', 'icon-navigation-down': sortProperty == '-firstName'}"></i>
                                Name
                            </th>
                            <th data-ng-click="changeSortOrder('email')" data-ng-class="{'sorted': sortProperty == 'email' ||  sortProperty == '-email'}">
                                <i data-ng-class="{'icon-navigation-up': sortProperty == 'email', 'icon-navigation-down': sortProperty == '-email'}"></i>
                                Email Address
                            </th>
                            <th>Location</th>
                            <th>Last Order Total</th>
                        </tr>
                        <!-- Displays the bulk action button & dropdown menu when the checkbox is selected, which replaces normal heading TR -->
                        <tr data-ng-show="visible.bulkActionButton">
                            <th></th>
                            <th colspan="4">
                                <div class="btn-group">
                                    <!-- ACTION: Show Dropdown Menu -->
                                    <a href="#" class="btn dropdown-toggle" data-toggle="dropdown" data-ng-click="visible.bulkActionDropdown = !visible.bulkActionDropdown">Bulk Action (3 Variants) <i class="icon-navigation-down"></i></a>
                                    <ul class="dropdown-menu" data-ng-class="{'show': visible.bulkActionDropdown }">
                                        <!-- ACTION: Export Customers -->
                                        <li><a href="#">Export Customers</a></li>
                                    </ul>
                                </div>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr data-ng-repeat="customer in customers">
                            <td><input type="checkbox" /></td>
                            <!-- ACTION: Go To Customer View Page -->
                            <td><a href="#/merchello/merchello/CustomerView/{{customer.key}}">{{customer.firstName}} {{customer.lastName}}</a></td>
                            <td><a href="#/merchello/merchello/CustomerView/{{customer.key}}">{{customer.email}}</a></td>
                            <td>{{customer.primaryLocation()}}</td>
                            <td><localize key="merchelloGeneral_moneySymbol" />{{customer.lastOrderTotal}}</td>
                        </tr>
                    </tbody>
                </table>
                <!-- Pagination -->
                <div class="pager" data-ng-show="maxPages > 1">
                    <button class="btn" data-ng-disabled="currentPage == 0" data-ng-click="changePage(currentPage - 1)">
                        <localize key="general_previous" />
                    </button>
                    {{currentPage+1}}/{{maxPages}}
                    <button class="btn" data-ng-disabled="currentPage >= maxPages - 1" data-ng-click="changePage(currentPage + 1)">
                        <localize key="general_next" />
                    </button>
                </div>
            </div>
        </merchello-panel>

    </umb-panel>
</div><commit_msg>Cleaned up markup in prep for edits.<commit_after>﻿<link href="/App_Plugins/Merchello/Common/Css/merchello.css" rel="stylesheet">
<div ng-controller="Merchello.Dashboards.Customer.ListController" ng-show="loaded">
    <umb-panel>
        <umb-header>
            <div class="span4">
                <div class="umb-headline-editor-wrapper">
                    <h1 class="umb-headline">Customers</h1>
                </div>
                <!-- Tabs for All Customers, Accepts Marketing, and Repeat Customers -->
                <ul class="nav nav-tabs umb-nav-tabs span12">
                    <li class="ng-scope active">
                        <a href="#tab6" data-toggle="tab" class="ng-binding">All Customers</a>
                    </li>
                </ul>
            </div>
            <div class="span8">
                <div class="btn-toolbar pull-right umb-btn-toolbar">
                    <!-- New Order Button -->
                    <div class="btn-group">
                        <!-- ACTION: New Customer -->
                        <a class="btn btn-success" data-ng-click="openNewCustomerDialog()">New Customer</a>
                    </div>
                </div>
            </div>
        </umb-header>
        <merchello-panel>
            <div class="merchello-pane">
                <form class="form-horizontal row-fluid">
                    <!-- Number of Customer Per Page -->
                    <div class="controls pull-right" data-ng-show="customers.length > 0">
                        <span style="line-height: 30px; margin-left: -2em;">Show:&nbsp;</span>
                        <select name="limitSelect" class="form-control span9 col-xs-9" data-ng-model="limitAmount" data-ng-change="limitChanged(limitAmount)">
                            <option value="10">10</option>
                            <option value="25">25</option>
                            <option value="50">50</option>
                            <option value="100">100</option>
                        </select>
                    </div>
                    <!-- Customer Filters -->
                    <div class="form-group control-group">
                        <label for="customerFilter" class="col-xs-2 control-label">Filter Customers:</label>
                        <div class="col-xs-10 controls">
                            <input id="customerFilter" class="form-control span6" name="customerFilter" data-ng-model="filterText" placeholder="Type a customer's name or email." />
                            <!-- ACTION: Customer Filter -->
                            <button type="submit" class="btn" data-ng-click="loadCustomers(filterText)">Filter</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="merchello-pane">
                <!-- Pagination -->
                <div class="pager" data-ng-show="maxPages > 1">
                    <!-- ACTION: Previous Page -->
                    <button class="btn" data-ng-disabled="currentPage == 0" data-ng-click="changePage(currentPage - 1)"><localize key="general_previous" /></button>
                    {{currentPage+1}}/{{maxPages}}
                    <!-- ACTION: Next Page -->
                    <button class="btn" data-ng-disabled="currentPage >= maxPages - 1" data-ng-click="changePage(currentPage + 1)"><localize key="general_next" /></button>
                </div>
                <!-- Table of Customers -->
                <table class="table table-hover merchello-selectable-table">
                    <thead>
                        <tr>
                            <th><input type="checkbox" /></th> <!-- This needs to allow a user to select all orders and change the status, delete, etc -->
                            <th data-ng-click="changeSortOrder('firstName')" data-ng-class="{'sorted': sortProperty == 'firstName' ||  sortProperty == '-firstName'}">
                                <i data-ng-class="{'icon-navigation-up': sortProperty == 'firstName', 'icon-navigation-down': sortProperty == '-firstName'}"></i>
                                Name
                            </th>
                            <th data-ng-click="changeSortOrder('email')" data-ng-class="{'sorted': sortProperty == 'email' ||  sortProperty == '-email'}">
                                <i data-ng-class="{'icon-navigation-up': sortProperty == 'email', 'icon-navigation-down': sortProperty == '-email'}"></i>
                                Email Address
                            </th>
                            <th>Location</th>
                            <th>Last Order Total</th>
                        </tr>
                        <!-- Displays the bulk action button & dropdown menu when the checkbox is selected, which replaces normal heading TR -->
                        <tr data-ng-show="visible.bulkActionButton">
                            <th></th>
                            <th colspan="4">
                                <div class="btn-group">
                                    <!-- ACTION: Show Dropdown Menu -->
                                    <a href="#" class="btn dropdown-toggle" data-toggle="dropdown" data-ng-click="visible.bulkActionDropdown = !visible.bulkActionDropdown">Bulk Action (3 Variants) <i class="icon-navigation-down"></i></a>
                                    <ul class="dropdown-menu" data-ng-class="{'show': visible.bulkActionDropdown }">
                                        <!-- ACTION: Export Customers -->
                                        <li><a href="#">Export Customers</a></li>
                                    </ul>
                                </div>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr data-ng-repeat="customer in customers">
                            <td><input type="checkbox" /></td>
                            <!-- ACTION: Go To Customer View Page -->
                            <td><a href="#/merchello/merchello/CustomerView/{{customer.key}}">{{customer.firstName}} {{customer.lastName}}</a></td>
                            <td><a href="#/merchello/merchello/CustomerView/{{customer.key}}">{{customer.email}}</a></td>
                            <td>{{customer.primaryLocation()}}</td>
                            <td><localize key="merchelloGeneral_moneySymbol" />{{customer.lastOrderTotal}}</td>
                        </tr>
                    </tbody>
                </table>
                <!-- Pagination -->
                <div class="pager" data-ng-show="maxPages > 1">
                    <!-- ACTION: Previous Page -->
                    <button class="btn" data-ng-disabled="currentPage == 0" data-ng-click="changePage(currentPage - 1)"><localize key="general_previous" /></button>
                    {{currentPage+1}}/{{maxPages}}
                    <!-- ACTION: Next Page -->
                    <button class="btn" data-ng-disabled="currentPage >= maxPages - 1" data-ng-click="changePage(currentPage + 1)"><localize key="general_next" /></button>
                </div>
            </div>
        </merchello-panel>
    </umb-panel>
</div>
{'fraction_non_alphanumeric': 0.1453960163637583, 'fraction_numerical': 0.006840587485748776, 'mean_word_length': 1.2885205647636586, 'pattern_counts': {'":': 0, '<': 311, '<?xml version=': 0, '>': 321, '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': '5455173', 'n_tokens_mistral': 3828, 'n_tokens_neox': 3522, 'n_words': 718}