-<div class="row" id="institution">
- <ul class="nav nav-tabs">
- <li class="active" id="authority-tab"><a class="home-tab" data-panel="institution" href="#">INSTITUTION</a></li>
- <li id="users-tab"><a class="home-tab" data-panel="users" href="#">USERS</a></li>
- <li id="slices-tab"><a class="home-tab" data-panel="slices" href="#">SLICES</a></li>
- </ul>
- <div class="home-panel" id="institution">
- <div id="authority-tab-loading"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Authority" /></div>
- <div id="authority-tab-loaded" style="display:none;">
- <div id="onelab_membership" style="float:left; width:30%;">
- <img src="{{ STATIC_URL }}img/onelab-logo.png" alt="" /><br>
- <div id="onelab-data"></div>
- </div>
- <div id="authority-data" style="float:right; width:70%;">
- </div>
- </div>
- </div>
- <div class="home-panel" id="users" style="display:none;">
- <br>
- <h1>Users: {{user_details.parent_authority}}</button></h1>
- <div id="user-tab-loading"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
- <div id="user-tab-loaded" style="display:none;">
- <table id="user-tab">
- <tr>
- <th>+/-</th>
- <th>Email</th>
- <th>user_hrn</th>
- <th>First name</th>
- <th>Last name</th>
- <th>Enabled</th>
- </tr>
- </table>
- <br>
- <button id="deleteusers" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> Delete Users</button>
- </div>
- </div>
- <div class="home-panel" id="slices" style="display:none;">
- <br>
- <h1>Slices: {{user_details.parent_authority}} <button id="createslice" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create a Slice</button></h1>
- <div id="slice-tab-loading"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
- <div id="slice-tab-loaded" style="display:none;">
- <table id="slice-tab">
- <tr>
- <th>+/-</th>
- <th>slice_hrn</th>
- <th>users</th>
- <th>url</th>
- <th>nodes</th>
- <th>expiration</th>
- </tr>
- </table>
- <br>
- <div>
- <button id="renewslices" type="button" class="btn btn-default"><span class="glyphicon glyphicon-refresh"></span> Renew Slices</button>
- <button id="deleteslices" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> Delete Slices</button>
- </div>
- </div>
- </div>
+<div class="container tab-content">
+ <div class="tab-pane active row" id="info">
+ <div class="col-md-12">
+ <div id="authority-tab-loading"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Authority" /></div>
+ <div id="authority-tab-loaded" style="display:none;">
+ <div id="authority-data"></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="tab-pane row" id="users" data-authority="{{user_details.parent_authority}}">
+ <div class="col-md-12">
+ <div id="user-tab-loading"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
+ <div id="user-tab-loaded" style="display:none;">
+ <table id="user-tab">
+ <tr>
+ <th>+/-</th>
+ <th>email</th>
+ <th>user_hrn</th>
+ <th>first name</th>
+ <th>last name</th>
+ <th>enabled</th>
+ </tr>
+ </table>
+ {%if 'is_pi' in pi %}
+ <div>
+ <button id="deleteusers" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> Delete Users</button>
+ </div>
+ {%endif%}
+ </div>
+ </div>
+ </div>
+
+ <div class="tab-pane row" id="slices">
+ <div id="slice-tab-loading"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
+ <div id="slice-tab-loaded" style="display:none;">
+ {%if 'is_pi' in pi %}
+ <button id="createslice" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> create slice</button>
+ {%else%}
+ <button id="createslice" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> request slice</button>
+ {%endif%}
+ <table id="slice-tab">
+ <tr>
+ <th>+/-</th>
+ <th>slice_hrn</th>
+ <th>users</th>
+ <th>url</th>
+ <!-- <th>nodes</th> -->
+ <th>expiration</th>
+ </tr>
+ </table>
+ <br>
+ {%if 'is_pi' in pi %}
+ <div>
+ <button id="renewslices" type="button" class="btn btn-default"><span class="glyphicon glyphicon-refresh"></span> Renew Slices</button>
+ <button id="deleteslices" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> Delete Slices</button>
+ </div>
+ {%endif%}
+ </div>
+ </div>