-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable_example.html
More file actions
133 lines (121 loc) · 4.22 KB
/
table_example.html
File metadata and controls
133 lines (121 loc) · 4.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<div class="col-10">
<h3 class="text-center">Таблица</h3>
<br>
<table class="table table-striped">
<thead class="table-secondary">
<tr>
<th scope="col">#</th>
<th scope="col">First</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td class="text-end">
<button type="button" class="btn btn-sm"
data-bs-toggle="modal"
data-bs-target="#deleteModal"
data-bs-whatever="@getbootstrap">
<i class="fas fa-trash" style="color: red"></i>
</button> <button type="button" class="btn btn-sm"
data-bs-toggle="modal"
data-bs-target="#exampleModal"
data-bs-whatever="@getbootstrap">
<i class="fas fa-edit" style="color: blue"></i>
</button>
</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
<td class="text-end">
<button type="button" class="btn btn-sm"
data-bs-toggle="modal"
data-bs-target="#deleteModal"
data-bs-whatever="@getbootstrap">
<i class="fas fa-trash" style="color: red"></i>
</button> <button type="button" class="btn btn-sm"
data-bs-toggle="modal"
data-bs-target="#exampleModal"
data-bs-whatever="@getbootstrap">
<i class="fas fa-edit" style="color: blue"></i>
</button>
</td>
</tr>
<tr>
<th scope="row">3</th>
<td colspan="2">Larry the Bird</td>
<td>@twitter</td>
<td class="text-end">
<button type="button" class="btn btn-sm"
data-bs-toggle="modal"
data-bs-target="#deleteModal"
data-bs-whatever="@getbootstrap">
<i class="fas fa-trash" style="color: red"></i>
</button>
<button type="button" class="btn btn-sm"
data-bs-toggle="modal"
data-bs-target="#exampleModal"
data-bs-whatever="@getbootstrap">
<i class="fas fa-edit" style="color: blue"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- модальное окно удалить-->
<div class="modal fade" id="deleteModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
Вы уверены что хотите удалить
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Нет конечно</button>
<button type="button" class="btn btn-primary">Да конечно</button>
</div>
</div>
</div>
</div>
<!-- модальное окно форма-->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Добавить позицию</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form action="http://mysite.ru" method="post">
<div class="modal-body">
<div class="mb-3">
<label for="name" class="col-form-label">Название:</label>
<input type="text" class="form-control" id="name">
</div>
<div class="mb-3">
<label for="count" class="col-form-label">Количество:</label>
<input type="number" class="form-control" id="count">
</div>
<div class="mb-3">
<label for="text" class="col-form-label">Описание:</label>
<textarea class="form-control" id="text"></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
<button type="submit" class="btn btn-primary">
<i class="fas fa-save" ></i>
Сохранить</button>
</div>
</form>
</div>
</div>
</div>