#66 added front-end part

This commit is contained in:
Nightblade73 2019-04-16 09:46:24 +04:00
parent 06b5d66d3e
commit 735cbb5f7b

View File

@ -136,9 +136,11 @@
<div class="form-group"> <div class="form-group">
<label for="papers">Статьи:</label> <label for="papers">Статьи:</label>
<div class="paper-list form-control list-group" id="papers"> <div class="paper-list form-control list-group" id="papers">
<div class="paper d-flex list-group-item p-0"> <div class="paper d-flex list-group-item p-0"
<a class="paper-name" href="/papers/papers"> th:each="paper, rowStat : *{papers}">
<span> <a class="paper-name"
th:href="@{'/papers/paper?id=' + *{papers[__${rowStat.index}__].id} + ''}">
<span th:text="*{papers[__${rowStat.index}__].title}">
Имя статьи Имя статьи
</span> </span>
<img class="icon-paper" src="/img/conference/paper.png"/> <img class="icon-paper" src="/img/conference/paper.png"/>
@ -149,10 +151,13 @@
</div> </div>
</div> </div>
<div class="paper-control form-group d-flex justify-content-end"> <div class="paper-control form-group d-flex justify-content-end">
<button id="attach-paper" class="btn btn-primary" <select class="selectpicker form-control" multiple="true" data-live-search="true"
type="button"> title="Прикрепить статью" data-style="btn-primary" data-size="5"
Прикрепить статью th:field="*{paperIds}">
</button> <option th:each="paper: ${allPapers}" th:value="${paper.id}"
th:text="${paper.title}">Status
</option>
</select>
<button id="add-paper" class="btn btn-primary" <button id="add-paper" class="btn btn-primary"
type="button"> type="button">
Добавить статью Добавить статью