Use auto_id for isbn field rendering

This commit is contained in:
Gabriel Augendre 2018-06-15 23:50:24 +02:00
parent 7187b11f15
commit 188f80aa83

View file

@ -28,12 +28,12 @@
<div class="form-row"> <div class="form-row">
<div class="col-12"> <div class="col-12">
<div class="form-group"> <div class="form-group">
{% bootstrap_label content=form.isbn.label label_for=id_isbn %} {% bootstrap_label content=form.isbn.label label_for=form.isbn.auto_id %}
<div class="input-group"> <div class="input-group">
<input name="isbn" maxlength="20" <input name="isbn" maxlength="20"
class="form-control" class="form-control"
placeholder="{{ form.isbn.label }}" placeholder="{{ form.isbn.label }}"
required="" id="id_isbn" type="text"> required="" id="{{ form.isbn.auto_id }}" type="text">
<div class="input-group-append"> <div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" id="id_isbn_button"> <button class="btn btn-outline-secondary" type="button" id="id_isbn_button">
Chercher sur Decitre Chercher sur Decitre