Skip to content

Commit

Permalink
Updated env, fixed students page
Browse files Browse the repository at this point in the history
  • Loading branch information
fishdev committed Jan 25, 2019
1 parent 539f08e commit 87c9c0b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
9 changes: 9 additions & 0 deletions server/.env
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,14 @@ CMULAB_COURSE=""
# Email domain of users
CMULAB_EMAILDOMAIN=""

# Min lab score
CMULAB_MINSCORE=""

# Max lab score
CMULAB_MAXSCORE=""

# Use buttons for score input
CMULAB_RADIOINPUT=""

# Allow setting lab manually
CMULAB_MANUALLAB=""
15 changes: 10 additions & 5 deletions server/views/partials/students.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
</div>
</article>

<form method="POST" action="/admin/enrollstudents" target="_self">
<label class="label">Upload section registrations: {{> asterisk}}</label>
<div class="field is-grouped">
<form method="POST" target="_self">
<label class="label">Upload section registration: {{> asterisk}}</label>
<div class="field">
<div class="control">
<div class="file has-name">
<label class="file-label">
<input id="file" class="file-input" type="file" />
<input id="csv" type="hidden" name="data" />
<span class="file-cta">
<span class="file-label">
Choose a file…
Choose file…
</span>
</span>
<span id="filename" class="file-name">
Expand All @@ -23,8 +23,13 @@
</label>
</div>
</div>
</div>
<div class="field is-grouped">
<div class="control">
<input formaction="/admin/enrollstudents" type="submit" class="button is-info" value="Submit"></input>
</div>
<div class="control">
<input type="submit" class="button is-info" value="Submit"></input>
<input formaction="/admin/removestudents" type="submit" class="button is-danger" value="Delete All"></input>
</div>
</div>
</form>
Expand Down

0 comments on commit 87c9c0b

Please sign in to comment.