Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adicionando estilo de formulario

  • Loading branch information...
commit c7a7475d27d1cfd060d26ea28090587a6fd39696 1 parent 9db33cf
@luizcarvalho authored
View
1  Gemfile
@@ -6,7 +6,6 @@ gem 'rails', '3.0.7'
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
-gem "paperclip"
# Use unicorn as the web server
# gem 'unicorn'
View
7 Gemfile.lock
@@ -30,7 +30,6 @@ GEM
activesupport (3.0.7)
arel (2.0.10)
builder (2.1.2)
- cocaine (0.2.1)
erubis (2.6.6)
abstract (>= 1.0.0)
i18n (0.5.0)
@@ -40,11 +39,6 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
- paperclip (2.5.0)
- activerecord (>= 2.3.0)
- activesupport (>= 2.3.2)
- cocaine (>= 0.0.2)
- mime-types
pg (0.11.0)
polyglot (0.3.1)
rack (1.2.3)
@@ -75,6 +69,5 @@ PLATFORMS
ruby
DEPENDENCIES
- paperclip
pg
rails (= 3.0.7)
View
8 app/views/ads/edit.html.erb
@@ -1,6 +1,8 @@
-<h1>Editing ad</h1>
+<%= link_to 'Detalhes', @ad %> |
+<%= link_to 'Voltar', ads_path %>
+
+<h1>Alterar Anunciante</h1>
<%= render 'form' %>
-<%= link_to 'Show', @ad %> |
-<%= link_to 'Back', ads_path %>
+
View
3  app/views/ads/new.html.erb
@@ -1,5 +1,6 @@
+<%= link_to 'Voltar', ads_path %>
<h1>Cadastrar Anunciante</h1>
<%= render 'form' %>
-<%= link_to 'Voltar', ads_path %>
+
View
7 app/views/configurations/_form.html.erb
@@ -12,17 +12,18 @@
<% end %>
<div class="field">
- <%= f.label :tipo %><br />
+ <%= f.label :tipo %>
<%= f.text_field :tipo %>
</div>
<div class="field">
- <%= f.label :label %><br />
+ <%= f.label :label %>
<%= f.text_field :label %>
</div>
<div class="field">
- <%= f.label :value %><br />
+ <%= f.label :value %>
<%= f.text_field :value %>
</div>
+
<div class="actions">
<%= f.submit %>
</div>
View
2  app/views/configurations/index.html.erb
@@ -1,4 +1,4 @@
-<h1>Listing configurations</h1>
+<h1>Painel de Controle</h1>
<table>
<tr>
View
5 app/views/configurations/new.html.erb
@@ -1,5 +1,6 @@
-<h1>New configuration</h1>
+<%= link_to 'Voltar', configurations_path %>
+<h1>Painel de Controle</h1>
<%= render 'form' %>
-<%= link_to 'Back', configurations_path %>
+
View
4 db/schema.rb
@@ -15,8 +15,8 @@
create_table "ads", :force => true do |t|
t.string "nome"
t.string "imagem"
- t.string "url"
- t.integer "visitas"
+ t.string "url", :default => "http://"
+ t.integer "visitas", :default => 0
t.datetime "created_at"
t.datetime "updated_at"
end
View
5 nbproject/private/rake-d.txt
@@ -55,11 +55,6 @@ notes\:custom=
notes\:fixme=
notes\:optimize=
notes\:todo=
-paperclip\:clean=
-paperclip\:refresh=
-paperclip\:refresh\:metadata=
-paperclip\:refresh\:missing_styles=
-paperclip\:refresh\:thumbnails=
rails\:freeze\:edge=
rails\:freeze\:gems=
rails\:template=
View
48 public/stylesheets/styles.css
@@ -103,11 +103,11 @@ ul.links li a:hover{color:#000;}
/***CUSTOM***/
#container{
- width:775px;
+ width:625px;
height:373px;
position:relative;
margin: 0 auto; padding-bottom:2px;
- padding: 75px;
+ padding: 75px 0px 75px 100px;
}
#loginform {
@@ -171,3 +171,47 @@ ul.links li a:hover{color:#000;}
width:16px;
height:16px;
}
+/*========= FORM*/
+
+input, textarea {
+ padding: 9px;
+ border: solid 2px #E5E5E5;
+ outline: 0;
+ font: normal 13px/100% Verdana, Tahoma, sans-serif;
+ width: 200px;
+ background: #FFFFFF;
+ display: inline-block;
+ }
+
+textarea {
+ width: 400px;
+ max-width: 400px;
+ height: 150px;
+ line-height: 150%;
+ }
+
+input:hover, textarea:hover,
+input:focus, textarea:focus {
+ border-color: #C9C9C9;
+ }
+
+form label {
+ margin-left: 10px;
+ color: #666;
+ font-weight: bold;
+ width: 100px;
+ display: inline-block;
+ }
+
+.actions input {
+ width: auto;
+ padding: 9px 15px;
+ background: #BB0600;
+ border: 0;
+ font-size: 14px;
+ color: #FFFFFF;
+
+ }
+ .field{
+ padding: 10px;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.