forked from codeforamerica/bizfriendly-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson-builder.html
248 lines (232 loc) · 13 KB
/
lesson-builder.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
---
layout: teach-layout
title: lesson builder
js: teach
---
<div id="subnav" class="row hidden-xs">
<ul class="list-inline col-sm-8 col-sm-offset-3">
<li class="col-sm-4 col-md-3"><a class="active">Content Creator</a></li>
<li class="col-sm-4 col-md-3 col-md-offset-1"><a href="teaching-guide.html">Teaching Guide</a></li>
<li class="col-sm-4 col-md-3 col-md-offset-1"><a href="content-requests.html">Content Requests</a></li>
</ul>
</div>
<div id="teach-header" class="container">
<div id="subheader" class="row">
<div class="col-sm-offset-1 col-md-offset-1 col-lg-offset-1">
<h1>Build your lesson by creating step instructions and feedback.</h1>
<p>If you're new to creating content, we recommend checking out the <a href="teaching-guide.html">Teaching Guide</a> before you begin. You can access draft, submitted, and published lessons via your <a href="profile.html">profile</a>. Please note that editing lessons is still in beta and we appreciate your <a href="feedback.html">feedback</a> on the experience.</p>
</div>
<div class="alert alert-info login-required col-sm-offset-1 col-sm-8">
You'll need to create a BizFriend.ly account before you can create a lesson. <a id="signInLink" href="signin.html">Sign In</a> | <a href="signup.html">Sign up</a> then come back here.
</div>
</div>
</div>
<div id="teach-main">
<section id="teach-content" class="container">
<form id="lesson-form" role="form" class="row">
<div class="col-sm-6 col-md-5 col-lg-4 col-sm-offset-4">
<select id="category-id" class="selectpicker" data-width="100%">
<option val="none">Select a skill for your lesson</option>
</select>
<br/>
<select id="service-id" class="selectpicker" data-width="100%">
<option val="none">Select a web service for your lesson</option>
</select>
</div>
</form>
<div id="lesson-builder">
<div id="teach-dots" class="row">
<a class="inline-block back"><img src="img/left.png"></a>
<div id="current-dot" class="inline-block"></div>
<a class="inline-block next"><img src="img/right.png"></a>
<div id="add-new-step">
<a class="inline-block"><img src="img/add-btn.png"></a>
<p><span id="remaining-steps"></span> more steps.</p>
</div>
<ul id="teach-dots-amount" class="list-inline">
</ul>
</div>
<div id="step-builder" class="row">
<div id="left-column" class="col-xs-3 col-sm-2 col-lg-3 col-sm-offset-1 col-md-offset-2 col-lg-offset-1">
<div class="row">
<div id="elements" class="col-lg-6 col-lg-offset-6 center">
<h3>Elements</h3>
<hr/>
<div id="text-element-drag" class="draggable"><p>Text</p></div>
<div id="open-element-drag" class="draggable">Text & Open Button</div>
<div id="image-element-drag" class="draggable"><img src="img/upload-image-icon.png">Image</div>
<div id="login-element-drag" class="draggable">Text & Log In Button</div>
</div>
</div>
<div id="advanced-options" class="row">
<!-- <div class="col-lg-6 col-lg-offset-6"> -->
<button type="button" id="step-options-btn" class="btn btn-gray col-lg-6 col-lg-offset-6">Advanced</button>
<!-- </div> -->
<br/>
<br/>
<div class="options hidden alert alert-success">
These advanced features are being prototyped. Go forth with caution.
</div>
<form id="options-form">
<select id="what-to-watch" class="selectpicker options hidden" data-width="100%">
<option>What is this step watching?</option>
<option>A new item</option>
<option>New attribute on item</option>
<option>Updated attribute on item</option>
<option>Attribute equals expected value</option>
<option>Attribute from input</option>
</select>
<select id="collection-name" class="selectpicker options hidden" data-width="100%"></select>
</form>
</div>
</div>
<div class="teach-column col-xs-3 col-sm-4">
<a id="step-close-btn" class="right"><img src="img/close-btn.png"></a>
<div id="teach-instructions" class="teach-box">
<h2 id="lesson-name" class="lesson-editable orange">Click to edit the lesson name</h2>
<p class="author-name">Created by <span id="author-name"></span>.</p>
<ul class="progress-dots list-unstyled list-inline center"></ul>
<section>
<div id="step-texts" class="col-xs-12">
</div>
</section>
<div id="teach-controls">
<button type="button" id="back" class="btn btn-primary back">Back</button>
<button type="button" id="next" class="btn btn-primary next">Next</button>
<br/>
<div id="close-lesson-wrapper">
<button type="button" id="close-lesson" class="btn btn-default btn-block" disabled="disabled">Close Lesson</button>
</div>
</div>
</div>
</div>
<div id="right-column" class="col-xs-3">
<div id="feedback-window">
<div id="feedback-content">
</div>
</div>
<div id="state-btns">
<button id="preview" type="button" class="btn btn-default btn-block">Preview</button>
<button id="save-draft" type="button" class="btn btn-default btn-block">Save Draft</button>
<button id="submit" type="button" class="btn btn-primary btn-block">Submit</button>
<input id="terms" type="checkbox" checked> <span class="bold">Agree to Terms</span>
<p><small>When you create new content on BizFriend.ly you’re agreeing to share with the community. All content on BizFriend.ly is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License</a>.</small></p>
<div id="alert" class="alert alert-danger hidden"></div>
</div>
</div>
</div>
</div>
</section>
</div>
<div id="popover" class="hidden">
<div class="orange-square"></div>
<div class="blue-square"></div>
<div class="white-square"></div>
</div>
<div id="congrats-popover" class="hidden">
<img class="star-icon" src="img/icon-star.png">
<img class="flag-icon" src="img/icon-flag.png">
<img class="heart-icon" src="img/icon-heart.png">
<img class="thumbs-up-icon" src="img/icon-like.png">
</div>
<div id="droppable-prototype" class="droppable step-text hidden">
<img class="temp-close-btn right" src="img/close-btn.png">
<p class="temp-text">Drag elements here to create your step.</p>
</div>
<div id="text-prototype" class="text-element hidden">
<p class="bold">Click to edit text.</p>
<p class="plain">Click to edit text.</p>
</div>
<div id="open-prototype" class="open-element hidden">
<p class="bold">Click to edit text.</p>
<p class="plain">Click to edit text.</p>
<button id="open" type="button" class="btn btn-teach btn-xs">Open</button>
</div>
<div id="login-prototype" class="login-element hidden">
<p class="bold">Click to edit text.</p>
<button id="login" type="button" class="btn btn-teach btn-xs">Log in to <span class="service-name"></span></button>
</div>
<div id="text-entry-prototype" class="text-entry-element hidden">
<p class="bold">Click to edit text.</p>
<p>Click to edit text.</p>
</div>
<div id="image-prototype" class="image-element hidden">
<p class="bold">Click to edit text.</p>
<p class="plain">Click to edit text.</p>
<form id="img-upload-form" class="form-horizontal">
<label for="img-upload">Upload an image</label>
<input id="fileupload" type="file" name="files[]">
<!-- The global progress bar -->
<div id="progress" class="progress">
<div class="progress-bar progress-bar-success"></div>
</div>
<!-- The container for the uploaded files -->
<div id="files" class="files"></div>
<!-- <button type="submit" id="img-upload-submit" class="btn btn-default">Submit</button> -->
</form>
</div>
<div id="feedback-prototype" class="hidden">
<div class="modal-header">
<h2 class="element-editable">Click to edit feedback.</h2>
</div>
<div class="modal-body">
<p class="bold element-editable">Click to edit text.</p>
<p class="plain element-editable">Click to edit text.</p>
</div>
<div class="modal-footer">
<div id="feedback-control">
<button type="button" id="feedback-next" class="btn btn-primary" disabled="disabled" data-dismiss="modal">Next</button>
</div>
</div>
</div>
<div id="congrats-prototype" class="hidden center">
<div id="congrats-icons" class="step-text center">
<img class="congrats-img" src="img/icon-like.png">
<p class="bold element-editable">Click to edit text.</p>
<p class="plain element-editable">Click to edit text.</p>
</div>
<div id="congrats-share" class="step-text center">
<p class="bold">Share Your Success</p>
<ul class="list-inline">
<li><a id="fb-share" rel="nofollow"><img src="img/socialshare_fb_o.png"></a></li>
<li><a id="tw-share" rel="nofollow"><img src="img/socialshare_twitter_o.png"></a></li>
<li><a id="g-share" rel="nofollow"><img src="img/socialshare_google_o.png"></a></li>
<li><a id="li-share" rel="nofollow"><img src="img/socialshare_linkedin_o.png"></a></li>
<li><a id="li-share" rel="nofollow"><img src="img/socialshare_email_o.png"></a></li>
</ul>
</div>
<div id="congrats-links" class="step-text center">
<p class="bold">Find Out More</p>
<ul>
<li><a id="additional-resources" type="button" class="btn btn-teach btn-xs btn-block orange">Additional Resources</a><li>
<li><a id="more-lessons" type="button" class="btn btn-teach btn-xs btn-block orange">More Lessons</a></li>
<li><a href="feedback.html" id="leave-feedback" type="button" class="btn btn-teach btn-xs btn-block orange">Give Feedback</a></li>
</ul>
</div>
</div>
<!-- Ghost Form -->
<form name="preview" target="instructions">
<input type=hidden name="lessonName" value="">
<input type=hidden name="steps" value="">
<input type=hidden name="authorName" value="">
<input type=hidden name="serviceName" value="">
<input type=hidden name="serviceId" value="">
</form>
<!-- Modal -->
<div class="modal fade" id="submissionModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Nice Work!</h4>
</div>
<div class="modal-body">
<b>You created a new lesson called <span class="lesson-name orange"></span></b>
<p id="draftMessage">You can access your draft lessons via your <a href="profile.html">profile</a>. Please note that editing drafts is still in beta and we appreciate your <a href="feedback.html">feedback</a> on the experience.</p>
<p id="submittedMessage">To ensure high quality content on BizFriend.ly, your service will be reviewed by a real human before it goes live. You can access your submitted lessons via your <a href="profile.html">profile</a>. Please note that editing lessons is still in beta and we appreciate your <a href="feedback.html">feedback</a> on the experience.</p>
<a type="button" class="btn btn-default" href="/teach.html">Create Another</a>
<a type="button" class="btn btn-default" href="/profile.html">See What You've Created</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->