Admin view renamed to Users view
[myslice.git] / portal / templates / usersview.html
diff --git a/portal/templates/usersview.html b/portal/templates/usersview.html
new file mode 100644 (file)
index 0000000..f82d865
--- /dev/null
@@ -0,0 +1,38 @@
+{# fine for either layout-unfold1.html (logged in) or layout-unfold2.html (needs a login prompt) #}
+{% extends layout_1_or_2 %}
+
+{% block unfold_margin %}
+{% include 'widget-login.html' %}
+{% endblock unfold_margin %}
+
+{% block head %}
+<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/dashboard.css" />
+{% endblock %}
+
+{% block unfold_main %}
+
+<h1>MySlice Users</h1>
+<div id="middle" align="center">
+    <div class="well">
+        <table class="mytable table table-bordered table-hover">
+            <tr class="odd">
+                <th>Email</th>
+                               <th>Authority</th>
+                <th>Status</th>
+            </tr>
+            {% for user in user_list %}
+            <tr class="border_bottom">
+                <td class="odd">
+                                       <a href="/portal/user/{{user.email}}"><span class="glyphicon glyphicon-search"></span></a>      
+                                       {{ user.email }} 
+                               </td>
+                               <td class="odd"> {{ user.authority }} </td>
+                               <td class="even"> {{ user.status }} </td>
+            </tr>
+            {%endfor%}
+        </table>
+    </div>
+</div>
+</div>
+
+{% endblock %}