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

Compactage des informations annexes de l'espece #597

Merged
merged 2 commits into from
Jan 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
22 changes: 18 additions & 4 deletions atlas/static/css/ficheEspece.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
color: var(--main-color);
}

#identityCard {
}
#identityCard {}

#taxonIdentity {
padding-top: 10px;
Expand Down Expand Up @@ -98,7 +97,7 @@ p.imgDescription.main {
margin-top: 15px;
}

.nav > li > a {
.nav>li>a {
padding: 10px 7px;
}

Expand Down Expand Up @@ -267,7 +266,8 @@ text {

.carousel {
width: 100%;
margin: 0 auto; /* center your carousel if other than 100% */
margin: 0 auto;
/* center your carousel if other than 100% */
}

#fixed .slider-size {
Expand All @@ -284,3 +284,17 @@ text {
.carousel-indicators {
bottom: 0px;
}

#organisms>ul {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
padding:0;
}

#organisms>ul .media-body {
gap: 0.5rem;
}

#organisms>ul h3 {
font-size: 1.5rem;
}
23 changes: 9 additions & 14 deletions atlas/templates/speciesSheet/otherInformations.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,12 @@
{% if configuration.ORGANISM_MODULE %}
<!-- organism tab -->
<div id="organisms" class="tab-pane fade flex-grow-1">
<ul class="list-group w-100">
<ul>
{% for o in organisms %}
<li id="organismListItem" class="media border-bottom p-2"
id_organism="{{ o['nom_organism'] }}">
<div class="pictoImgList mr-2" data-toggle="tooltip" data-original-title="{{ taxon.group2_inpn }}"
data-placement="right">
<span class="float-right"></span>
<div class="pictoImgList mr-2" data-toggle="tooltip" data-original-title="{{ taxon.group2_inpn }}"
data-placement="right">
{% if o['url_logo']!= None %}
Expand All @@ -130,8 +129,8 @@
</div>
</div>

<div class="media-body">
<span class="float-right"></span>
<div class="media-body d-flex align-items-center justify-content-between flex-wrap">
<div>
<h5 class="mt-0 mb-1 ">
<span id="name"><b>{{ o['nom_organism'] }}</b></span>
</h5>
Expand All @@ -145,16 +144,12 @@ <h5 class="mt-0 mb-1 ">
{% endif %}
</strong>
<br>{{ _('organism.prospection') }} : <strong>{{ "%.2f"|format(o['nb_observation']/taxon.taxonSearch.nb_obs*100) }} %</strong>
<br>
<br>
<span class="float-right">
<h3><a class="badge badge-primary" href="{{ url_for('main.ficheOrganism', id_organism=o['id_organism']) }}"
data-toggle="tooltip" style="color: white;"
title="{{ _('check.organism.sheet') }}" data-placement="left">
<i class="fas fa-list fa-fw"></i> {{ _('organism.sheet') }}</i>
</a></h3>
</span>

</div>
<h3><a class="badge badge-primary" href="{{ url_for('main.ficheOrganism', id_organism=o['id_organism']) }}"
data-toggle="tooltip" style="color: white;"
title="{{ _('check.organism.sheet') }}" data-placement="left">
<i class="fas fa-list fa-fw"></i> {{ _('organism.sheet') }}</i>
</a></h3>
</div>
{% endfor %}
</ul>
Expand Down
Loading