Skip to content

Commit

Permalink
Merge pull request #305 from biocore/csymons_update_address_phone
Browse files Browse the repository at this point in the history
Require Phone on Address Update
  • Loading branch information
cassidysymons authored Dec 11, 2023
2 parents 716f1fb + d56837e commit 12ebfa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion microsetta_interface/templates/update_address.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ $(document).ready(function(){
address_1: "required",
city: "required",
state: "required",
phone: "required",
postal: {
required: true,
remote: {
Expand Down Expand Up @@ -121,6 +122,7 @@ $(document).ready(function(){
address_1: "{{ _('Please enter your street address.') }}",
city: "{{ _('Please enter your city.') }}",
state: "{{ _('Please select your state.') }}",
phone: "{{ _('Please enter your phone number.') }}",
postal: {
required: "{{ _('Please enter your postal code.') }}",
remote: "{{ _('Sorry, we were unable to verify your address. Please check your information and try again.') }}"
Expand Down Expand Up @@ -223,7 +225,7 @@ $(document).ready(function(){
<input id="postal" name="postal" class="form-control" type="text" value="{{ user_info['postal_code'] |e }}" />
</div>
<div class="form-group mb-2">
<label for="phone" name="phone_label">{{ _('Phone Number') }}</label>
<label for="phone" name="phone_label">{{ _('Phone Number') }}*</label>
<input id="phone" name="phone" class="form-control" type="text" value="{{ user_info['phone'] |e }}" />
</div>
<div class="form-group mb-2">
Expand Down

0 comments on commit 12ebfa9

Please sign in to comment.