books_db.rb # access to book table
views/ # views
layout.haml # layout of html view
+ sidebar.haml # side menu view
main.haml # start up view
signup.haml # sign up user view
login.haml # user login view
logout.haml # user logout view
user_home.haml # user default home view
user_edit.haml # change user info view
- list.haml # list of books view
+ user_list.haml # list of users view
+ user_delete.haml # delete user request
search.haml # search books view
- detail.haml # detail of book parameter view
find_isbn.haml # search books parameter with isbn view
setup.haml # setup book parameter view
+ book_info.haml # detail of book parameter view
+ book_list.haml # list of books view
+ book_regist.haml # registed book view
+ book_delete.haml # delete book
+ error.haml # error message view
```
<div style="page-break-before:always"></div>
- # coding: utf-8
+# coding: utf-8
# Web GUI用コントローラ
# @author OHASHI, Norikazu
redirect to('/user_list')
rescue UserAccount::NotFoundInstanceError,
UserAccount::AuthenticationError
- raise WebError.new(status: 400, message: "ユーザ情報の編集に失敗しました。", refs: "/user_edit")
+ raise WebError.new(status: 400, message: "ユーザ情報の編集に失敗しました。", refs: "/user_edit/#{edit_id}")
end
end
--- /dev/null
+linters:
+ ColorVariable:
+ enabled: false
+ IdSelector:
+ enabled: false
+ Shorthand:
+ enabled: false
+ ZeroUnit:
+ enabled: false
+ SelectorFormat:
+ enabled: false
+ SingleLinePerSelector:
+ enabled: false
+ Indentation:
+ enabled: true
+ allow_non_nested_indentation: false
+ character: space
+ width: 4
+ PropertySortOrder:
+ enabled: false
+ NameFormat:
+ enabled: false
+ LeadingZero:
+ enabled: true
+ style: include_zero
+ QualifyingElement:
+ enabled: false
+
+
@charset "utf-8";
+
.book_info {
display: inline-block;
align-items: center;
text-align: center;
+
th {
width: 10em;
height: 2.5em;
text-align: right;
- &:after {
- content: ":";
+
+ &::after {
+ content: ':';
}
}
+
td {
width: 25em;
height: 2.5em;
-.book_list{
+@charset "utf-8";
+
+.book_list {
max-height: 32em;
margin: 5px;
padding: 2px;
overflow: auto;
display: inline-block;
align-items: center;
+
table {
border-collapse: collapse;
}
+
.number {
width: 2.5em;
}
+
.title {
width: 20em;
}
+
.author {
width: 6em;
}
+
.publisher {
width: 8em;
}
+
th {
height: 1.5em;
background: #f4dda5;
border: 1px solid #f8e58c;
}
+
td {
height: 2.8em;
background: #fff1cf;
border: 1px solid #f8e58c;
+
&.number {
- text-align: right
+ text-align: right;
}
+
&.title, &.author, &.publisher {
- text-align: left
+ text-align: left;
}
}
+
tr:nth-child(odd) td {
background: #f4dda5;
}
@charset "utf-8";
+
+@mixin form_item {
+ .item {
+ margin: 5px auto;
+
+ label {
+ margin-right: 10px;
+
+ span {
+ width: 220px;
+ display: inline-block;
+ vertical-align: top;
+ }
+ }
+ }
+}
+
.message {
margin-left: 10px;
margin-right: 10px;
- font-family: "Sawarabi Mincho";
+ font-family: 'Sawarabi Mincho';
font-size: 1em;
text-align: left;
padding: 2px;
.formstyle {
margin: 0, auto;
+
.params {
+ @include form_item;
max-height: 30em;
overflow: auto;
margin-left: 20px;
text-align: left;
display: block;
- .item {
- margin: 5px auto;
- label {
- margin-right: 10px;
- span {
- width:220px;
- display: inline-block;
- vertical-align: top;
- }
- }
- }
+
.item_center {
align-items: center;
text-align: center;
bottom: 0;
left: 0;
right: 0;
- hight: 5em;
- margin: 0px auto;
+ height: 5em;
padding-bottom: 20px;
}
@charset "utf-8";
+
#main1 {
position: relative;
background: #f8e58c;
}
#center {
- block: float;
overflow: hidden;
}
@charset "utf-8";
+
body {
- color:#444;
+ color: #444;
align-items: center;
text-align: center;
margin: 10px auto;
- max-width:60em;
- -webkit-text-size-adjust: 100%;
+ max-width: 60em;
}
h1 {
font-size: 1.7em;
font-family: 'Sawarabi Gothic';
}
-
+
h3 {
font-size: 1.5em;
font-family: 'Sawarabi Mincho';
@charset "utf-8";
-.user_list{
+
+.user_list {
max-height: 32em;
margin: 5px;
padding: 2px;
overflow: auto;
display: inline-block;
align-items: center;
+
table {
border-collapse: collapse;
}
+
.id {
width: 2.5em;
}
+
.name {
width: 6em;
}
+
.full_name {
width: 10em;
}
+
.email {
width: 10em;
}
+
.role {
width: 5em;
}
+
.update_at {
width: 8em;
}
+
th {
height: 1.5em;
background: #f4dda5;
border: 1px solid #f8e58c;
}
+
td {
height: 2.8em;
background: #fff1cf;
border: 1px solid #f8e58c;
+
&.number {
- text-align: right
+ text-align: right;
}
+
&.title, &.author, &.publisher {
- text-align: left
+ text-align: left;
}
}
+
tr:nth-child(odd) td {
background: #f4dda5;
}
display: inline-block;
align-items: center;
text-align: center;
+
th {
width: 10em;
height: 2.5em;
text-align: right;
- &:after {
- content: ":";
+
+ &::after {
+ content: ':';
}
}
+
td {
width: 25em;
height: 2.5em;
@charset "utf-8";
+
@mixin button_color {
background-color: #f08300;
color: #3e62ad;
border: 1px solid #554738;
+
&:hover {
- background-color:#f6ad49;
+ background-color: #f6ad49;
color: #3e62ad;
}
+
&:disabled {
border: 1px solid #554738;
color: #bbc8e6;
border: solid 1px #554738;
background-color: #f8fbf8;
color: #1c305c;
+
&:hover {
border: 1px solid #db8449;
}
+
&:focus {
outline: 0;
border: 2px solid #db8449;
}
-
}
@mixin select_style {
padding: 2px 10px;
border-radius: 5px;
- background-image: url(/down.png);
+ background-image: url('/down.png');
background-repeat: no-repeat;
background-position: right 50%;
background-size: 10px, 80%;
border: 1px solid #554738;
&:hover {
- background-color:#f6ad49;
+ background-color: #f6ad49;
color: #3e62ad;
}
+
&:focus {
outline: 0;
}
}
input, button, textarea, select {
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
}
-input.push_button{
+input.push_button {
+ @include button_color;
font-size: 1em;
padding: 5px,20px;
width: 200px;
height: 25px;
margin-left: 20px;
border-radius: 5px;
- @include button_color;
}
-input.side_button{
+input.side_button {
+ @include button_color;
font-size: 0.7em;
padding: 2px,2px;
min-width: 20px;
height: 22px;
margin-left: 2px;
border-radius: 5px;
- @include button_color;
}
input.input_text {
+ @include text_style;
font-size: 0.9em;
padding: 2px,2px;
margin-left: 2px;
height: 22px;
- @include text_style;
}
textarea.input_text {
+ @include text_style;
font-size: 0.9em;
padding: 2px, 2px;
- hieght: 60px;
- @include text_style;
+ height: 60px;
}
-select.pulldown
-{
+select.pulldown {
+ @include select_style;
font-size: 0.7em;
min-width: 20px;
max-width: 180px;
height: 22px;
-
- @include select_style;
-
}