enkele layout fixes
This commit is contained in:
parent
cab0c1a688
commit
b5eab1dce1
4 changed files with 28 additions and 15 deletions
|
@ -102,3 +102,9 @@ footer ul li {
|
|||
width: 100%;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.form-field{
|
||||
margin-bottom: 15px;
|
||||
text-align: bottom;
|
||||
|
||||
}
|
||||
|
|
|
@ -3,6 +3,16 @@
|
|||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
||||
|
||||
//signin
|
||||
.sign-in{
|
||||
.checkbox label{
|
||||
padding-left: 0px;
|
||||
}
|
||||
#user_remember_me{
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.users .thumbnail {
|
||||
padding: 0px;
|
||||
min-height: 280px;
|
||||
|
@ -37,11 +47,6 @@
|
|||
background-color: #f5f5dc;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* sidebar */
|
||||
|
||||
aside {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<h2>Sign in</h2>
|
||||
<div class="alert alert-info">Partners sign in using the link sent by email.</div>
|
||||
|
||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
||||
<div class="sign-in">
|
||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
||||
|
||||
<%= form_text_field f, :nickname %>
|
||||
<%= form_password_field f, :password %>
|
||||
|
@ -11,6 +11,8 @@
|
|||
<% end %>
|
||||
|
||||
<%= f.submit "Sign in", class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
<%= render "devise/shared/links" %>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<div class="col-md-6 col-md-offset-3 sign-in">
|
||||
<%= form_for @product, html: { multipart: true } do |f| %>
|
||||
<%= render 'application/errors', model: @product %>
|
||||
|
||||
<%= form_text_field f, :name %>
|
||||
|
||||
<%= f.label :price %>
|
||||
<%= f.number_field :price, value: number_with_precision(f.object.price, precision: 2), class: 'form-control', placeholder: "0.00", step: :any %>
|
||||
<%= f.number_field :price, value: number_with_precision(f.object.price, precision: 2), class: 'form-control form-field', placeholder: "0.00", step: :any %>
|
||||
|
||||
<%= f.label :avatar %>
|
||||
<%= f.file_field :avatar %>
|
||||
<%= f.file_field :avatar , class: "form-field" %>
|
||||
|
||||
<%= f.submit class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue