Skip to content

Commit e52f4f3

Browse files
authored
Fix author update and rearrange input fields in edit taxon (#5010)
1 parent 5be8007 commit e52f4f3

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

bims/models/taxonomy_update_proposal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ def approve(self, reviewer: settings.AUTH_USER_MODEL, suppress_emails: bool = Fa
299299
'legacy_canonical_name',
300300
'rank',
301301
'taxonomic_status',
302+
'author',
302303
'endemism',
303304
'iucn_status',
304305
'accepted_taxonomy',

bims/templates/edit_taxon.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,6 @@ <h2>
132132
</div>
133133
</div>
134134

135-
<div class="form-group row">
136-
<label class="col-sm-2 col-form-label col-form-label">
137-
{% if hierarchy_taxon.id != object.id %}
138-
Accepted Taxon hierarchy
139-
{% else %}
140-
Taxon hierarchy
141-
{% endif %}
142-
</label>
143-
<div class="col-sm-10">
144-
<div id="taxon-tree"></div>
145-
</div>
146-
</div>
147-
148135
<div class="form-group row">
149136
<label for="author" class="col-sm-2 col-form-label col-form-label">
150137
Author
@@ -169,6 +156,19 @@ <h2>
169156
</div>
170157
</div>
171158

159+
<div class="form-group row">
160+
<label class="col-sm-2 col-form-label col-form-label">
161+
{% if hierarchy_taxon.id != object.id %}
162+
Accepted Taxon hierarchy
163+
{% else %}
164+
Taxon hierarchy
165+
{% endif %}
166+
</label>
167+
<div class="col-sm-10">
168+
<div id="taxon-tree"></div>
169+
</div>
170+
</div>
171+
172172
{% if object.accepted_taxonomy %}
173173
<script>
174174
acceptedTaxonomy = "{{ object.accepted_taxonomy.canonical_name }} ({{ object.accepted_taxonomy.rank }})";

0 commit comments

Comments
 (0)