-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still need a message for the user when there are no optons
- Loading branch information
1 parent
492aa4e
commit 73fc156
Showing
33 changed files
with
2,345 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,3 @@ | ||
<div class="col px-0"> | ||
<div class='card border-0'> | ||
<div class='card-body text-center'> | ||
<%= link_to t('blacklight.login.netid_login_msg'), user_cas_omniauth_authorize_path, :class => 'btn btn-primary' %> | ||
<hr> | ||
<p class="or-divider"> | ||
or | ||
</p> | ||
<p><a role="button" data-toggle="collapse" href="#collapseBarcode" aria-expanded="false" aria-controls="collapseBarcode" class="btn btn-outline-secondary"> | ||
<%= t('blacklight.login.barcode_login_msg') %> | ||
</a></p> | ||
</div> | ||
</div> | ||
|
||
<div class='card card-barcode collapse' id="collapseBarcode"> | ||
<div class='card-body'> | ||
<%= simple_form_for(@user, url: user_barcode_omniauth_callback_path, class: 'form-horizontal', data: { toggle: 'validator' }) do |f| %> | ||
<div class='field form-group col-md-12 row'> | ||
<%= f.label 'Last name', class: 'control-label col-md-2 col-form-label' %> | ||
<div class='col-md-5 <%= 'has-error' if flash[:last_name] %>'> | ||
<%= text_field_tag 'last_name', '', class: 'form-control', autocomplete: 'off' %> | ||
<% if flash[:last_name] %> | ||
<span id="inputError2Status" class="sr-only">(error)</span> | ||
<span class="error">Last name can't be blank</span> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<div class='field form-group col-md-12 row'> | ||
<%= f.label 'Barcode', class: 'control-label col-md-2 col-form-label' %> | ||
<div class='col-md-5 <%= 'has-error' if flash[:barcode] %>'> | ||
<%= text_field_tag 'barcode', '22101', class: 'form-control', autocomplete: 'off' %> | ||
<% if flash[:barcode] %> | ||
<span id="inputError2Status" class="sr-only">(error)</span> | ||
<span class="error">Barcode must be a 14-digit number</span> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<div class='login_actions form-group row'> | ||
<div class='offset-md-2 col-md-10'> | ||
<%= f.submit 'Log in', class: 'btn btn-outline-dark' %> | ||
</div> | ||
</div> | ||
<% end %> | ||
<div class='offset-md-2 col-md-8'> | ||
<p><%=t('blacklight.login.barcode_help').html_safe%></p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<%= render 'shared/login' %> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.