rails-bootstrap-engine 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
- data/README.md +35 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/font/FontAwesome.ttf +0 -0
- data/app/assets/font/fontawesome-webfont.eot +0 -0
- data/app/assets/font/fontawesome-webfont.svg +525 -0
- data/app/assets/font/fontawesome-webfont.ttf +0 -0
- data/app/assets/font/fontawesome-webfont.woff +0 -0
- data/app/assets/font/glyphicons-regular-0.eot +0 -0
- data/app/assets/font/glyphicons-regular.eot +0 -0
- data/app/assets/font/glyphicons-regular.svg +435 -0
- data/app/assets/font/glyphicons-regular.ttf +0 -0
- data/app/assets/font/glyphicons-regular.woff +0 -0
- data/app/assets/font/glyphiconshalflings-regular-0.eot +0 -0
- data/app/assets/font/glyphiconshalflings-regular.eot +0 -0
- data/app/assets/font/glyphiconshalflings-regular.svg +175 -0
- data/app/assets/font/glyphiconshalflings-regular.ttf +0 -0
- data/app/assets/font/glyphiconshalflings-regular.woff +0 -0
- data/app/assets/images/apple-touch-icon-114x114-precomposed.png +0 -0
- data/app/assets/images/apple-touch-icon-144x144-precomposed.png +0 -0
- data/app/assets/images/apple-touch-icon-57x57-precomposed.png +0 -0
- data/app/assets/images/apple-touch-icon-72x72-precomposed.png +0 -0
- data/app/assets/images/apple-touch-icon-precomposed.png +0 -0
- data/app/assets/images/devise.png +0 -0
- data/app/assets/javascripts/behaviors.js +23 -0
- data/app/assets/javascripts/bootstrap.js +2159 -0
- data/app/assets/javascripts/plugins/holder.js +342 -0
- data/app/assets/javascripts/plugins/jquery.autosize.js +181 -0
- data/app/assets/javascripts/plugins/jquery.toggle.buttons.js +289 -0
- data/app/assets/javascripts/rails-bootstrap-engine.js +17 -0
- data/app/assets/stylesheets/bootstrap-plugins/bootstrap-jumbotrons.css +95 -0
- data/app/assets/stylesheets/bootstrap-plugins/bootstrap-toggle-buttons.css +155 -0
- data/app/assets/stylesheets/bootstrap-responsive.css +1092 -0
- data/app/assets/stylesheets/bootstrap.css +6044 -0
- data/app/assets/stylesheets/devise.css +3 -0
- data/app/assets/stylesheets/font-awesome-more-ie7.css +288 -0
- data/app/assets/stylesheets/font-awesome-more.css +853 -0
- data/app/assets/stylesheets/glyphicons-pro.css +2382 -0
- data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-background.css +147 -0
- data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-color.css +28 -0
- data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-navigation.css +27 -0
- data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-overrides.css +4 -0
- data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-table.css +29 -0
- data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-typography.css +30 -0
- data/app/assets/stylesheets/rails-bootstrap-engine.css +20 -0
- data/app/helpers/bootstrap_alert_helper.rb +64 -0
- data/app/helpers/bootstrap_badge_helper.rb +145 -0
- data/app/helpers/bootstrap_breadcrumbs_helper.rb +97 -0
- data/app/helpers/bootstrap_button_helper.rb +121 -0
- data/app/helpers/bootstrap_engine_helper.rb +66 -0
- data/app/helpers/bootstrap_form_helpers.rb +55 -0
- data/app/helpers/bootstrap_grid_helper.rb +119 -0
- data/app/helpers/bootstrap_icon_helper.rb +51 -0
- data/app/helpers/bootstrap_label_helper.rb +116 -0
- data/app/helpers/bootstrap_link_helper.rb +81 -0
- data/app/helpers/bootstrap_nav_helper.rb +90 -0
- data/app/helpers/bootstrap_popover_helper.rb +52 -0
- data/app/helpers/bootstrap_progressbar_helper.rb +62 -0
- data/app/helpers/bootstrap_searchbar_helper.rb +70 -0
- data/app/helpers/bootstrap_text_helper.rb +128 -0
- data/app/views/devise/confirmations/new.html.erb +16 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +19 -0
- data/app/views/devise/passwords/new.html.erb +15 -0
- data/app/views/devise/registrations/edit.html.erb +79 -0
- data/app/views/devise/registrations/new.html.erb +7 -0
- data/app/views/devise/sessions/new.html.erb +14 -0
- data/app/views/devise/shared/_links.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +16 -0
- data/app/views/layouts/application.html.erb +96 -0
- data/app/views/layouts/devise.html.erb +180 -0
- data/config/initializers/simple_form.rb +142 -0
- data/config/initializers/simple_form_bootstrap.rb +45 -0
- data/config/initializers/will_paginate.rb +28 -0
- data/config/locales/pt-BR.yml +217 -0
- data/config/locales/simple_form.en.yml +26 -0
- data/config/locales/will_paginate.pt-br.yml +5 -0
- data/config/routes.rb +2 -0
- data/lib/generators/bootstrap_engine/devise/install/install_generator.rb +47 -0
- data/lib/generators/bootstrap_engine/devise/install/templates/devise.html.erb +180 -0
- data/lib/rails-bootstrap-engine.rb +4 -0
- data/lib/rails-bootstrap-engine/engine.rb +4 -0
- data/lib/rails-bootstrap-engine/version.rb +3 -0
- data/lib/tasks/rails-bootstrap-engine_tasks.rake +4 -0
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +16 -0
- data/test/dummy/app/assets/javascripts/test.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +14 -0
- data/test/dummy/app/assets/stylesheets/test.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +7 -0
- data/test/dummy/app/controllers/test_controller.rb +4 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/test_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +11 -0
- data/test/dummy/app/views/layouts/application.html.erb +90 -0
- data/test/dummy/app/views/layouts/devise.html.erb +180 -0
- data/test/dummy/app/views/test/index.html.erb +2 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +62 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/devise.rb +240 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +60 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +61 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130128020557_devise_create_users.rb +46 -0
- data/test/dummy/db/schema.rb +34 -0
- data/test/dummy/log/development.log +42375 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/users.yml +11 -0
- data/test/dummy/test/functional/test_controller_test.rb +9 -0
- data/test/dummy/test/unit/helpers/test_helper_test.rb +4 -0
- data/test/dummy/test/unit/user_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/C3E/300/sprockets%2F2e344c0677be6b7212b140861750a434 +0 -0
- data/test/dummy/tmp/cache/assets/C51/500/sprockets%2F54522a51515e196c0ea74c652393948d +0 -0
- data/test/dummy/tmp/cache/assets/C63/420/sprockets%2F5daa64d9601a1dd14726112003d08364 +0 -0
- data/test/dummy/tmp/cache/assets/C79/BC0/sprockets%2F4285c677a500a056b055c187bd551e66 +0 -0
- data/test/dummy/tmp/cache/assets/C7F/310/sprockets%2F90949831299d2c1b73a43a1442bed906 +0 -0
- data/test/dummy/tmp/cache/assets/C82/E50/sprockets%2F183827018621a62ba5ff81fd772276c5 +0 -0
- data/test/dummy/tmp/cache/assets/C89/360/sprockets%2Fbcd93c6868260f0834225e8c57034b59 +0 -0
- data/test/dummy/tmp/cache/assets/C9F/670/sprockets%2Fa5133a772163e7f1321877bca922d31a +0 -0
- data/test/dummy/tmp/cache/assets/CA4/C80/sprockets%2F1d8eb08550b4245a12704ccb9f068274 +0 -0
- data/test/dummy/tmp/cache/assets/CB1/E50/sprockets%2F28c397f922d0af81b393fbf206056462 +0 -0
- data/test/dummy/tmp/cache/assets/CC9/FB0/sprockets%2F19690891f5b6cc724835fb913fe779e0 +0 -0
- data/test/dummy/tmp/cache/assets/CD4/D10/sprockets%2F6143a55e947c5d1d36b647ba5222d31c +0 -0
- data/test/dummy/tmp/cache/assets/CD6/D30/sprockets%2F2237e207a9f1ae1e983e15a0f1b99132 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD9/1E0/sprockets%2F293460f7bea2aea456231b769212f36f +0 -0
- data/test/dummy/tmp/cache/assets/CDD/A30/sprockets%2Fcd69a2143c13a93e76db54ed63422908 +0 -0
- data/test/dummy/tmp/cache/assets/CDE/4F0/sprockets%2F8ee5b8c8107426b362b54e84be04063e +0 -0
- data/test/dummy/tmp/cache/assets/CDE/930/sprockets%2Fc8ab20177199ce39d3c2570d7111e59c +0 -0
- data/test/dummy/tmp/cache/assets/CDE/CF0/sprockets%2F7bf6411e56a335b96e439a238b4da462 +0 -0
- data/test/dummy/tmp/cache/assets/CE0/7A0/sprockets%2F021578f8253d2eedd55bd063684dd334 +0 -0
- data/test/dummy/tmp/cache/assets/CE3/050/sprockets%2Fce67f45bf13e27654e882270b21463ec +0 -0
- data/test/dummy/tmp/cache/assets/CEA/A80/sprockets%2F4a745d213d993e1185d55e26c68deb74 +0 -0
- data/test/dummy/tmp/cache/assets/CEF/500/sprockets%2F0d17117bfaf665390bbb203530ce01d2 +0 -0
- data/test/dummy/tmp/cache/assets/CF1/C60/sprockets%2Fb888b526e547356dbf4f16835d8a2f34 +0 -0
- data/test/dummy/tmp/cache/assets/CF7/A10/sprockets%2F2e3a5af78ce42be8252314603b6c00b1 +0 -0
- data/test/dummy/tmp/cache/assets/CF9/2A0/sprockets%2F99d62669bd0b471738e99e43ae564ef1 +0 -0
- data/test/dummy/tmp/cache/assets/D04/8E0/sprockets%2F33617ca614d80c0cfe33277e05a5f35d +0 -0
- data/test/dummy/tmp/cache/assets/D0E/2B0/sprockets%2F859557e033595cf5b9eb2e73330bba0a +0 -0
- data/test/dummy/tmp/cache/assets/D15/9D0/sprockets%2F270af34895cfd4b388c9aad55e043464 +0 -0
- data/test/dummy/tmp/cache/assets/D15/D20/sprockets%2F952bcc41195db55c99be6c93f40b7513 +0 -0
- data/test/dummy/tmp/cache/assets/D16/860/sprockets%2Fb45890d98668c132fee5cae4b15320d9 +0 -0
- data/test/dummy/tmp/cache/assets/D19/EF0/sprockets%2F895b6d0967c1205395e5b9a6bd56a4dc +0 -0
- data/test/dummy/tmp/cache/assets/D1A/C00/sprockets%2F9599a6464c5dac7fd6093f1a46fb0444 +0 -0
- data/test/dummy/tmp/cache/assets/D25/5A0/sprockets%2Fbf2f92c27945d0f2897f94e546346cda +0 -0
- data/test/dummy/tmp/cache/assets/D2B/E00/sprockets%2Febafd146d810419e351347cae0001ed8 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D3A/F20/sprockets%2F04a7fb58c68be319d3f3b5c7f14200d6 +0 -0
- data/test/dummy/tmp/cache/assets/D3B/440/sprockets%2F9d61f7f02a3a5dab16a07f463d95563c +0 -0
- data/test/dummy/tmp/cache/assets/D3D/C40/sprockets%2F427a390419acfd9b1dbf265e6e6f3430 +0 -0
- data/test/dummy/tmp/cache/assets/D3E/210/sprockets%2F6ad484a0d5fd94a6970ca33e2cc15297 +0 -0
- data/test/dummy/tmp/cache/assets/D3E/300/sprockets%2F66271e5e0e2a7aa2937ba5d8e4a2962f +0 -0
- data/test/dummy/tmp/cache/assets/D3F/CB0/sprockets%2Fc58312cf90fc5e15d416de5bd74e9411 +0 -0
- data/test/dummy/tmp/cache/assets/D42/9F0/sprockets%2F956410b8172fa4592bc3cbf5f71a6f5f +0 -0
- data/test/dummy/tmp/cache/assets/D43/B00/sprockets%2Ff724bee040039676a1aae696a8f06e7f +0 -0
- data/test/dummy/tmp/cache/assets/D45/930/sprockets%2F9593e26322d3ac909618faa6fc8cf50b +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D52/8C0/sprockets%2F24944cec626a1b59d98e9b46b7cd91e6 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D61/1C0/sprockets%2Fa159272faca84b51889c6ab0ca11c3d6 +0 -0
- data/test/dummy/tmp/cache/assets/D63/EA0/sprockets%2Ffc8a31fb16444bc623a7afd34b27f065 +0 -0
- data/test/dummy/tmp/cache/assets/D65/600/sprockets%2Fdaa0e3c217673cb0ebb89d97438a1b80 +0 -0
- data/test/dummy/tmp/cache/assets/D66/B00/sprockets%2Fa9c44b4284c7b601c36ba69562accfb4 +0 -0
- data/test/dummy/tmp/cache/assets/D68/7C0/sprockets%2F1866195f0d2b5f990a3a2131acdffdb7 +0 -0
- data/test/dummy/tmp/cache/assets/D6A/940/sprockets%2Ff12f9168fe02cef00d215dc87d5e7c11 +0 -0
- data/test/dummy/tmp/cache/assets/D70/530/sprockets%2Faa6133344adde2f6796dd06c2378f9ca +0 -0
- data/test/dummy/tmp/cache/assets/D71/D40/sprockets%2Fdf25d07e57783faca718d3355e12caf5 +0 -0
- data/test/dummy/tmp/cache/assets/D86/090/sprockets%2Faad76d1c0cd8f8a86962f721f999b09f +0 -0
- data/test/dummy/tmp/cache/assets/D8A/770/sprockets%2Fad6b282a5df70217f707adde40a0a17d +0 -0
- data/test/dummy/tmp/cache/assets/D90/440/sprockets%2F7fa7e142c264fa45fe720aa47b5b0dd2 +0 -0
- data/test/dummy/tmp/cache/assets/D97/250/sprockets%2F45bb8c0384f075aecc8dc2e5670ef0a2 +0 -0
- data/test/dummy/tmp/cache/assets/D9C/C10/sprockets%2F462dea729a9984d242ab7b6ace1fc0b6 +0 -0
- data/test/dummy/tmp/cache/assets/DA6/D40/sprockets%2Fa6d2c6c99e2fa333eb87ee7560ae941b +0 -0
- data/test/dummy/tmp/cache/assets/DAA/D20/sprockets%2F1df903901857cf4ceb8bee9d1ec42d68 +0 -0
- data/test/dummy/tmp/cache/assets/DAC/770/sprockets%2F473547f2b9f6b2bc6d0fa06f79af57fd +0 -0
- data/test/dummy/tmp/cache/assets/DB8/D70/sprockets%2F2aae8f796d8b8290c88e66fffb09c14e +0 -0
- data/test/dummy/tmp/cache/assets/DBC/2C0/sprockets%2Fb7023d141154daa082e2fceeaaf99ea4 +0 -0
- data/test/dummy/tmp/cache/assets/DC6/3A0/sprockets%2F692eb3cc77b2eeba07ab6c36295a6bd1 +0 -0
- data/test/dummy/tmp/cache/assets/DC7/F30/sprockets%2F6c6f0bca21e5a0e8f4b54d3de3f3a478 +0 -0
- data/test/dummy/tmp/cache/assets/DCA/AC0/sprockets%2F409ab48cd1b8b124e8f6e0b5cb3ff35f +0 -0
- data/test/dummy/tmp/cache/assets/DCD/210/sprockets%2Fff66c21af8a114cfaa477375cfbe6e51 +0 -0
- data/test/dummy/tmp/cache/assets/DCF/360/sprockets%2F60babcedd5e76636d61b5849d3cc7c0d +0 -0
- data/test/dummy/tmp/cache/assets/DDA/5A0/sprockets%2Feffe9d8758c34ac5b08d5ab37107e6de +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DDC/A10/sprockets%2Faac7e62fb8f54520e0fd8fdace647877 +0 -0
- data/test/dummy/tmp/cache/assets/DDF/9F0/sprockets%2Fe4c64d625c9988fc2ecc7fb0c6196bdc +0 -0
- data/test/dummy/tmp/cache/assets/DFB/510/sprockets%2Fbaa9a5abc4aeafa76fa6076c476b5099 +0 -0
- data/test/dummy/tmp/cache/assets/DFE/1E0/sprockets%2Fafc6a7ac607cdccf69b2f41c81462c9d +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E20/550/sprockets%2Fe1b1ce6c37d22bb088bb09c6eddfa51d +0 -0
- data/test/dummy/tmp/cache/assets/E7B/7F0/sprockets%2Fb5adae1ffa3fd56d153fea3a52aaff23 +0 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/rails-bootstrap-engine_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +423 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="pt-br">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title><%= yield(:header_title) %></title>
|
|
8
|
+
|
|
9
|
+
<%= csrf_meta_tags %>
|
|
10
|
+
|
|
11
|
+
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
|
|
12
|
+
<!--[if lt IE 9]>
|
|
13
|
+
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" type="text/javascript"></script>
|
|
14
|
+
<![endif]-->
|
|
15
|
+
|
|
16
|
+
<%= stylesheet_link_tag "application", :media => "all" %>
|
|
17
|
+
|
|
18
|
+
<%= javascript_include_tag 'https://www.google.com/jsapi' %>
|
|
19
|
+
|
|
20
|
+
<!-- For third-generation iPad with high-resolution Retina display: -->
|
|
21
|
+
<!-- Size should be 144 x 144 pixels -->
|
|
22
|
+
<%= favicon_link_tag 'apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144' %>
|
|
23
|
+
|
|
24
|
+
<!-- For iPhone with high-resolution Retina display: -->
|
|
25
|
+
<!-- Size should be 114 x 114 pixels -->
|
|
26
|
+
<%= favicon_link_tag 'apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114' %>
|
|
27
|
+
|
|
28
|
+
<!-- For first- and second-generation iPad: -->
|
|
29
|
+
<!-- Size should be 72 x 72 pixels -->
|
|
30
|
+
<%= favicon_link_tag 'apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72' %>
|
|
31
|
+
|
|
32
|
+
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
|
|
33
|
+
<!-- Size should be 57 x 57 pixels -->
|
|
34
|
+
<%= favicon_link_tag 'apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png' %>
|
|
35
|
+
|
|
36
|
+
<!-- For all other devices -->
|
|
37
|
+
<!-- Size should be 32 x 32 pixels -->
|
|
38
|
+
<%= favicon_link_tag 'favicon.ico', :rel => 'shortcut icon' %>
|
|
39
|
+
</head>
|
|
40
|
+
<body id="devise">
|
|
41
|
+
|
|
42
|
+
<div class="navbar navbar-top">
|
|
43
|
+
<div class="navbar-inner">
|
|
44
|
+
<div class="container">
|
|
45
|
+
<a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
|
|
46
|
+
<span class="icon-bar"></span>
|
|
47
|
+
<span class="icon-bar"></span>
|
|
48
|
+
<span class="icon-bar"></span>
|
|
49
|
+
</a>
|
|
50
|
+
<a class="brand" href="#"><%= application_brand %></a>
|
|
51
|
+
<div class="container nav-collapse">
|
|
52
|
+
<ul class="nav">
|
|
53
|
+
<li><%= link_to "Link1", "/path1" %></li>
|
|
54
|
+
<li><%= link_to "Link2", "/path2" %></li>
|
|
55
|
+
<li><%= link_to "Link3", "/path3" %></li>
|
|
56
|
+
</ul>
|
|
57
|
+
</div><!--/.nav-collapse -->
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="container">
|
|
63
|
+
|
|
64
|
+
<div class="row-fluid">
|
|
65
|
+
|
|
66
|
+
<div class="span8">
|
|
67
|
+
|
|
68
|
+
<% if content_for?(:hero) then %>
|
|
69
|
+
<%= content_tag :div, :class => "hero-unit" do %>
|
|
70
|
+
<%= yield(:hero) %>
|
|
71
|
+
<% end %>
|
|
72
|
+
<% end %>
|
|
73
|
+
|
|
74
|
+
<% if content_for?(:page_header) then %>
|
|
75
|
+
<%= content_tag :div, :class => "page-header" do %>
|
|
76
|
+
<%= yield(:page_header) %>
|
|
77
|
+
<% end %>
|
|
78
|
+
<% end %>
|
|
79
|
+
|
|
80
|
+
<%= yield %>
|
|
81
|
+
|
|
82
|
+
</div>
|
|
83
|
+
<div class="span4">
|
|
84
|
+
|
|
85
|
+
<% unless user_signed_in? then %>
|
|
86
|
+
|
|
87
|
+
<%- if controller_name == 'sessions' %>
|
|
88
|
+
<div id="login-bar" class="well sidebar-nav">
|
|
89
|
+
<h3>Entrar</h3>
|
|
90
|
+
<%= simple_form_for( resource, :as => resource_name, :url => session_path(resource_name) ) do |f| %>
|
|
91
|
+
<div class="row-fluid">
|
|
92
|
+
<div class="span12">
|
|
93
|
+
<%= f.input :email, :required => false, :autofocus => true, :label => "Email", :placeholder => "Email de Acesso", :input_html => {:class => "span12"} %>
|
|
94
|
+
<%= f.input :password, :required => false, :label => "Senha", :placeholder => "Digite sua Senha", :input_html => {:class => "span12"} %>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="row-fluid">
|
|
98
|
+
<div class="span4"><%= f.button :submit, "Entrar", :class => "btn btn-primary span12" %></div>
|
|
99
|
+
<div class="span8"><%= link_to "Esqueceu a senha?", new_password_path(resource_name), :class => "btn btn-warning span12" %></div>
|
|
100
|
+
</div>
|
|
101
|
+
<% end %>
|
|
102
|
+
<hr />
|
|
103
|
+
<div class="row-fluid">
|
|
104
|
+
<div class="span12">
|
|
105
|
+
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
|
106
|
+
<%= link_to "Cadastre-se", new_registration_path(resource_name), :class => "btn btn-success btn-block" %>
|
|
107
|
+
<% end -%>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div><!-- #login-bar -->
|
|
111
|
+
<% end %>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
<%- if controller_name == 'registrations' %>
|
|
115
|
+
<div id="register-bar" class="well sidebar-nav">
|
|
116
|
+
<h3>Cadastre-se</h3>
|
|
117
|
+
<%= simple_form_for( resource, :as => resource_name, :url => registration_path(resource_name) ) do |f| %>
|
|
118
|
+
<div class="row-fluid">
|
|
119
|
+
<div class="span12">
|
|
120
|
+
<%= f.input :email, :required => false, :autofocus => true, :label => "Email", :placeholder => "Email de Acesso", :input_html => {:class => "span12"} %>
|
|
121
|
+
<%= f.input :password, :required => false, :label => "Senha", :placeholder => "Digite sua Senha", :input_html => {:class => "span12"} %>
|
|
122
|
+
<%= f.input :password_confirmation, :required => false, :label => "Confirme a Senha", :placeholder => "Digite sua Senha", :input_html => {:class => "span12"} %>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="row-fluid">
|
|
126
|
+
<div class="span12"><%= f.button :submit, "Criar minha Conta", :class => "btn btn-primary span12" %></div>
|
|
127
|
+
</div>
|
|
128
|
+
<% end %>
|
|
129
|
+
<hr />
|
|
130
|
+
<div class="row-fluid">
|
|
131
|
+
<div class="span12">
|
|
132
|
+
<h4>Já tem uma conta? Então <small><%= link_to "Entre...", new_session_path(resource_name), :class => "btn btn-success" %></small></h4>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div><!-- #login-bar -->
|
|
136
|
+
<% end %>
|
|
137
|
+
|
|
138
|
+
<% end %>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<div class="well sidebar-nav">
|
|
142
|
+
<ul class="nav nav-list">
|
|
143
|
+
<li class="nav-header">Acesso ao Sistema</li>
|
|
144
|
+
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
|
145
|
+
<li><%= link_to "Cadastre-se", new_registration_path(resource_name) %></li>
|
|
146
|
+
<% end -%>
|
|
147
|
+
<%- if controller_name != 'sessions' %>
|
|
148
|
+
<li><%= link_to "Entrar", new_session_path(resource_name) %></li>
|
|
149
|
+
<% end -%>
|
|
150
|
+
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
|
151
|
+
<li><%= link_to "Instruções de confirmação", new_confirmation_path(resource_name) %></li>
|
|
152
|
+
<% end -%>
|
|
153
|
+
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
|
154
|
+
<li><%= link_to "Desbloquear minha Conta", new_unlock_path(resource_name) %></li>
|
|
155
|
+
<% end -%>
|
|
156
|
+
<% if user_signed_in? then %>
|
|
157
|
+
<li><a href="<%= edit_user_registration_path %>">Minha Conta</a></li>
|
|
158
|
+
<% end %>
|
|
159
|
+
</ul>
|
|
160
|
+
</div><!--/.well -->
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
</div><!--/span-->
|
|
165
|
+
|
|
166
|
+
</div><!--/row-->
|
|
167
|
+
|
|
168
|
+
<footer>
|
|
169
|
+
<%= copyright_info %>
|
|
170
|
+
</footer>
|
|
171
|
+
|
|
172
|
+
</div> <!-- /container -->
|
|
173
|
+
|
|
174
|
+
<!-- Javascripts
|
|
175
|
+
================================================== -->
|
|
176
|
+
<!-- Placed at the end of the document so the pages load faster -->
|
|
177
|
+
<%= javascript_include_tag "application" %>
|
|
178
|
+
|
|
179
|
+
</body>
|
|
180
|
+
</html>
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
|
2
|
+
SimpleForm.setup do |config|
|
|
3
|
+
# Wrappers are used by the form builder to generate a
|
|
4
|
+
# complete input. You can remove any component from the
|
|
5
|
+
# wrapper, change the order or even add your own to the
|
|
6
|
+
# stack. The options given below are used to wrap the
|
|
7
|
+
# whole input.
|
|
8
|
+
config.wrappers :default, :class => :input,
|
|
9
|
+
:hint_class => :field_with_hint, :error_class => :field_with_errors do |b|
|
|
10
|
+
## Extensions enabled by default
|
|
11
|
+
# Any of these extensions can be disabled for a
|
|
12
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
|
13
|
+
# You can make any of these extensions optional by
|
|
14
|
+
# renaming `b.use` to `b.optional`.
|
|
15
|
+
|
|
16
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
|
17
|
+
# and required attributes
|
|
18
|
+
b.use :html5
|
|
19
|
+
|
|
20
|
+
# Calculates placeholders automatically from I18n
|
|
21
|
+
# You can also pass a string as f.input :placeholder => "Placeholder"
|
|
22
|
+
b.use :placeholder
|
|
23
|
+
|
|
24
|
+
## Optional extensions
|
|
25
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => :lookup`
|
|
26
|
+
# to the input. If so, they will retrieve the values from the model
|
|
27
|
+
# if any exists. If you want to enable the lookup for any of those
|
|
28
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
|
29
|
+
|
|
30
|
+
# Calculates maxlength from length validations for string inputs
|
|
31
|
+
b.optional :maxlength
|
|
32
|
+
|
|
33
|
+
# Calculates pattern from format validations for string inputs
|
|
34
|
+
b.optional :pattern
|
|
35
|
+
|
|
36
|
+
# Calculates min and max from length validations for numeric inputs
|
|
37
|
+
b.optional :min_max
|
|
38
|
+
|
|
39
|
+
# Calculates readonly automatically from readonly attributes
|
|
40
|
+
b.optional :readonly
|
|
41
|
+
|
|
42
|
+
## Inputs
|
|
43
|
+
b.use :label_input
|
|
44
|
+
b.use :hint, :wrap_with => { :tag => :span, :class => :hint }
|
|
45
|
+
b.use :error, :wrap_with => { :tag => :span, :class => :error }
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# The default wrapper to be used by the FormBuilder.
|
|
49
|
+
config.default_wrapper = :default
|
|
50
|
+
|
|
51
|
+
# Define the way to render check boxes / radio buttons with labels.
|
|
52
|
+
# Defaults to :nested for bootstrap config.
|
|
53
|
+
# :inline => input + label
|
|
54
|
+
# :nested => label > input
|
|
55
|
+
config.boolean_style = :nested
|
|
56
|
+
|
|
57
|
+
# Default class for buttons
|
|
58
|
+
config.button_class = 'btn'
|
|
59
|
+
|
|
60
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
|
61
|
+
# :first lists the first message for each field.
|
|
62
|
+
# Use :to_sentence to list all errors for each field.
|
|
63
|
+
# config.error_method = :first
|
|
64
|
+
|
|
65
|
+
# Default tag used for error notification helper.
|
|
66
|
+
config.error_notification_tag = :div
|
|
67
|
+
|
|
68
|
+
# CSS class to add for error notification helper.
|
|
69
|
+
config.error_notification_class = 'alert alert-error'
|
|
70
|
+
|
|
71
|
+
# ID to add for error notification helper.
|
|
72
|
+
# config.error_notification_id = nil
|
|
73
|
+
|
|
74
|
+
# Series of attempts to detect a default label method for collection.
|
|
75
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
|
76
|
+
|
|
77
|
+
# Series of attempts to detect a default value method for collection.
|
|
78
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
|
79
|
+
|
|
80
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
|
81
|
+
# config.collection_wrapper_tag = nil
|
|
82
|
+
|
|
83
|
+
# You can define the class to use on all collection wrappers. Defaulting to none.
|
|
84
|
+
# config.collection_wrapper_class = nil
|
|
85
|
+
|
|
86
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
|
87
|
+
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
|
88
|
+
# SimpleForm will force this option to be a label.
|
|
89
|
+
# config.item_wrapper_tag = :span
|
|
90
|
+
|
|
91
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
|
92
|
+
# config.item_wrapper_class = nil
|
|
93
|
+
|
|
94
|
+
# How the label text should be generated altogether with the required text.
|
|
95
|
+
# config.label_text = lambda { |label, required| "#{required} #{label}" }
|
|
96
|
+
|
|
97
|
+
# You can define the class to use on all labels. Default is nil.
|
|
98
|
+
config.label_class = 'control-label'
|
|
99
|
+
|
|
100
|
+
# You can define the class to use on all forms. Default is simple_form.
|
|
101
|
+
# config.form_class = :simple_form
|
|
102
|
+
|
|
103
|
+
# You can define which elements should obtain additional classes
|
|
104
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
|
105
|
+
|
|
106
|
+
# Whether attributes are required by default (or not). Default is true.
|
|
107
|
+
# config.required_by_default = true
|
|
108
|
+
|
|
109
|
+
# Tell browsers whether to use default HTML5 validations (novalidate option).
|
|
110
|
+
# Default is enabled.
|
|
111
|
+
config.browser_validations = false
|
|
112
|
+
|
|
113
|
+
# Collection of methods to detect if a file type was given.
|
|
114
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
|
115
|
+
|
|
116
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
|
117
|
+
# to match as key, and the input type that will be used when the field name
|
|
118
|
+
# matches the regexp as value.
|
|
119
|
+
# config.input_mappings = { /count/ => :integer }
|
|
120
|
+
|
|
121
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
|
122
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
|
123
|
+
# config.wrapper_mappings = { :string => :prepend }
|
|
124
|
+
|
|
125
|
+
# Default priority for time_zone inputs.
|
|
126
|
+
# config.time_zone_priority = nil
|
|
127
|
+
|
|
128
|
+
# Default priority for country inputs.
|
|
129
|
+
# config.country_priority = nil
|
|
130
|
+
|
|
131
|
+
# Default size for text inputs.
|
|
132
|
+
# config.default_input_size = 50
|
|
133
|
+
|
|
134
|
+
# When false, do not use translations for labels.
|
|
135
|
+
# config.translate_labels = true
|
|
136
|
+
|
|
137
|
+
# Automatically discover new inputs in Rails' autoload path.
|
|
138
|
+
# config.inputs_discovery = true
|
|
139
|
+
|
|
140
|
+
# Cache SimpleForm inputs discovery
|
|
141
|
+
# config.cache_discovery = !Rails.env.development?
|
|
142
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
|
2
|
+
SimpleForm.setup do |config|
|
|
3
|
+
config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b|
|
|
4
|
+
b.use :html5
|
|
5
|
+
b.use :placeholder
|
|
6
|
+
b.use :label
|
|
7
|
+
b.wrapper :tag => 'div', :class => 'controls' do |ba|
|
|
8
|
+
ba.use :input
|
|
9
|
+
ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
|
|
10
|
+
ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
config.wrappers :prepend, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
|
|
15
|
+
b.use :html5
|
|
16
|
+
b.use :placeholder
|
|
17
|
+
b.use :label
|
|
18
|
+
b.wrapper :tag => 'div', :class => 'controls' do |input|
|
|
19
|
+
input.wrapper :tag => 'div', :class => 'input-prepend' do |prepend|
|
|
20
|
+
prepend.use :input
|
|
21
|
+
end
|
|
22
|
+
input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
|
23
|
+
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
config.wrappers :append, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
|
|
28
|
+
b.use :html5
|
|
29
|
+
b.use :placeholder
|
|
30
|
+
b.use :label
|
|
31
|
+
b.wrapper :tag => 'div', :class => 'controls' do |input|
|
|
32
|
+
input.wrapper :tag => 'div', :class => 'input-append' do |append|
|
|
33
|
+
append.use :input
|
|
34
|
+
end
|
|
35
|
+
input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
|
36
|
+
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
|
|
41
|
+
# Check the Bootstrap docs (http://twitter.github.com/bootstrap)
|
|
42
|
+
# to learn about the different styles for forms and inputs,
|
|
43
|
+
# buttons and other elements.
|
|
44
|
+
config.default_wrapper = :bootstrap
|
|
45
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
2
|
+
# config/initializers/will_paginate.rb
|
|
3
|
+
# from gist https://gist.github.com/1182136
|
|
4
|
+
|
|
5
|
+
module WillPaginate
|
|
6
|
+
module ActionView
|
|
7
|
+
def will_paginate(collection = nil, options = {})
|
|
8
|
+
options[:renderer] ||= BootstrapLinkRenderer
|
|
9
|
+
super.try :html_safe
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class BootstrapLinkRenderer < LinkRenderer
|
|
13
|
+
protected
|
|
14
|
+
|
|
15
|
+
def html_container(html)
|
|
16
|
+
tag :div, tag(:ul, html), container_attributes
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def page_number(page)
|
|
20
|
+
tag :li, link(page, page, :rel => rel_value(page)), :class => ('active' if page == current_page)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def previous_or_next_page(page, text, classname)
|
|
24
|
+
tag :li, link(text, page || '#'), :class => [classname[0..3], classname, ('disabled' unless page)].join(' ')
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
pt-BR:
|
|
2
|
+
date:
|
|
3
|
+
input:
|
|
4
|
+
formats:
|
|
5
|
+
- default
|
|
6
|
+
- long
|
|
7
|
+
- short
|
|
8
|
+
abbr_day_names:
|
|
9
|
+
- Dom
|
|
10
|
+
- Seg
|
|
11
|
+
- Ter
|
|
12
|
+
- Qua
|
|
13
|
+
- Qui
|
|
14
|
+
- Sex
|
|
15
|
+
- Sáb
|
|
16
|
+
abbr_month_names:
|
|
17
|
+
-
|
|
18
|
+
- Jan
|
|
19
|
+
- Fev
|
|
20
|
+
- Mar
|
|
21
|
+
- Abr
|
|
22
|
+
- Mai
|
|
23
|
+
- Jun
|
|
24
|
+
- Jul
|
|
25
|
+
- Ago
|
|
26
|
+
- Set
|
|
27
|
+
- Out
|
|
28
|
+
- Nov
|
|
29
|
+
- Dez
|
|
30
|
+
day_names:
|
|
31
|
+
- Domingo
|
|
32
|
+
- Segunda
|
|
33
|
+
- Terça
|
|
34
|
+
- Quarta
|
|
35
|
+
- Quinta
|
|
36
|
+
- Sexta
|
|
37
|
+
- Sábado
|
|
38
|
+
formats:
|
|
39
|
+
default: ! '%d/%m/%Y'
|
|
40
|
+
long: ! '%d de %B de %Y'
|
|
41
|
+
short: ! '%d de %B'
|
|
42
|
+
month_names:
|
|
43
|
+
-
|
|
44
|
+
- Janeiro
|
|
45
|
+
- Fevereiro
|
|
46
|
+
- Março
|
|
47
|
+
- Abril
|
|
48
|
+
- Maio
|
|
49
|
+
- Junho
|
|
50
|
+
- Julho
|
|
51
|
+
- Agosto
|
|
52
|
+
- Setembro
|
|
53
|
+
- Outubro
|
|
54
|
+
- Novembro
|
|
55
|
+
- Dezembro
|
|
56
|
+
order:
|
|
57
|
+
- :day
|
|
58
|
+
- :month
|
|
59
|
+
- :year
|
|
60
|
+
datetime:
|
|
61
|
+
distance_in_words:
|
|
62
|
+
about_x_hours:
|
|
63
|
+
one: aproximadamente 1 hora
|
|
64
|
+
other: aproximadamente %{count} horas
|
|
65
|
+
about_x_months:
|
|
66
|
+
one: aproximadamente 1 mês
|
|
67
|
+
other: aproximadamente %{count} meses
|
|
68
|
+
about_x_years:
|
|
69
|
+
one: aproximadamente 1 ano
|
|
70
|
+
other: aproximadamente %{count} anos
|
|
71
|
+
almost_x_years:
|
|
72
|
+
one: quase 1 ano
|
|
73
|
+
other: quase %{count} anos
|
|
74
|
+
half_a_minute: meio minuto
|
|
75
|
+
less_than_x_minutes:
|
|
76
|
+
one: menos de um minuto
|
|
77
|
+
other: menos de %{count} minutos
|
|
78
|
+
less_than_x_seconds:
|
|
79
|
+
one: menos de 1 segundo
|
|
80
|
+
other: menos de %{count} segundos
|
|
81
|
+
over_x_years:
|
|
82
|
+
one: mais de 1 ano
|
|
83
|
+
other: mais de %{count} anos
|
|
84
|
+
x_days:
|
|
85
|
+
one: 1 dia
|
|
86
|
+
other: ! '%{count} dias'
|
|
87
|
+
x_minutes:
|
|
88
|
+
one: 1 minuto
|
|
89
|
+
other: ! '%{count} minutos'
|
|
90
|
+
x_months:
|
|
91
|
+
one: 1 mês
|
|
92
|
+
other: ! '%{count} meses'
|
|
93
|
+
x_seconds:
|
|
94
|
+
one: 1 segundo
|
|
95
|
+
other: ! '%{count} segundos'
|
|
96
|
+
prompts:
|
|
97
|
+
day: Dia
|
|
98
|
+
hour: Hora
|
|
99
|
+
minute: Minuto
|
|
100
|
+
month: Mês
|
|
101
|
+
second: Segundo
|
|
102
|
+
year: Ano
|
|
103
|
+
errors: &errors
|
|
104
|
+
format: ! '%{attribute} %{message}'
|
|
105
|
+
messages:
|
|
106
|
+
accepted: deve ser aceito
|
|
107
|
+
blank: não pode ficar em branco
|
|
108
|
+
confirmation: não está de acordo com a confirmação
|
|
109
|
+
empty: não pode ficar vazio
|
|
110
|
+
equal_to: deve ser igual a %{count}
|
|
111
|
+
even: deve ser par
|
|
112
|
+
exclusion: não está disponível
|
|
113
|
+
greater_than: deve ser maior que %{count}
|
|
114
|
+
greater_than_or_equal_to: deve ser maior ou igual a %{count}
|
|
115
|
+
inclusion: não está incluído na lista
|
|
116
|
+
invalid: não é válido
|
|
117
|
+
less_than: deve ser menor que %{count}
|
|
118
|
+
less_than_or_equal_to: deve ser menor ou igual a %{count}
|
|
119
|
+
not_a_number: não é um número
|
|
120
|
+
not_an_integer: não é um número inteiro
|
|
121
|
+
odd: deve ser ímpar
|
|
122
|
+
record_invalid: ! 'A validação falhou: %{errors}'
|
|
123
|
+
taken: já está em uso
|
|
124
|
+
too_long: ! 'é muito longo (máximo: %{count} caracteres)'
|
|
125
|
+
too_short: ! 'é muito curto (mínimo: %{count} caracteres)'
|
|
126
|
+
wrong_length: não possui o tamanho esperado (%{count} caracteres)
|
|
127
|
+
template:
|
|
128
|
+
body: ! 'Por favor, verifique o(s) seguinte(s) campo(s):'
|
|
129
|
+
header:
|
|
130
|
+
one: ! 'Não foi possível gravar %{model}: 1 erro'
|
|
131
|
+
other: ! 'Não foi possível gravar %{model}: %{count} erros.'
|
|
132
|
+
helpers:
|
|
133
|
+
select:
|
|
134
|
+
prompt: Por favor selecione
|
|
135
|
+
submit:
|
|
136
|
+
create: Criar
|
|
137
|
+
submit: Salvar
|
|
138
|
+
update: Atualizar
|
|
139
|
+
number:
|
|
140
|
+
currency:
|
|
141
|
+
format:
|
|
142
|
+
delimiter: .
|
|
143
|
+
format: ! '%u %n'
|
|
144
|
+
precision: 2
|
|
145
|
+
separator: ! ','
|
|
146
|
+
significant: false
|
|
147
|
+
strip_insignificant_zeros: false
|
|
148
|
+
unit: R$
|
|
149
|
+
format:
|
|
150
|
+
delimiter: .
|
|
151
|
+
precision: 3
|
|
152
|
+
separator: ! ','
|
|
153
|
+
significant: false
|
|
154
|
+
strip_insignificant_zeros: false
|
|
155
|
+
human:
|
|
156
|
+
decimal_units:
|
|
157
|
+
format: ! '%n %u'
|
|
158
|
+
units:
|
|
159
|
+
billion:
|
|
160
|
+
one: bilhão
|
|
161
|
+
other: bilhões
|
|
162
|
+
million:
|
|
163
|
+
one: milhão
|
|
164
|
+
other: milhões
|
|
165
|
+
quadrillion:
|
|
166
|
+
one: quatrilhão
|
|
167
|
+
other: quatrilhões
|
|
168
|
+
thousand: mil
|
|
169
|
+
trillion:
|
|
170
|
+
one: trilhão
|
|
171
|
+
other: trilhões
|
|
172
|
+
unit: ''
|
|
173
|
+
format:
|
|
174
|
+
delimiter: .
|
|
175
|
+
precision: 2
|
|
176
|
+
significant: true
|
|
177
|
+
strip_insignificant_zeros: true
|
|
178
|
+
storage_units:
|
|
179
|
+
format: ! '%n %u'
|
|
180
|
+
units:
|
|
181
|
+
byte:
|
|
182
|
+
one: Byte
|
|
183
|
+
other: Bytes
|
|
184
|
+
gb: GB
|
|
185
|
+
kb: KB
|
|
186
|
+
mb: MB
|
|
187
|
+
tb: TB
|
|
188
|
+
percentage:
|
|
189
|
+
format:
|
|
190
|
+
delimiter: .
|
|
191
|
+
precision:
|
|
192
|
+
format:
|
|
193
|
+
delimiter: .
|
|
194
|
+
support:
|
|
195
|
+
array:
|
|
196
|
+
last_word_connector: ! ' e '
|
|
197
|
+
two_words_connector: ! ' e '
|
|
198
|
+
words_connector: ! ', '
|
|
199
|
+
time:
|
|
200
|
+
am: ''
|
|
201
|
+
input:
|
|
202
|
+
formats:
|
|
203
|
+
- default
|
|
204
|
+
- long
|
|
205
|
+
- short
|
|
206
|
+
formats:
|
|
207
|
+
default: ! '%A, %d de %B de %Y, %H:%M h'
|
|
208
|
+
long: ! '%A, %d de %B de %Y, %H:%M h'
|
|
209
|
+
short: ! '%d/%m, %H:%M h'
|
|
210
|
+
pm: ''
|
|
211
|
+
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
|
212
|
+
activemodel:
|
|
213
|
+
errors:
|
|
214
|
+
<<: *errors
|
|
215
|
+
activerecord:
|
|
216
|
+
errors:
|
|
217
|
+
<<: *errors
|