th:切换到输入文本已禁用

时间:2019-07-02 13:37:56

标签: thymeleaf

我有一个th:开关,它仅在禁用的输入中返回结果显示。如果一切正常,问题在于返回的结果似乎在输入框外,就像是一个单独的段落一样。我该怎么解决?

<div class="form-group" th:switch="${project.type}">
<div class="row" >
<div class="col-md-5" >
<label>Tipo Opera</label> 
<input th:case="1" th:text="Aeroporti" class="form-control" disabled>
<input th:case="2" th:text="Autostrade" class="form-control" disabled>
<input th:case="3" th:text="Strade" class="form-control" disabled>
<input th:case="4" th:text="Ferrovie" class="form-control" disabled>                                                                                                                
<input th:case="5" th:text="Bonifiche" class="form-control" disabled>
<input th:case="6" th:text="Elettrodotti" class="form-control" disabled>
<input th:case="7" th:text="Gasdotti" class="form-control" disabled>
<input th:case="8" th:text="Oleodotti" class="form-control" disabled>
<input th:case="9" th:text="Stoccaggi" class="form-control" disabled>
<input th:case="10" th:text="Ricerca +' '+ e +' '+ coltivazione +' '+ idrocarburi" class="form-control" disabled>
<input th:case="11" th:text="Metropolitane +' '+ - +' '+ Metrotramvie" class="form-control" disabled>
<input th:case="12" th:text="Porti" class="form-control" disabled>
<input th:case="13" th:text="Poste" class="form-control" disabled>
<input th:case="14" th:text="Università" class="form-control" disabled>
<input th:case="15" th:text="Altro" class="form-control" disabled>                                                      
                                                    </div>
                                                </div>
                                            </div>

0 个答案:

没有答案