lundi 8 juillet 2019

How can i show two values of data from database in html?

I expect to join the year and the month the output like this in the table "2019-5" The others doing fine, organizer, and workshop shows its data, the only problem is the year and the month i wanted to show.

<tbody id="idTbodyWorkshop">
  <tr th:each="item : ${keyworkshop}">
    <td th:text="${item.training_name}">Workshop</td>
    <td th:text="${item.organizer}">Organizer</td>
    <td th:text="${item.training_year}" th:text="${item.training_month}">Date /*This is the 2 values i mentioned*/</td>
    <td th:text="${item.training_duration}">Duration</td>
    <td>
      <div class="dropdown">
        <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
          More <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
          <li class="clDropdown" data-value="0"><a href="#">edit</a></li>
          <li class="clDropdown" data-value="1"><a href="#">delete</a></li>
        </ul>
      </div>
    </td>
  </tr>
</tbody>



Aucun commentaire:

Enregistrer un commentaire