diff options
author | 2020-01-30 13:33:35 -0500 | |
---|---|---|
committer | 2020-01-30 16:12:18 -0500 | |
commit | 078273eb7db5a481a4131d44a943f3c9e34b6b88 (patch) | |
tree | 9e6e569e18712d77b8a65c6ebf4dda50ade1b55a /src/templates/dashboard/multiple_select_filter_widget.html | |
parent | 899e1a4baa95d0bc6f0eef34de66f0e257174878 (diff) |
Adds Template Overrides
Changes the structure of the template directories to allow
a new project to define their own set of override templates
that inherit from a common base.
I have slightly modified landing.html here as an example.
In comming changes we will try to move all the "laas" specific
content into the laas directory
Change-Id: I46151be182de901f870debb247b305ea34ae77ba
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/templates/dashboard/multiple_select_filter_widget.html')
-rw-r--r-- | src/templates/dashboard/multiple_select_filter_widget.html | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/templates/dashboard/multiple_select_filter_widget.html b/src/templates/dashboard/multiple_select_filter_widget.html deleted file mode 100644 index 92aa1ba..0000000 --- a/src/templates/dashboard/multiple_select_filter_widget.html +++ /dev/null @@ -1,54 +0,0 @@ -<input name="filter_field" id="filter_field" type="hidden"/> -<div class="row"> - {% for object_class, object_list in display_objects %} - <div class="col-12 col-lg-6 d-flex flex-column pt-2 mx-0"> - <div class="col mx-0 border rounded py-2 flex-grow-1 d-flex flex-column"> - <div class="w-100"> - <h4 class="text-capitalize">{{object_class}}</h4> - </div> - <div id="{{object_class}}" class="row flex-grow-1"> - {% for obj in object_list %} - <div class="col-12 col-md-6 col-xl-4 my-2 d-flex flex-grow-1"> - <div id="{{ obj.id|default:'not_provided' }}" class="card flex-grow-1"> - <div class="card-header"> - <p class="h5 font-weight-bold mt-2">{{obj.name}}</p> - </div> - <div class="card-body"> - <p class="grid-item-description">{{obj.description}}</p> - </div> - <div class="card-footer"> - <button type="button" class="btn btn-success grid-item-select-btn w-100 stretched-link" - onclick="multi_filter_widget.processClick('{{obj.id}}');"> - {% if obj.multiple %} - Add - {% else %} - Select - {% endif %} - </button> - </div> - </div> - </div> - {% endfor %} - </div> - </div> - </div> - {% endfor %} -</div> - -<div id="dropdown_row" class="row"> - <div id="dropdown_wrapper" class="col-12 col-lg-6 d-flex flex-column pt-2 mx-0"> - </div> -</div> -<script> -function multipleSelectFilterWidgetEntry() { - const graph_neighbors = {{ neighbors|safe }}; - const filter_items = {{ filter_items|safe }}; - const initial_value = {{ initial_value|default_if_none:"{}"|safe }}; - - //global variables - multi_filter_widget = new MultipleSelectFilterWidget(graph_neighbors, filter_items, initial_value); - form_submission_callbacks.push(() => multi_filter_widget.finish()); -} - -multipleSelectFilterWidgetEntry(); -</script> |