.
This commit is contained in:
parent
1a8c133033
commit
4d1ef68a0a
BIN
data.mv.db
BIN
data.mv.db
Binary file not shown.
@ -122,6 +122,10 @@ td form {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.marginLeft {
|
||||
margin-left: 20%;
|
||||
}
|
||||
|
||||
.rectNews {
|
||||
width: 310px;
|
||||
height: 200px;
|
||||
@ -155,6 +159,19 @@ td form {
|
||||
line-height: 52px
|
||||
}
|
||||
|
||||
.forButtons {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.forButtons form:first-child {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.forButtons form:last-child {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.rectNewsTextBox {
|
||||
width: 310px;
|
||||
min-height: 50px;
|
||||
@ -170,5 +187,6 @@ td form {
|
||||
font-size: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3px;
|
||||
}
|
@ -15,11 +15,16 @@
|
||||
<span class="mainSt">
|
||||
<b>Новости</b>
|
||||
</span>
|
||||
<form th:action="@{/search/}" method="get">
|
||||
<label for="search1" class="form-label">Поиск</label>
|
||||
<input class="form-control" type="text" name="query" id="search1" placeholder="Поиск новостей..." />
|
||||
<button class="btn btn-primary mt-4" type="submit">Поиск</button>
|
||||
</form>
|
||||
<div class="d-flex justify-content-center">
|
||||
<form class="w-25" th:action="@{/search/}" method="get">
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" name="query" placeholder="Поиск новостей..." />
|
||||
<button class="btn btn-primary" type="submit">
|
||||
<i class="fa fa-search">Поиск</i>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<a href="/news/edit/" class="btn btn-danger mt-4">Добавить новость</a>
|
||||
</div>
|
||||
@ -32,24 +37,25 @@
|
||||
<div class="rectNewsTextBox">
|
||||
<span class="rectNewsText">
|
||||
<b scope="row" th:text="${newItem.description}"></b>
|
||||
<form th:action="@{/news/edit/{id}(id=${newItem.id})}" method="get">
|
||||
<button type="submit" class="btn btn-link button-link">
|
||||
<i class="fa fa-edit"></i>
|
||||
</b>
|
||||
</form>
|
||||
<form th:action="@{/news/delete/{id}(id=${newItem.id})}" method="post">
|
||||
<button type="submit" class="btn btn-link button-link"
|
||||
onclick="return confirm('Вы уверены?')">
|
||||
<i class="fa fa-trash"></i>
|
||||
</button>
|
||||
</form>
|
||||
</span>
|
||||
</div>
|
||||
<div class="forButtons">
|
||||
<form th:action="@{/news/edit/{id}(id=${newItem.id})}" method="get">
|
||||
<button type="submit" class="btn btn-link button-link">
|
||||
<i class="fa fa-edit">Изменить</i>
|
||||
</form>
|
||||
<form th:action="@{/news/delete/{id}(id=${newItem.id})}" method="post">
|
||||
<button type="submit" class="btn btn-link button-link"
|
||||
onclick="return confirm('Вы уверены?')">
|
||||
<i class="fa fa-trash">Удалить</i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</th:block>
|
||||
</th:block>
|
||||
</th:block>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user