<div ng-controller="Wizdom365LightningPagesAdministrationController as vm" ng-show="vm.dataReady">
    <h3>Administration</h3>
    <table class="table table-striped" ng-show="vm.pages && vm.pages.length">
        <thead>
        <tr>
            <th>{{"Url" | translate}} </th>
            <th>{{"Culture" | translate}}</th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="page in vm.pages">
            <td>{{page.url}}</td>
            <td>{{page.culture}}</td>
            <td class="text-right nowrap">
                <button class="btn btn-danger" ng-click="vm.deletePage(page)">{{"Delete" | translate}}</button>
                <button class="btn btn-primary" ng-click="vm.addEditPage(page)">{{"Edit" | translate}}</button>
                <!--<button class="btn btn-default">{{"Set as welcomepage" | translate}}</button>-->
            </td>
        </tr>
        </tbody>
    </table>

    <Button class="btn btn-primary" ng-click="vm.addEditPage()">{{"Add new lightning page" | translate}}</Button>
</div>
