Fix: choix autocomplete sous le champ input

This commit is contained in:
Vincent Vandemeulebrouck 2022-12-30 02:55:11 +01:00
parent dbcab12f24
commit df92a65f5d
2 changed files with 8 additions and 4 deletions

View File

@ -158,8 +158,10 @@
<ul class="item-list alterne-list"> <ul class="item-list alterne-list">
<li class="item flexrow list-item"> <li class="item flexrow list-item">
<label for="system.main">Main directrice :</label> <label for="system.main">Main directrice :</label>
<input type="text" class="selection-main-directrice" name="system.main" value="{{system.main}}" data-dtype="String"/> <div class="autocomplete">
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs' proposals=options.mainsDirectrices className='selection-main-directrice'}} <input type="text" class="selection-main-directrice" name="system.main" value="{{system.main}}" data-dtype="String"/>
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs' proposals=options.mainsDirectrices className='selection-main-directrice'}}
</div>
</li> </li>
<li class="item flexrow list-item"> <li class="item flexrow list-item">
<label for="system.heure">Heure de naissance :</label> <label for="system.heure">Heure de naissance :</label>

View File

@ -10,8 +10,10 @@
<div class="form-group"> <div class="form-group">
<label>Ajouter un fréquence</label> <label>Ajouter un fréquence</label>
<span class="flexrow"> <span class="flexrow">
<input type="text" class="input-selection-milieu" placeholder="Milieu" data-dtype="String"/> <div class="autocomplete">
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs' proposals=milieux className='input-selection-milieu'}} <input type="text" class="input-selection-milieu" placeholder="Milieu" data-dtype="String"/>
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs' proposals=milieux className='input-selection-milieu'}}
</div>
<a class="milieu-add"><i class="fas fa-plus-circle"></i></a> <a class="milieu-add"><i class="fas fa-plus-circle"></i></a>
</span> </span>
</div> </div>