2013-11-05 23:39:27 +00:00
|
|
|
<div class="loading" ng-show="loading">
|
|
|
|
<i class="fa fa-spinner fa-spin fa-3x"></i>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="loading" ng-show="!loading && !organization">
|
|
|
|
No matching organization found
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="org-admin container" ng-show="!loading && organization">
|
2013-12-02 22:19:19 +00:00
|
|
|
<div class="organization-header" organization="organization" clickable="true"></div>
|
2013-11-05 23:39:27 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- Side tabs -->
|
|
|
|
<div class="col-md-2">
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
2013-11-06 22:30:20 +00:00
|
|
|
<li class="active"><a href="javascript:void(0)" data-toggle="tab" data-target="#plan">Plan and Usage</a></li>
|
2013-11-27 07:29:31 +00:00
|
|
|
<li><a href="javascript:void(0)" data-toggle="tab" data-target="#logs" ng-click="loadLogs()">Usage Logs</a></li>
|
2013-11-07 00:06:59 +00:00
|
|
|
<li><a href="javascript:void(0)" data-toggle="tab" data-target="#members" ng-click="loadMembers()">Members</a></li>
|
2013-11-22 23:20:51 +00:00
|
|
|
<li><a href="javascript:void(0)" data-toggle="tab" data-target="#robots">Robot Accounts</a></li>
|
2013-11-15 23:17:12 +00:00
|
|
|
<li ng-show="hasPaidPlan"><a href="javascript:void(0)" data-toggle="tab" data-target="#billingoptions">Billing</a></li>
|
|
|
|
<li ng-show="hasPaidPlan"><a href="javascript:void(0)" data-toggle="tab" data-target="#billing" ng-click="loadInvoices()">Billing History</a></li>
|
2013-11-05 23:39:27 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Content -->
|
|
|
|
<div class="col-md-10">
|
2013-11-06 22:30:20 +00:00
|
|
|
<div class="tab-content">
|
2013-11-05 23:39:27 +00:00
|
|
|
<!-- Plans tab -->
|
2013-11-06 22:30:20 +00:00
|
|
|
<div id="plan" class="tab-pane active">
|
2013-11-15 23:17:12 +00:00
|
|
|
<div class="plan-manager" organization="orgname" plan-changed="planChanged(plan)"></div>
|
2013-11-05 23:39:27 +00:00
|
|
|
</div>
|
|
|
|
|
2013-11-22 23:20:51 +00:00
|
|
|
<!-- Robot accounts tab -->
|
|
|
|
<div id="robots" class="tab-pane">
|
|
|
|
<div class="robots-manager" organization="organization"></div>
|
|
|
|
</div>
|
|
|
|
|
2013-11-27 07:29:31 +00:00
|
|
|
<!-- Logs tab -->
|
|
|
|
<div id="logs" class="tab-pane">
|
|
|
|
<div class="logs-view" organization="organization" visible="logsShown"></div>
|
|
|
|
</div>
|
|
|
|
|
2013-11-15 23:17:12 +00:00
|
|
|
<!-- Billing Options tab -->
|
|
|
|
<div id="billingoptions" class="tab-pane">
|
2013-11-15 19:42:31 +00:00
|
|
|
<div class="billing-options" organization="organization"></div>
|
2013-11-15 23:17:12 +00:00
|
|
|
</div>
|
2013-11-15 19:42:31 +00:00
|
|
|
|
2013-11-15 23:17:12 +00:00
|
|
|
<!-- Billing History tab -->
|
|
|
|
<div id="billing" class="tab-pane">
|
2013-11-13 22:47:45 +00:00
|
|
|
<div ng-show="invoiceLoading">
|
2013-11-15 23:17:12 +00:00
|
|
|
<i class="fa fa-spinner fa-spin fa-3x"></i>
|
2013-11-13 22:47:45 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-show="!invoiceLoading && !invoices">
|
|
|
|
No invoices have been created
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-show="!invoiceLoading && invoices">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<th>Billing Date/Time</th>
|
|
|
|
<th>Amount Due</th>
|
|
|
|
<th>Status</th>
|
2013-11-18 19:49:54 +00:00
|
|
|
<th></th>
|
2013-11-13 22:47:45 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody class="invoice" ng-repeat="invoice in invoices">
|
2013-11-18 19:49:54 +00:00
|
|
|
<tr class="invoice-title">
|
|
|
|
<td ng-click="toggleInvoice(invoice.id)"><span class="invoice-datetime">{{ invoice.date * 1000 | date:'medium' }}</span></td>
|
|
|
|
<td ng-click="toggleInvoice(invoice.id)"><span class="invoice-amount">{{ invoice.amount_due / 100 }}</span></td>
|
2013-11-13 22:47:45 +00:00
|
|
|
<td>
|
|
|
|
<span class="invoice-status">
|
|
|
|
<span class="success" ng-show="invoice.paid">Paid - Thank you!</span>
|
2013-11-13 23:06:06 +00:00
|
|
|
<span class="danger" ng-show="!invoice.paid && invoice.attempted && invoice.closed">Payment failed</span>
|
|
|
|
<span class="danger" ng-show="!invoice.paid && invoice.attempted && !invoice.closed">Payment failed - Will retry soon</span>
|
2013-11-13 22:47:45 +00:00
|
|
|
<span class="pending" ng-show="!invoice.paid && !invoice.attempted">Payment pending</span>
|
|
|
|
</span>
|
|
|
|
</td>
|
2013-11-18 19:49:54 +00:00
|
|
|
<td>
|
|
|
|
<a ng-show="invoice.paid" href="/receipt?id={{ invoice.id }}" download="receipt.pdf" target="_new">
|
|
|
|
<i class="fa fa-download" title="Download Receipt" bs-tooltip="tooltip.title"></i>
|
|
|
|
</a>
|
|
|
|
</td>
|
2013-11-13 22:47:45 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr ng-class="invoiceExpanded[invoice.id] ? 'in' : 'out'" class="invoice-details panel-collapse collapse">
|
|
|
|
<td colspan="3">
|
|
|
|
<dl class="dl-normal">
|
|
|
|
<dt>Billing Period</dt>
|
|
|
|
<dd>
|
|
|
|
<span>{{ invoice.period_start * 1000 | date:'mediumDate' }}</span> -
|
|
|
|
<span>{{ invoice.period_end * 1000 | date:'mediumDate' }}</span>
|
|
|
|
</dd>
|
|
|
|
<dt>Plan</dt>
|
|
|
|
<dd>
|
2013-12-04 19:32:55 +00:00
|
|
|
<span>{{ invoice.plan ? plan_map[invoice.plan].title : '(N/A)' }}</span>
|
2013-11-13 22:47:45 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-11-05 23:39:27 +00:00
|
|
|
<!-- Members tab -->
|
|
|
|
<div id="members" class="tab-pane">
|
2013-11-07 00:06:59 +00:00
|
|
|
<i class="fa fa-spinner fa-spin fa-3x" ng-show="membersLoading"></i>
|
|
|
|
|
|
|
|
<div ng-show="!membersLoading">
|
|
|
|
<div class="side-controls">
|
|
|
|
<div class="result-count">
|
|
|
|
Showing {{(membersFound | filter:search | limitTo:50).length}} of {{(membersFound | filter:search).length}} matching members
|
|
|
|
</div>
|
|
|
|
<div class="filter-input">
|
|
|
|
<input id="member-filter" class="form-control" placeholder="Filter Members" type="text" ng-model="search.$">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
2013-11-26 19:37:55 +00:00
|
|
|
<th>User/Robot Account</th>
|
2013-11-07 00:06:59 +00:00
|
|
|
<th>Teams</th>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tr ng-repeat="memberInfo in (membersFound | filter:search | limitTo:50)">
|
|
|
|
<td>
|
2013-11-26 19:37:55 +00:00
|
|
|
<span class="entity-reference" name="memberInfo.username" isrobot="memberInfo.is_robot"></span>
|
2013-11-07 00:06:59 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="team-link" ng-repeat="team in memberInfo.teams">
|
|
|
|
<i class="fa fa-group"></i>
|
|
|
|
<a href="/organization/{{ organization.name }}/teams/{{ team }}">{{ team }}</a>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2013-11-05 23:39:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|