Added a controller, to manage permissions
[examples/facebook-app] / src / main / webapp / thymeleaf / permissions.html
diff --git a/src/main/webapp/thymeleaf/permissions.html b/src/main/webapp/thymeleaf/permissions.html
new file mode 100644 (file)
index 0000000..2afd746
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
+  <head>
+    <title>Manage Permissions</title>
+  </head>
+  <body>
+    <p>Back <a href="home.html" th:href="@{/}">HOME</a></p>
+    <hr />
+    <h1>Manage Permissions</h1>
+    <table>
+      <tr>
+        <th>Name</th>
+        <th>Status</th>
+        <th>Granted</th>
+        <th>Decliend</th>
+      </tr>
+      <tr th:each="permission : ${permissions}">
+        <td th:text="${permission.name}">public_profile</td>
+        <td th:text="${permission.status}">granted</td>
+        <td th:text="${permission.granted}">true</td>
+        <td th:text="${permission.declined}">false</td>
+      </tr>
+    </table>
+    <form action="#" th:action="@{/permissions.html}" method="POST">
+      <input type="text" name="scope" />
+      <input type="submit" value="Request permission" />
+    </form>
+  </body>
+</html>