1 {% load url from future %}
4 <section id="lightbox_upload" class="modal_content">
7 var ajax_upload_url = "{% url 'ajax_upload' %}";
8 var csrf_token = "{{ csrf_token }}";
11 <div class="eight columns centered lightbox_modal" style="margin-top: 121px;">
13 <div class="lightbox_header modal_header twelve columns">
15 </div><!-- /modal_header -->
18 <div class="row lightbox_row">
19 <div class="three columns offset-by-one">
20 <label class="lightbox_label">
22 </label><!-- lightbox_label -->
24 <div class="eight columns">
25 <div class="lightbox_copy">
26 {# user.get_profile.school.name #}
27 </div><!-- /lightbox_copy -->
28 <div class="lightbox_instruction">
29 {# Not your school? <a href="#">Edit it now.</a> #}
32 </div><!-- /lightbox_row -->
34 <div class="row lightbox_row">
35 <div class="three columns offset-by-one">
36 <label class="lightbox_label">
37 Which course would you like to add notes to?
38 </label><!-- lightbox_label -->
40 <div class="four columns">
41 <div id="button_my_course" class="inverted_button show_select" data-target="#upload_course_select_box">
42 My Courses <img class="button_arrow" src="/static/img/global_button_orange_arrow.png" alt="global_button_orange_arrow" width="8" height="5" />
43 </div><!-- /inverted_button -->
44 <div id="upload_course_select_box" class="select_box">
46 {% for course in user.get_profile.courses.all %}
47 <div class="course-select lightbox_instruction" data-id="{{ course.id }}" style="cursor: pointer;">{{ course.title }} </div>
52 <div class="three columns end">
53 <div id="lightbox_upload_course_sidebar" class="lightbox_instruction">
54 Don't see the course you want to add to?<br><a href="#">Join it now.</a>
55 </div><!-- /lightbox_instruction -->
57 </div><!-- /lightbox_row -->
59 <div class="row lightbox_row">
60 <div class="three columns offset-by-one">
61 <label class="lightbox_label">
63 </label><!-- lightbox_label -->
65 <div class="four columns browse_file_button">
67 <div class="inverted_button">
69 </div><!-- /inverted_button -->
70 <input type="file" id="browse_for_file" name="file">
72 <div> <!-- this allows the _parent insert -->
73 <div style="text-align:center;" id="file-uploader">
75 <p>Please enable JavaScript to use file uploader.</p>
77 </div> <!-- #file-uploader -->
80 <div class="three columns end">
81 <div id="lightbox_instruction_file_info" class="lightbox_instruction">
82 <!-- Don't see the course you want to add to?<br><a href="#">Join it now.</a> -->
83 </div><!-- /lightbox_instruction -->
85 </div><!-- /lightbox_row -->
87 <div class="row lightbox_row">
88 <div class="three columns offset-by-one">
89 <label class="lightbox_label">
91 </label><!-- lightbox_label -->
93 <div class="seven columns end">
94 <input type="text" class="lightbox_textfield" id="add_note_title_txt">
96 </div><!-- /lightbox_row -->
98 <div class="row lightbox_row">
99 <div class="three columns offset-by-one">
100 <label class="lightbox_label">
102 </label><!-- lightbox_label -->
104 <div class="seven columns end">
105 <input type="text" class="lightbox_textfield" id="datepicker" name="date" placeholder="{{ today }}">
106 <div class="lightbox_copy">
107 </div><!-- /lightbox_copy -->
110 </div><!-- /lightbox_row -->
113 <div class="row lightbox_row">
114 <div class="three columns offset-by-one">
115 <label class="lightbox_label">
116 What type of notes are you adding?
117 </label><!-- lightbox_label -->
119 <div class="seven columns end">
120 <input type="text" class="lightbox_textfield" id="add_note_type_txt" placeholder="Syllabus, Notes, Study Guide…">
122 </div><!-- /lightbox_row -->
125 <div class="row lightbox_row">
126 <div class="three columns offset-by-one">
127 <label class="lightbox_label">
129 </label><!-- lightbox_label -->
131 <div class="seven columns end">
132 <textarea class="lightbox_textfield lightbox_textarea" id="add_note_description_txt" placeholder="These notes are the bomb because…"></textarea>
134 </div><!-- /lightbox_row -->
135 {# TODO: This is not the right styling, fixme #}
136 <div class="row lightbox_row">
137 <div class="three columns offset-by-one">
138 <label class="lightbox_label">
139 </label><!-- lightbox_label -->
141 <div class="seven columns end">
142 <a class="button white" id="submit-lightbox-upload" type="submit">FINISH UPLOAD</a>
144 </div><!-- /lightbox_row -->
147 <div class="lightbox_close"></div>
149 </div><!-- /lightbox_modal -->
152 </section><!-- /modal_content -->