-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set select2 for organizations and vendors #160
- Loading branch information
1 parent
b6780d8
commit b4292a7
Showing
4 changed files
with
142 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,59 @@ | ||
.filter_menu { | ||
padding-top: 20px; | ||
padding-left: 130px; | ||
padding-right: 130px; | ||
padding-top: 20px; | ||
padding-left: 130px; | ||
padding-right: 130px; | ||
|
||
} | ||
.up_bar { | ||
background: #333; | ||
border-radius: 3px; | ||
alignment: center; | ||
padding-left: 5px; | ||
height:30px; | ||
font-weight: bold; | ||
font-family: "Arial"; | ||
font-size: large; | ||
color: white; | ||
background: #333; | ||
border-radius: 3px; | ||
alignment: center; | ||
padding-left: 5px; | ||
height:30px; | ||
font-weight: bold; | ||
font-family: "Arial"; | ||
font-size: large; | ||
color: white; | ||
} | ||
|
||
.bottom_bar { | ||
background: #f8f8f8; | ||
border-radius: 3px; | ||
border: 2px solid gainsboro; | ||
padding-left: 5px; | ||
padding-top: 5px; | ||
height: 70px; | ||
font-weight: bold; | ||
font-family: "Arial"; | ||
font-size: 15px; | ||
position: relative; | ||
background: #f8f8f8; | ||
border-radius: 3px; | ||
border: 2px solid gainsboro; | ||
padding-left: 5px; | ||
padding-top: 5px; | ||
font-weight: bold; | ||
font-family: "Arial"; | ||
font-size: 15px; | ||
position: relative; | ||
} | ||
|
||
.flexed { | ||
display: flex; | ||
} | ||
|
||
.filter_button { | ||
width: 120px; | ||
font-family: "Arial"; | ||
width: 120px; | ||
font-family: "Arial"; | ||
} | ||
|
||
.div_button { | ||
position: relative; | ||
padding-top: 15px; | ||
padding-left: 10px; | ||
padding-top: 15px; | ||
padding-right: 10px; | ||
padding-left: 10px; | ||
} | ||
|
||
.date_filter { | ||
margin-top: 13px; | ||
padding-left: 10px; | ||
font-size: 17px; | ||
font-weight: bold; | ||
color: #447e9b; | ||
margin-top: 13px; | ||
padding-left: 10px; | ||
font-size: 17px; | ||
font-weight: bold; | ||
color: #447e9b; | ||
} | ||
|
||
.quiet { | ||
padding-left: 12px; | ||
font-size: 14px; | ||
font-weight: normal; | ||
color: #666666; | ||
padding-left: 12px; | ||
font-size: 14px; | ||
font-weight: normal; | ||
color: #666666; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,57 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
{% load static %} | ||
{% load widget_tweaks %} | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/filter_bar.css' %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min.css' %}"/> | ||
</head> | ||
{% load static %} | ||
{% load widget_tweaks %} | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/filter_bar.css' %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min.css' %}"/> | ||
</head> | ||
|
||
<body> | ||
<div class="filter_menu"> | ||
<div class="row up_bar"> | ||
<div class="col-sm"> | ||
<p>Filter</p> | ||
</div> | ||
</div> | ||
<form method="GET" id="form_id"> | ||
<div class="row bottom_bar"> | ||
<div class="form-group col-sm"> | ||
{{ form.organization.label }} | ||
{% render_field form.organization class+="form-control form-control-sm" %} | ||
</div> | ||
<div class="form-group col-sm"> | ||
{{ form.source.label }} | ||
{% render_field form.source class+="form-control form-control-sm" %} | ||
</div> | ||
<div class="form-group col-sm"> | ||
{{ form.vendor.label }} | ||
{% render_field form.vendor class+="form-control form-control-sm" %} | ||
<body> | ||
<div class="filter_menu"> | ||
<div class="row up_bar"> | ||
<div class="col-sm"> | ||
<p>Filter</p> | ||
</div> | ||
</div> | ||
<div class="form-group col-sm"> | ||
{{ form.value.label }} | ||
{% render_field form.value class+="form-control form-control-sm" %} | ||
</div> | ||
<div class="col-sm div_button"> | ||
{% if reset %} | ||
<a href="{% url 'contract_awards_list_view' %}"><button type="button" name="reset_filters" value="reset" class="btn btn-dark filter_button">Reset filters</button></a> | ||
{% endif %} | ||
</div> | ||
<div class="col-sm div_button"> | ||
<button type="submit" name="filter_button" value="filter" class="btn btn-dark filter_button">Filter</button> | ||
|
||
<div class="row bottom_bar"> | ||
<form method="GET" id="form_id"> | ||
<div class="flexed"> | ||
<div class="form-group col-sm"> | ||
{{ form.organization.label }} | ||
{% render_field form.organization class+="form-control form-control-sm" %} | ||
</div> | ||
<div class="form-group col-sm"> | ||
{{ form.vendor.label }} | ||
{% render_field form.vendor class+="form-control form-control-sm" %} | ||
</div> | ||
</div> | ||
|
||
<div class="flexed"> | ||
<div class="form-group col-sm"> | ||
{{ form.source.label }} | ||
{% render_field form.source class+="form-control form-control-sm" %} | ||
</div> | ||
|
||
<div class="form-group col-sm"> | ||
{{ form.value.label }} | ||
{% render_field form.value class+="form-control form-control-sm" %} | ||
</div> | ||
|
||
{% if reset %} | ||
<div class="div_button"> | ||
<a href="{% url 'contract_awards_list_view' %}"><button type="button" name="reset_filters" value="reset" class="btn btn-dark filter_button">Reset filters</button></a> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="div_button"> | ||
<button type="submit" name="filter_button" value="filter" class="btn btn-dark filter_button">Filter</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
</form> | ||
</div> | ||
</body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters