-
Notifications
You must be signed in to change notification settings - Fork 23
/
editChannel.html
284 lines (274 loc) · 11 KB
/
editChannel.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!doctype html>
<html lang="en">
<head>
<title>buddycloud Create Channel</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../css/main.css" type="text/css" media="screen">
<script src="../js/vendor/jquery.js"></script>
<script src="../js/vendor/modernizr.js"></script>
</head>
<body>
<div class="sidebar">
<div class="personal channel">
<div class="avatar" style="background-image: url(avatars/user1.jpg)">
<span class="channelpost counter">2</span>
<span class="message counter">2</span>
</div>
<div class="info">
<span class="owner">felix<span class="domain">@buddycloud.com</span></span>
<span class="status">Aww yeah, Lion rocks</span>
</div>
</div>
<nav class="actionBar clearfix">
<button class="discover"><span>Find Channels</span></button>
</nav>
<div class="channels" class="antiscroll-wrap">
<div class="antiscroll-inner scrollHolder">
<div class="channel">
<div class="avatar" style="background-image: url(avatars/user2.jpg)">
<span class="channelpost counter">2</span>
</div>
<div class="info">
<span class="owner">vera<span class="domain">@buddycloud.com</span></span>
<span class="status">What a wonderful day</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel2.jpg)">
<span class="channelpost counter admin">1</span>
</div>
<div class="info">
<span class="owner">moviefans<span class="domain">@buddycloud.com</span></span>
<span class="status">Harry Potter, tonight!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel3.jpg)">
<span class="channelpost counter admin">1</span>
</div>
<div class="info">
<span class="owner">on-the-box<span class="domain">@bbc.co.uk</span></span>
<span class="status">You gonna love the new Dexter episodes</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/topic.png)">
<span class="channelpost counter">2</span>
</div>
<div class="info">
<span class="owner">lolcats<span class="domain">@buddycloud.com</span></span>
<span class="status">I can haz your nose?</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/user4.jpg)">
</div>
<div class="info">
<span class="owner">martin<span class="domain">@buddycloud.com</span></span>
<span class="status">working on the webgl project</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/topic.png)">
</div>
<div class="info">
<span class="owner">music<span class="domain">@buddycloud.com</span></span>
<span class="status">New Foo Fighter Album online - check it out!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/user7.jpg)">
</div>
<div class="info">
<span class="owner">verena<span class="domain">@buddycloud.com</span></span>
<span class="status">test's are over - party!!!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel7.jpg)">
</div>
<div class="info">
<span class="owner">fans<span class="domain">@steam.com</span></span>
<span class="status">the cake is a lie!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel8.jpg)">
</div>
<div class="info">
<span class="owner">cave<span class="domain">@minecraft.com</span></span>
<span class="status">Buy minecraft - now!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/anon.png)">
<span class="channelpost counter">2</span>
</div>
<div class="info">
<span class="owner">steve<span class="domain">@buddycloud.com</span></span>
<span class="status">all your base belongs to us</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel2.jpg)">
<span class="channelpost counter admin">1</span>
</div>
<div class="info">
<span class="owner">moviefans<span class="domain">@buddycloud.com</span></span>
<span class="status">Harry Potter, tonight!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel3.jpg)">
<span class="channelpost counter admin">1</span>
</div>
<div class="info">
<span class="owner">on-the-box<span class="domain">@bbc.co.uk</span></span>
<span class="status">You gonna love the new Dexter episodes</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel4.jpg)">
<span class="channelpost counter">2</span>
</div>
<div class="info">
<span class="owner">lolcats<span class="domain">@buddycloud.com</span></span>
<span class="status">I can haz your nose?</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/user4.jpg)">
</div>
<div class="info">
<span class="owner">martin<span class="domain">@buddycloud.com</span></span>
<span class="status">working on the webgl project</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel6.jpg)">
</div>
<div class="info">
<span class="owner">music<span class="domain">@buddycloud.com</span></span>
<span class="status">New Foo Fighter Album online - check it out!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/user7.jpg)">
</div>
<div class="info">
<span class="owner">verena<span class="domain">@buddycloud.com</span></span>
<span class="status">test's are over - party!!!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel7.jpg)">
</div>
<div class="info">
<span class="owner">fans<span class="domain">@steam.com</span></span>
<span class="status">the cake is a lie!</span>
</div>
</div>
<div class="channel">
<div class="avatar" style="background-image: url(avatars/channel8.jpg)">
</div>
<div class="info">
<span class="owner">cave<span class="domain">@minecraft.com</span></span>
<span class="status">Buy minecraft - now!</span>
</div>
</div>
</div><!-- /antiscroll-inner -->
</div><!-- /channels -->
</div>
<div class="content" class="clearfix">
<div class="channelView">
<header class="channelHeader justify">
<div class="avatar" style="background-image: url(avatars/user1_big.jpg)"></div>
<div class="flex titleText">
<h2 class="owner" data-editmode="singleLine">Felix Niklas</h2>
<div class="about" data-editmode="multiLine">Hey whats up world? I'm buddyclouds interface designer</div>
</div>
<nav class="inChannel">
</nav>
<a href="http://www.buddycloud.com" id="poweredby">powered by buddycloud</a>
</header>
<form class="stream clearfix">
<h2 class="pageName">Edit Channel</h2>
<div class="gravatar">
<label>Avatar</label>
<div>
<input type="file" id="avatar">
<p class="hint">or change on <a href="http://gravatar.com/">gravatar.com</a></p>
</div>
</div>
<div class="title">
<label for="channel_name">Channel Name</label>
<input type="text" id="channel_name" />
</div>
<div class="description area">
<label for="channel_description">Description</label>
<textarea id="channel_description"></textarea>
</div>
<div class="status">
<label for="channel_mood">Status</label>
<input type="text" id="channel_status" placeholder="How are you doing?" />
</div>
<div class="location">
<label for="channel_location">Current Location</label>
<input type="text" id="channel_location" />
</div>
<div class="access">
<label for="channel_public_access">Public Access</label>
<div>
<input type="checkbox" id="channel_public_access"/>
</div>
</div>
<div class="role">
<label for="channel_default_role">Default Role</label>
<div>
<select id="channel_default_role">
<option value="follower">follower</option>
<option value="followerPlus">follower+</option>
</select>
<span class="hint followerSelected">
<span class="follower">
can only read your channel
</span>
<span class="followerPlus">
can read and write your channel
</span>
</span>
</div>
</div>
</form>
<nav class="bottom clearfix">
<div class="floatLeft twoStepConfirmation">
<div class="button white delete stepOne">Delete Channel</div>
<div class="button danger stepTwo">Confirm</div>
</div>
<div class="button callToAction save">Save</div>
<div class="button discard">Discard</div>
</nav>
</div><!-- /channelView -->
</div><!-- /content -->
<script type="text/javascript">
/* ###
two step confirmation
(inspired by dodo)
### */
$('.twoStepConfirmation .stepOne').click(function(){
$('.twoStepConfirmation').toggleClass('confirmed');
});
/* ###
channel_default_role hint switch
### */
var select = $('#channel_default_role');
var label = select.next('.hint');
function switchLabel(){
label.removeClass('followerPlusSelected followerSelected').addClass($(this).val()+"Selected");
}
select.change(switchLabel);
</script>
</body>
</html>