Added simple form for easier form building.
This commit is contained in:
parent
ca15bb1102
commit
03d84aed1d
9 changed files with 185 additions and 5 deletions
|
|
@ -10,12 +10,12 @@ h3.notice {
|
|||
font-size: 100%;
|
||||
position: relative; }
|
||||
|
||||
h3.error, div.error {
|
||||
h3.alert, div.alert, div.error {
|
||||
color: red;
|
||||
font-size: 100%;
|
||||
font-weight: bold; }
|
||||
|
||||
h3.error {
|
||||
h3.alert {
|
||||
background: yellow url(/images/error.png) no-repeat 10px 3px;
|
||||
border: 1px solid red;
|
||||
padding: 4px 40px;
|
||||
|
|
|
|||
41
public/stylesheets/simple_form.css
Normal file
41
public/stylesheets/simple_form.css
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
.simple_form label {
|
||||
float: left;
|
||||
width: 100px;
|
||||
text-align: right;
|
||||
margin: 2px 10px;
|
||||
}
|
||||
|
||||
.simple_form div.input {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.simple_form div.boolean, .simple_form input[type='submit'] {
|
||||
margin-left: 120px;
|
||||
}
|
||||
|
||||
.simple_form div.boolean label, .simple_form label.collection_radio {
|
||||
float: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.simple_form label.collection_radio {
|
||||
margin-right: 10px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.simple_form .error {
|
||||
clear: left;
|
||||
margin-left: 120px;
|
||||
font-size: 12px;
|
||||
color: #D00;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.simple_form .hint {
|
||||
clear: left;
|
||||
margin-left: 120px;
|
||||
font-size: 12px;
|
||||
color: #555;
|
||||
display: block;
|
||||
font-style: italic;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue