Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update location of the search field #4439

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bims/static/css/taxa_management.css
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,12 @@ table {
border-top: 1px solid color(srgb 0.0941 0.6266 0.5639);
margin-top: 20px;
padding-top: 10px;
}

.dashboard-header {
margin-top: 10px;
}

#taxon-name-input {
width: 25%;
}
81 changes: 42 additions & 39 deletions bims/templates/taxa_management.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,13 @@
{% endif %}
</div>
<div class="col-10 list-content">
<div class="dashboard-title">
{% if selected_taxon_group %}
<h2>{{ selected_taxon_group.name }}</h2>
{% else %}
<h2>Taxon Management</h2>
{% endif %}
</div>
<div class="dashboard-body">
<hr style="max-width: 100% !important; border-color: #e6c762"/>
<!-- Search form -->
<div class="dashboard-header">

<div class="form-inline d-flex md-form form-sm mt-0"
style="margin-bottom: 10px;">
<i class="fa fa-search" aria-hidden="true"></i>
<input class="form-control form-control-sm ml-3 w-45"
type="text" placeholder="Taxon name"
<input class="form-control form-control-sm ml-3"
type="text" placeholder="Taxon Name"
aria-label="Search" id="taxon-name-input">
<button id="search-button"
class="btn btn-success btn-md my-0 ml-sm-2"
Expand All @@ -96,9 +88,9 @@ <h2>Taxon Management</h2>
<div class="collapse" id="collapseFilter" style="width: 100%; position: absolute;">
<div class="card card-body" style="background: #f2f2f2;">
<div class="row" style="height: 20px;">
<button type="button" class="close" aria-label="Close" data-toggle="collapse" data-target="#collapseFilter" style="position: absolute; top: 10px; right: 10px;">
<span aria-hidden="true">&times;</span>
</button>
<button type="button" class="close" aria-label="Close" data-toggle="collapse" data-target="#collapseFilter" style="position: absolute; top: 10px; right: 10px;">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="row">
<div class="col-md-12">
Expand Down Expand Up @@ -142,32 +134,32 @@ <h2>Taxon Management</h2>
</div>
</div>
{% if not fada_site %}
<div class="form-group row">
<label for="staticEmail"
class="col-sm-3 col-form-label">Origin</label>
<div class="col-sm-9">
<select id="origin-filters" class="select-multiple"
name="states[]" multiple="multiple"
style="font-size: 1em; width: 100%">
{% for origin in all_origins %}
<option value="{{ origin.value }}">{{ origin.label }}</option>
{% endfor %}
</select>
<div class="form-group row">
<label for="staticEmail"
class="col-sm-3 col-form-label">Origin</label>
<div class="col-sm-9">
<select id="origin-filters" class="select-multiple"
name="states[]" multiple="multiple"
style="font-size: 1em; width: 100%">
{% for origin in all_origins %}
<option value="{{ origin.value }}">{{ origin.label }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<div class="form-group row">
<label for="staticEmail"
class="col-sm-3 col-form-label">Endemism</label>
<div class="col-sm-9">
<select id="endemism-filters" class="select-multiple"
name="states[]" multiple="multiple"
style="font-size: 1em; width: 100%">
{% for endemism in all_endemism %}
<option value="{{ endemism }}">{{ endemism }}</option>
{% endfor %}
</select>
<div class="form-group row">
<label for="staticEmail"
class="col-sm-3 col-form-label">Endemism</label>
<div class="col-sm-9">
<select id="endemism-filters" class="select-multiple"
name="states[]" multiple="multiple"
style="font-size: 1em; width: 100%">
{% for endemism in all_endemism %}
<option value="{{ endemism }}">{{ endemism }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
{% endif %}
<div class="form-group row">
<label for="parentTaxa" class="col-sm-3 col-form-label">Family</label>
Expand Down Expand Up @@ -292,6 +284,17 @@ <h2>Taxon Management</h2>
</div>
</div>
</div>
</div>
<div class="dashboard-title">
{% if selected_taxon_group %}
<h2>{{ selected_taxon_group.name }}</h2>
{% else %}
<h2>Taxon Management</h2>
{% endif %}
</div>
<div class="dashboard-body">
<hr style="max-width: 100% !important; border-color: #e6c762"/>
<!-- Search form -->
<div class="taxa-table">
<table id="taxaTable" class="table stripe">
<thead>
Expand Down
Loading