forked from multiscan/thot
-
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.
Added search form for user details + documentation
- Loading branch information
Showing
15 changed files
with
176 additions
and
2 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -14,6 +14,15 @@ def show | |
end | ||
end | ||
|
||
# GET /[email protected] | ||
def index | ||
if params[:email] && u=User.where(:email => params[:email]).first | ||
redirect_to nebis_path(u.nebis) | ||
else | ||
redirect_to root_path | ||
end | ||
end | ||
|
||
# # GET /users | ||
# # GET /users.json | ||
# def index | ||
|
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
.container | ||
%row | ||
.span3 | ||
%ul{class: "nav nav-list bs-docs-sidenav affix-bottom", data: {spy: "affix"}} | ||
%li.nav-header List Header | ||
%li | ||
%a{href: '#byImages'} | ||
%i.icon-shevron-right | ||
Gallery | ||
%li | ||
%a{href: '#newUser'} | ||
%i.icon-shevron-right | ||
Profile | ||
.span8 | ||
%section{id: "byImages"} | ||
.page-header | ||
%h2 Thot by images | ||
#introcarousel{class: "carousel slide", data: {interval: ""}} | ||
%ol{class: "carousel-indicators"} | ||
%li{:data => {"target" => "#introcarousel", "slide-to" => "0"}, :class => "active" } | ||
%li{:data => {"target" => "#introcarousel", "slide-to" => "1"} } | ||
%div{:class => "carousel-inner"} | ||
.item.active | ||
=image_tag image_path("docs/home_full.png") #, size: "367x143" | ||
.carousel-caption | ||
%h4 The main search form | ||
%p | ||
Fill the form fields with informations about the book your are looking for and click on the | ||
%em Go Search! button | ||
.item | ||
=image_tag image_path("docs/quick_search.png") | ||
.carousel-caption | ||
%h4 Quick search form | ||
%p Use the quick search field that is always visible for searching books by author, editor, or title. | ||
.item | ||
=image_tag image_path("docs/user_login.png") | ||
.carousel-caption | ||
%h4 Searching a user by email | ||
%p | ||
Click the | ||
%em User | ||
link and enter you e-mail address in the field for obtaining the | ||
%b user details view. | ||
In alternative, you can scan your NEBIS code with the barcode scanner. | ||
|
||
.item | ||
=image_tag image_path("docs/user_view.png") | ||
.carousel-caption | ||
%h4 User Details View | ||
%p | ||
To borrow another book just enter its inventory number in the field on the top right of the page, | ||
or scan the book's barcode. | ||
To return a book, click on the | ||
%em return | ||
link, or scann the book's barcode. | ||
|
||
|
||
%a{class: "carousel-control left", href: "#introcarousel", data: {slide: "prev"}} ‹ | ||
%a{class: "carousel-control right", href: "#introcarousel", data: {slide: "next"}} › | ||
|
||
%section{id: "newUser"} | ||
.page-header | ||
%h2 New user? | ||
%p If you have never used thot, please ask the library manager to create an account for you. | ||
.alert | ||
Please | ||
%strong do not take any book out of the library | ||
without #{link_to "checking it out", "#checkout"} first. |
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 |
---|---|---|
|
@@ -32,7 +32,11 @@ | |
-else | ||
%li= link_to('Admin login', new_admin_session_path) | ||
-#%li= link_to('Sign up', new_admin_registration_path) | ||
|
||
%li=link_to("|", "#") | ||
%li | ||
%a{href: "#", class: "on_loan_popover", data: {html: "true", placement: "bottom", title: "Enter e-mail for user page", content: '<div><form action="/users" class="form-inline" method="get"><input id="email_login" class="input-large" name="email" type="text" placeholder="[email protected]"/></form></div>'}} | ||
%i.icon-user | ||
User | ||
=form_tag books_path, method: :get, :class=>"navbar-search pull-right" do | ||
=text_field_tag :search, params[:search], :class=>"search-query", :placeholder=> "Quick Search" | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
= form_tag(users_path, method: :get, class: "form-inline", placeholder: "e-mail") do | ||
=text_field_tag :search, html: {class: "search-query", placeholder: "[email protected]"} | ||
%button{type: "submit", class: "btn"} search user |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# HighVoltage.route_drawer = HighVoltage::RouteDrawers::Root | ||
# HighVoltage.routes = false | ||
# HighVoltage.action_caching = true | ||
# HighVoltage.page_caching = true | ||
HighVoltage.content_path = 'docs/' |
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