-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
144 lines (137 loc) · 5.75 KB
/
home.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
<div id="home">
<header>
<img src="img/header.jpg" />
</header>
<nav id="top" class="navbar navbar-default navbar-fixed-top" role="navigation">
<a class="navbar-brand" href="#top">Home</a>
<a class="navbar-brand loginbutton" ng-hide="user" href="" popup-login >Login</a>
<a class="navbar-brand" ng-click="logout()" ng-show="user" href="" >Logout</a>
<a ui-sref="editAcc"><img class="avek img-circle" ng-show="user" src="img/{{user.avek}}" /></a>
<img class="add img-circle" ng-show="user" src="img/add_rom.png" popup-add-new-room />
</nav>
<section>
<div class="row">
<div class="col-md-4">
<div my-rooms="Left" ng-repeat="Left in leftPanel" class="room" id="{{ Left.id }}">
<img class="miniaturka" src="img/{{ Left.thumb }}" />
<div class="lw">
<h1 class="text-center">{{ Left.count_post }}</h1>
</div>
<div class="content">
<header>
<div class="description">
<img class="avek img-circle" src="img/{{ Left.user.avek }}" />
<h3 class="title">{{ Left.title }}</h3>
<h5 class="user">Utworzony przez {{ Left.user.nick}}</h5>
</div>
</header>
<section class="des">
<p>
{{ Left.content }}
</p>
</section>
</div>
</div>
</div>
<div class="col-md-4">
<div my-rooms="Center" ng-repeat="Center in centerPanel" class="room" id="{{ Center.id }}">
<img class="miniaturka" src="img/{{ Center.thumb }}" />
<div class="lw">
<h1 class="text-center">{{ Center.count_post }}</h1>
</div>
<div class="content">
<header>
<img class="avek img-circle" src="img/{{ Center.user.avek }}" />
<div class="description">
<h3 class="title">{{ Center.title }}</h3>
<h5 class="user">Utorzony przez {{ Center.user.nick }}</h5>
</div>
</header>
<section class="des">
<p>
{{ Center.content }}
</p>
</section>
</div>
</div>
</div>
<div class="col-md-4">
<div my-rooms="Right" ng-repeat="Right in rightPanel" class="room" id="{{ Right.id }}">
<img class="miniaturka" src="img/{{ Right.thumb }}" />
<div class="lw">
<h1 class="text-center">{{ Right.count_post }}</h1>
</div>
<div class="content">
<header>
<img class="avek img-circle" src="img/{{ Right.user.avek }}" />
<div class="description">
<h3 class="title">{{ Right.title }}</h3>
<h5 class="user">Utorzony przez {{ Right.user.nick }}</h5>
</div>
</header>
<section class="des">
<p>
{{ Right.content }}
</p>
</section>
</div>
</div>
</div>
</div>
</section>
<aside id="login">
<div class="background"></div>
<section>
<form class="validate container-fluid">
<div class="row">
<div class="col-sm-6">
<label for="loginUser">Login:</label>
<input id="loginUser" placeholder="Enter login" onfocus="true" ng-model="auth.nick" class="form-control" />
</div>
<div class="col-sm-6">
<label for="password">Password:</label>
<input type="password" placeholder="Enter password" ng-model="auth.password" class="form-control" id="password" />
</div>
</div>
<div ng-hide="errorAuthentication" class="error" class="row ng-hide">
<div class="col-sm-8">
<p>Zły login lub hasło</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<button class="btn btn-danger col-sm-12" ng-click="login()" >Wyślij</button>
</div>
</div>
</form>
</section>
</aside>
<aside id="addNewRoom">
<div class="background"></div>
<section>
<form class="validate container-fluid">
<div class="row">
<div class="col-sm-6">
<label for="tittleRoom">Title:</label>
<input id="tittleRoom" placeholder="Tittle Room" onfocus="true" ng-model="room.title" class="form-control" />
</div>
<div class="col-sm-6">
<label for="content">Content:</label>
<textarea placeholder="Description of Room" ng-model="room.content" class="form-control" id="content" ></textarea>
</div>
</div>
<div ng-hide="errorAuthentication" class="error" class="row ng-hide">
<div class="col-sm-8">
<p>Zły login lub hasło</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<button class="btn btn-danger col-sm-12" ng-click="createRoom()" >Wyślij</button>
</div>
</div>
</form>
</section>
</aside>
<footer></footer>
</div>