-
Notifications
You must be signed in to change notification settings - Fork 0
/
boards.blade.html
184 lines (168 loc) · 6.9 KB
/
boards.blade.html
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html>
<head>
<title>Trollee</title>
<base href="{{asset('')}}">
<meta charset="utf-8">
<meta name="viewport" content="width=devide-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="CSS/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="CSS/board.css">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index">Trollee</a>
</div>
<div class="navbar-collapse collapse">
@if(Auth::user())
<div class="navbar-form navbar-right">
<p style="color: pink;">Chào
<a href="userinfo">{{Auth::user()->name}}</a>
<a href="dangxuat" style="color: red;">Đăng xuất</a>
</p>
</div>
@else
<div class="navbar-form navbar-right">
<a type="button" class="btn btn-success" href="dangky">Đăng kí</a>
<a type="button" class="btn btn-success" href="dangnhap">Đăng nhập</a>
</div>
@endif
</div>
</div>
</div>
<div class="row" style="background-color: #fafbfc; min-height: 700px; max-height: auto">
<br><br><br><br><br>
<div class="col-lg-1"></div>
<div class="col-lg-2">
<div class="row">
<a class="list-group-item active" href="#">Bảng</a>
<a class="list-group-item" href="#">Trang chủ</a>
<a class="list-group-item" href="#">Các nhóm</a>
<a class="list-group-item" href="#">Nhóm 1</a>
</div>
</div>
<div class="col-lg-1"></div>
<div class="col-lg-7">
<span class="glyphicon glyphicon-time"></span>
<span>Bảng xem gần đây</span>
<br>
<div class="row">
<div class="col-lg-3" class="card_box">
<div class="card" class="card-img-top">
<img>
<span class="card_name">Card title</span>
</div>
</div>
<div class="col-lg-3">
<div class="card" class="card-img-top">
<img>
<span class="card_name">Card title</span>
</div>
</div>
<div class="col-lg-3">
<div class="card" class="card-img-top">
<img>
<span class="card_name">Card title</span>
</div>
</div>
<div class="col-lg-3">
<div class="card" class="card-img-top">
<img>
<span class="card_name">Card title</span>
</div>
</div>
</div><br>
<span class="glyphicon glyphicon-user"></span>
<span>Danh sách bảng</span>
<br>
<div class="row">
@foreach($boards as $b)
<div class="col-lg-3">
<a href="user/board/{{$b->id}}/list.html">
<div class="card" class="card-img-top">
<img>
<span class="card_name">{{$b->name}}</span>
<span class="card_edit" data-toggle="modal" data-target="#board_edit_popup">Ξ</span>
<span class="card_delete" data-toggle="modal" data-target="#board_delete_popup">×</span>
</div>
</a>
</div>
@endforeach
<div class="col-lg-3">
<div class="card" class="card-img-top" data-toggle="modal" data-target="#myModal">
<img style="background-color: grey;">
<span class="card_name" style="left: 50px;font-size: 14px;top: 35px;">Tạo bảng mới</span>
</div>
<div id="myModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Nhập tên bảng</h4>
</div>
<form action="" method="POST">
<div class="modal-body">
<input type="hidden" name="_token" value="{{csrf_token()}}">
<input type="text" name="name" class="form-control">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
<button type="submit" class="btn btn-primary">Lưu bảng</button>
</div>
</form>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div>
<div id="board_delete_popup" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content" id="board_popup2">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<h5>Bạn chắc chắn muốn xóa bảng này?</h5>
</div>
<div class="modal-footer">
<form action="">
<button type="submit" class="btn btn-primary">Xóa bảng</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Hủy</button>
</form>
</div>
</div>
</div>
</div>
<div id="board_edit_popup" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content" id="board_popup2">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<input type="text" placeholder="Nhập tên mới của bảng" style="width:100%">
</div>
<div class="modal-footer">
<form action="">
<button type="submit" class="btn btn-primary">Sửa</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Hủy</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr>
<footer>
<div class="col-md-1"></div>
<p>© Nhóm 2</p>
</footer>
<hr>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="JS/bootstrap.min.js"></script>
</body>
</html>