<!DOCTYPE html>
<html ng-app="folderPluginContent">
<head lang="en">
    <title>content</title>
    <meta charset="UTF-8">
    <!-- CSS -->
    <link href="../../../../styles/helper.css" rel="stylesheet">
    <link href="../../../../styles/siteIcons.css" rel="stylesheet">
    <!-- JS -->
    <script src="../../../../scripts/buildfire.js"></script>
    <script src="../../../../scripts/angular/angular.min.js"></script>
    <script src="../../../../scripts/tinymce/tinymce.min.js"></script>
    <script src="../../../../scripts/tinymce/ui-tinymce.js"></script>
    <script src="../../../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script src="../../../../scripts/sortable.min.js"></script>
    <script src="../../../../scripts/buildfire/components/carousel/carousel.js"></script>
    <script src="../../../../scripts/buildfire/components/notifications/notifications.js"></script>
    <script src="../../../../scripts/buildfire/components/pluginInstance/sortableList.js"></script>
    <script src="papaparse.min.js"></script>
    <script src="../app.services.js"></script>
    <script src="app.js"></script>
    <script src="content.controller.js"></script>
</head>
<body ng-controller="folderPluginCtrl" ng-cloak ng-show="datastoreInitialized">


    <div ng-form="frmMain" style="margin-top:20px">
        <div id="carousel"></div>

        <div class="item clearfix row">
            <div class="labels col-md-3 padding-right-zero pull-left">
                <span>Text</span>
            </div>
        </div>
        <hr class="none">
        <div class="item clearfix row">
            <div class="main col-md-12 pull-left">

                <textarea id="text1" ui-tinymce="editorOptions1" class="form-control" rows="5" width="100%" ng-model="data.content.text1"></textarea>
                <textarea id="text" ui-tinymce="editorOptions" class="form-control" rows="5" width="100%" ng-model="data.content.text"></textarea>
            </div>
        </div>
        <hr class="none">
        <div id="plugins"></div>
    </div>
    <div class="bullkadd">
        <h3>Add Results (CSV File)</h3>
        <input type="text" ng-model="raceName"/>
        <input type="file" id="csv-file" name="files" />
        <button ng-click="bulkadd(); search('/*')">Save</button><br />
        <h3>Results Page</h3>
        <button ng-click="back()">Back</button>{{page+1}}<button ng-click="next()"ng-init="page = 0">Next</button>

        <div class="loaded">
            <table id="loaded">
                <thead>
                    <tr>
                        <th>Place</th>
                        <th>Bib   </th>
                        <th>Name</th>
                        <th>Time  </th>
                        <th>A/G Place  </th>
                        <th>email</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>

                    <tr ng-repeat="x in exLib" ng-click="activeEx(x)">
                        <td class="tableSmall">{{x.data.Place}}</td>
                        <td class="tableSmall"><strong>{{x.data['Bib No']}}</strong></td>
                        <td class="tableSmall"><strong>{{x.data.Name}}</strong></td>
                        <td class="tableSmall"><strong>{{x.data['Chip Time']}}</strong></td>
                        <td class="tableSmall"><strong>{{x.data['Age Group Place']}}</strong></td>
                        <td class="tableSmall"><strong>{{x.data['email Address']}}</strong></td>
                        <td><button ng-click="delete(x)">Delete</button></td>
                    </tr>
                </tbody>
            </table>
            <style>
                .loaded{
                    float:left;
                    width:100%;
                }
                #loaded{
                    
                    width:100%;
                }
            </style>
        </div>
    </div>
</body>
</html>
