summaryrefslogtreecommitdiffstats
path: root/dashboard/src/templates/account/resource_list.html
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-01-18 19:52:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-01-18 19:52:28 +0000
commitbe3825307c7a44f1491e85e33fd0a0ecf1e95a1d (patch)
tree03c437c003323ffe4451db2b397a6e4e4e5de9d1 /dashboard/src/templates/account/resource_list.html
parent22bcbe3dda67bb8c4dbd632a8ac8925f6b0d9b5e (diff)
parent252439a59e435fcb44c4692c6522083e03282038 (diff)
Merge "Style Account pages"
Diffstat (limited to 'dashboard/src/templates/account/resource_list.html')
-rw-r--r--dashboard/src/templates/account/resource_list.html31
1 files changed, 9 insertions, 22 deletions
diff --git a/dashboard/src/templates/account/resource_list.html b/dashboard/src/templates/account/resource_list.html
index 7e4194b..cdacdd6 100644
--- a/dashboard/src/templates/account/resource_list.html
+++ b/dashboard/src/templates/account/resource_list.html
@@ -1,30 +1,17 @@
{% extends "base.html" %}
{% block content %}
-<script>
-function edit_resource(pk){
- var csrf = $('input[name="csrfmiddlewaretoken"]').val();
- $.ajax({
- type: "POST",
- url: "/",
- data: { "target": pk, "create": 1, "csrfmiddlewaretoken": csrf},
- beforeSend: function(request) {
- request.setRequestHeader("X-CSFRToken", csrf);
- }
- }).done(function(){
- window.location.replace("/wf/");
- }).fail(function(){});
-}
-</script>
+ <div class="card_container">
{% for resource in resources %}
<div class="detail_card">
- <ul>
- <li>id: {{resource.id}}</li>
- <li>name: {{resource.name}}</li>
- <li>description: {{resource.description}}</li>
- </ul>
- <div class="detail_btn_group">
- <button style="display: none" class="btn btn-primary" onclick="edit_resource({{resource.id}});">Edit</button>
+ <div>
+ <h3>Resource {{resource.id}}</h3>
+ <ul class="list-group">
+ <li class="list-group-item">id: {{resource.id}}</li>
+ <li class="list-group-item">name: {{resource.name}}</li>
+ <li class="list-group-item">description: {{resource.description}}</li>
+ </ul>
</div>
</div>
{% endfor %}
+ </div>
{% endblock %}