From 7fec796ae500313ddbbbedf32d4f7581985d41d4 Mon Sep 17 00:00:00 2001 From: Brandon Lo Date: Thu, 27 Jun 2019 15:43:55 -0400 Subject: Replace and change CSS Fix animation bugs Fix layout issues Replace custom CSS to bootstrap classes Remove unused files Change code to use es6 syntax Add dropdown styles Change-Id: Ie2ed31fa2e6763cf30d3b19e4bf9379019cbb0f5 Signed-off-by: Brandon Lo --- src/templates/resource/hostprofile_detail.html | 134 ++++++++++++----------- src/templates/resource/steps/meta_info.html | 26 +---- src/templates/resource/steps/pod_definition.html | 98 ++++------------- 3 files changed, 95 insertions(+), 163 deletions(-) (limited to 'src/templates/resource') diff --git a/src/templates/resource/hostprofile_detail.html b/src/templates/resource/hostprofile_detail.html index dc20600..c26d774 100644 --- a/src/templates/resource/hostprofile_detail.html +++ b/src/templates/resource/hostprofile_detail.html @@ -6,95 +6,105 @@
-

Available at

- +

Available at

+
-
-
    - {% for lab in hostprofile.labs.all %} -
  • {{lab.name}}
  • - {% endfor %} -
+
+
+
    + {% for lab in hostprofile.labs.all %} +
  • {{lab.name}}
  • + {% endfor %} +
+
-

RAM

+

RAM

-
- {{hostprofile.ramprofile.first.amount}}G, - {{hostprofile.ramprofile.first.channels}} channels +
+
+ {{hostprofile.ramprofile.first.amount}}G, + {{hostprofile.ramprofile.first.channels}} channels +
-

CPU

+

CPU

-
- - - - - - - - - - - - - -
Arch:{{hostprofile.cpuprofile.first.architecture}}
Cores:{{hostprofile.cpuprofile.first.cores}}
Sockets:{{hostprofile.cpuprofile.first.cpus}}
+
+
+ + + + + + + + + + + + + +
Arch:{{hostprofile.cpuprofile.first.architecture}}
Cores:{{hostprofile.cpuprofile.first.cores}}
Sockets:{{hostprofile.cpuprofile.first.cpus}}
+
-

Disk

+

Disk

-
- - - - - - - - - - - - - -
Size:{{hostprofile.storageprofile.first.size}} GiB
Type:{{hostprofile.storageprofile.first.media_type}}
Mount Point:{{hostprofile.storageprofile.first.name}}
+
+
+ + + + + + + + + + + + + +
Size:{{hostprofile.storageprofile.first.size}} GiB
Type:{{hostprofile.storageprofile.first.media_type}}
Mount Point:{{hostprofile.storageprofile.first.name}}
+
-

Interfaces

+

Interfaces

-
- - - - - - - - - {% for intprof in hostprofile.interfaceprofile.all %} - - - - - {% endfor %} - -
NameSpeed
{{intprof.name}}{{intprof.speed}}
+
+
+ + + + + + + + + {% for intprof in hostprofile.interfaceprofile.all %} + + + + + {% endfor %} + +
NameSpeed
{{intprof.name}}{{intprof.speed}}
+
diff --git a/src/templates/resource/steps/meta_info.html b/src/templates/resource/steps/meta_info.html index cebd343..62230dc 100644 --- a/src/templates/resource/steps/meta_info.html +++ b/src/templates/resource/steps/meta_info.html @@ -5,32 +5,10 @@ {% block content %} - -
{% csrf_token %} - - {{form}} +
+ {% bootstrap_form form field_class="px-4" label_class="px-4 mt-2" %}
{% endblock content %} diff --git a/src/templates/resource/steps/pod_definition.html b/src/templates/resource/steps/pod_definition.html index 5826ccb..1558780 100644 --- a/src/templates/resource/steps/pod_definition.html +++ b/src/templates/resource/steps/pod_definition.html @@ -13,85 +13,29 @@ {% block content %} -
-
+
+
+
+
+
+
+
+ +
- - -
-
- - -
-
-
- - - -
-
- +
+
+ +
+
+
+ +
+
    +
+
-
    -
-
{% csrf_token %} @@ -114,7 +58,7 @@ {% for host in hosts %} hosts.push({{host|safe}}); {% endfor %} - + let added_hosts = []; {% for host in added_hosts %} added_hosts.push({{host|safe}}); -- cgit 1.2.3-korg