update book page

This commit is contained in:
2013-01-08 14:40:01 +08:00
parent 321c37f5aa
commit fd2e6eb50b
7 changed files with 76 additions and 2 deletions
+5
View File
@@ -69,3 +69,8 @@ div.span2{
font-color:#5A5A5A;
text-align: center;
}
.rent-record{
margin-top:1em;
margin-bottom: 1em;
}
+30
View File
@@ -0,0 +1,30 @@
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin {
max-width: 300px;
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
margin-bottom: 10px;
}
.form-signin input[type="text"],
.form-signin input[type="password"] {
font-size: 16px;
height: auto;
margin-bottom: 15px;
padding: 7px 9px;
}
+4
View File
@@ -1,2 +1,6 @@
class UserController < ApplicationController
def login
render :layout => false
end
end
+15
View File
@@ -10,3 +10,18 @@ div.detail.row-fluid
div.span4
ul.unstyled
div.well.summary
div.span4
div.action style="text-align:center"
button.btn.btn-success.btn-large 借阅
div.rent-record
table.table.table-bordered
caption 当前借阅情况
thead
tr
th width="100" 日期
th width="100" 借阅人
tbody
div.reader-wall
p 读者墙:
div.well
+2 -2
View File
@@ -18,10 +18,10 @@ html
div.nav
ul.nav
li
a href="" books
a href="" 书架
ul.nav.pull-right
li
a href="" logout
a href="/login" login
div.container.main
= yield
+19
View File
@@ -0,0 +1,19 @@
DOCTYPE html
html lang="en"
head
meta charset="utf-8"
title Sign in
meta name="viewport" content="width=device-width, initial-scale=1.0"
= stylesheet_link_tag '/bootstrap/css/bootstrap.min.css'
= stylesheet_link_tag '/bootstrap/css/bootstrap-responsive.min.css'
= stylesheet_link_tag 'login'
body
div.container
form.form-signin
h2.form-signin-heading Please sign in
input.input-block-level type="text" placeholder="Email address"
input.input-block-level type="password" placeholder="Password"
label.checkbox
input type="checkbox" value="remember-me" Remember me
button.btn.btn-large.btn-primary type="submit" Sign in
+1
View File
@@ -3,6 +3,7 @@ Libr::Application.routes.draw do
root to:'home#index'
match 'books/:id' => 'book#view'
get '/search/book/:arg' =>'book#search'
get '/login' => 'user#login'
# The priority is based upon order of creation:
# first created -> highest priority.