Skip to content

Commit

Permalink
Merge pull request #469 from commercekitchen/remove_student_ids_for_p…
Browse files Browse the repository at this point in the history
…arents

Don't show student ID field for parents
  • Loading branch information
tmichaelreis authored Jul 20, 2020
2 parents aefa5b9 + 509b3a0 commit be2c79a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/assets/javascripts/registrations/schools_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ var schoolsForm = (function () {

function showStudentFields() {
$("#student-only").show();
$("#user_student_id").attr("placeholder", "Student ID # *");
}

function hideStudentFields() {
$("#student-only").hide();
$("#user_student_id").attr("placeholder", "Students' ID #s");
}

function makeStudentIdRequired() {
Expand Down
8 changes: 4 additions & 4 deletions app/views/devise/registrations/_schools_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

</fieldset>

</div>
<div class="form-row">
<%= f.label :student_id, t('login_signup.student_id'), class: "signup-label" %>
<%= f.text_field :student_id, placeholder: "Student ID # *", required: true %>
</div>

<div class="form-row">
<%= f.label :student_id, t('login_signup.student_id'), class: "signup-label" %>
<%= f.text_field :student_id, placeholder: "Students' ID #s" %>
</div>

0 comments on commit be2c79a

Please sign in to comment.