Skip to content

Commit

Permalink
AJout description attributs
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl authored and jacquesfize committed Oct 4, 2024
1 parent fbabbd2 commit a3fbf9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apptax/admin/templates/admin/details_taxref.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,10 @@ <h5 class="card-title"> {{theme}} </h5>
<table class="table table-striped">
{% for attr in theme.attributs %}
<tr>
<th class="col-1"> {{attr.label_attribut}} </th>
<th class="col-1"> <span title="{{attr.desc_attribut}}">{{attr.label_attribut}}</span> </th>
<td class="col-3"> {{attributes_val[attr.id_attribut]['taxon_attr_value']}} </th>
</tr>
{% endfor %}

</table>

</div>
Expand Down
4 changes: 3 additions & 1 deletion apptax/admin/templates/admin/edit_taxref.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ <h6>{{theme}}</h6>
</div>
{% for attr in theme.attributs %}
<div class="form-group">
<label class="col-md-2 control-label" for="attr.{{attr.id_attribut}}">{{ attr.label_attribut }}</label>
<label class="col-md-2 control-label" for="attr.{{attr.id_attribut}}">{{
attr.label_attribut }}</label>
<div class="col-md-10">
{% if attr.type_widget == 'text' %}
<input class="form-control" type="text" id="{{attr.nom_attribut}}" name="attr.{{attr.id_attribut}}"
Expand Down Expand Up @@ -107,6 +108,7 @@ <h6>{{theme}}</h6>
{% endif %}

</div>
<div class="col-md-10 text-secondary small">{{attr.desc_attribut}}</div>
</div>
{% endfor %}
</div>
Expand Down

0 comments on commit a3fbf9c

Please sign in to comment.