Skip to content

Commit bbd97e9

Browse files
committed
Added dropzone (but it isnt functioning yet)
1 parent 3ded9cf commit bbd97e9

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM docker.io/python:3.8-buster
2-
MAINTAINER Devin Matte <matted@csh.rit.edu>
2+
MAINTAINER Computer Science House <webmaster@csh.rit.edu>
33

44
RUN mkdir /opt/conditional
55

@@ -12,18 +12,19 @@ RUN apt-get -yq update && \
1212
pip install -r requirements.txt && \
1313
apt-get -yq clean all
1414

15-
ADD . /opt/conditional
16-
1715
ENV NVM_DIR /usr/local/nvm
1816
ENV NODE_VERSION v10.24.1
1917
RUN mkdir -p $NVM_DIR
2018

2119
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
2220

23-
RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use --delete-prefix $NODE_VERSION && npm install && npm run production"
21+
RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"
22+
23+
ADD . /opt/conditional
24+
25+
RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm use --delete-prefix $NODE_VERSION && npm install && npm run production"
2426

2527
RUN rm -rf node_modules && \
26-
apt-get -yq remove nodejs npm && \
2728
apt-get -yq clean all
2829

2930
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

conditional/templates/major_project_submission.html

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
<div class="container main">
88
<h3 class="page-title">Major Project Form</h3>
9+
<!--TODO: put a box explaining major project -->
10+
<div class="panel panel-default">
11+
<p>This talks about major project submission guidelines</p>
12+
</div>
913
<form data-module="majorProjectForm">
1014
<div class="panel panel-default">
1115
<div class="panel-body">
@@ -23,10 +27,38 @@ <h3 class="page-title">Major Project Form</h3>
2327
</div>
2428
<div class="col-lg-6">
2529
<label class="form-label" for="time-commitment">Time Commitment</label>
26-
<textarea id="time-commitment" name="time-commitment" class="form-control" rows="5" wrap="hard"
30+
<textarea id="time-commitment" name="time-commitment" class="form-control" rows="5"
31+
wrap="hard"
2732
placeholder="Tell us about how much time you spent on the project."></textarea>
2833
</div>
2934
</div>
35+
<label class="form-label" for="description">Detailed Description</label>
36+
<textarea id="description" name="description" class="form-control" rows="10"
37+
placeholder="Tell us everything! More information is better than less."></textarea>
38+
<div class="row">
39+
<div class="col-lg-4">
40+
<label class="form-label" for="links">Project Links</label>
41+
<textarea id="links" name="links" class="form-control" rows="2"
42+
placeholder="If you have links (GitHub, YouTube, etc.), put them here!"></textarea>
43+
</div>
44+
<div class="col-lg-4">
45+
<label class="form-label" for="project-files">Photos and Files</label>
46+
<div class="dropzone" id="project-files">
47+
<div class="dz-message">
48+
<img src="../images/user_upload.svg" width="72px">
49+
<div class="upload-title">Upload Photos and Videos</div>
50+
<div class="upload-sub">Drag files here or click to upload.</div>
51+
</div>
52+
</div>
53+
<script>
54+
$("#project-files").dropzone({
55+
// autoQueue:false,
56+
parallelUploads: 10,
57+
uploadMultiple: true,
58+
})
59+
</script>
60+
</div>
61+
</div>
3062
</div>
3163
</div>
3264
<div class="panel panel-default">

0 commit comments

Comments
 (0)