diff options
author | Brandon Lo <lobrandon1217@gmail.com> | 2019-06-27 15:43:55 -0400 |
---|---|---|
committer | Brandon Lo <lobrandon1217@gmail.com> | 2019-06-28 15:28:24 +0000 |
commit | 7fec796ae500313ddbbbedf32d4f7581985d41d4 (patch) | |
tree | c7c40f8bfc0d0ff682249187b4d68bfdfa8c6493 /src/templates/dashboard/genericselect.html | |
parent | e5e07b97e3d797a3a1f90fa33b7ccc41b6bacde3 (diff) |
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 <lobrandon1217@gmail.com>
Diffstat (limited to 'src/templates/dashboard/genericselect.html')
-rw-r--r-- | src/templates/dashboard/genericselect.html | 69 |
1 files changed, 5 insertions, 64 deletions
diff --git a/src/templates/dashboard/genericselect.html b/src/templates/dashboard/genericselect.html index 441d8dc..f54cd90 100644 --- a/src/templates/dashboard/genericselect.html +++ b/src/templates/dashboard/genericselect.html @@ -5,77 +5,18 @@ {% block content %} -<style> - #page-wrapper { - display: flex; - flex-direction: column; - } - - #{{select_type}}_form_div div { - } - - #{{select_type}}_form_div > * { - margin-left: 10px; - margin-right: 10px; - margin-bottom: 20px; - } - - #{{select_type}}_form_div div * { - } - - #{{select_type}}_form_div { - flex: 1; - margin: 30px; - display: flex; - flex-direction: column; - } - - #select_section { - flex: 1; - display: flex; - flex-direction: column; - } - - #{{select_type}}_select_form { - flex: 1; - display: flex; - flex-direction: column; - } - - .autocomplete { - flex: 1; - } - - #create_section { - } - - #select_header_section { - } - - h3 { - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; - } - - .divider { - border-top: 1px solid #ccc; - } - - -</style> - -<div id="{{select_type}}_form_div"> +<div id="{{select_type}}_form_div" class="h-100 border d-flex flex-column p-4"> <h3 id="create_section">Create a Resource <button class="btn btn-primary {% if disabled %} disabled {% endif %}" {% if not disabled %}onclick="parent.add_wf({{addable_type_num}})" {% endif %}>Here </button> </h3> - <div class="divider"></div> + <div class="border-top"></div> <h3 id="select_header_section">Or select from the list below:</h3> - <div id="select_section"> - <form id="{{select_type}}_select_form" method="post" action="" class="form" id="{{select_type}}selectorform"> + <div id="select_section" class="d-flex flex-column"> + <form id="{{select_type}}_select_form" method="post" action="" + class="form d-flex flex-column" id="{{select_type}}selectorform"> {% csrf_token %} {{ form|default:"<p>no form loaded</p>" }} {% buttons %} |