Commit 365278f4bfcb9257a2d15023364d96b3722011f9
1 parent
8b0a64db
Exists in
master
and in
29 other branches
ActionItem56: done, contudo quero testar o input radio.
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@853 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
5 changed files
with
46 additions
and
3 deletions
Show diff stats
app/helpers/application_helper.rb
| ... | ... | @@ -319,7 +319,15 @@ module ApplicationHelper |
| 319 | 319 | src = <<-END_SRC |
| 320 | 320 | def #{selector}(field, *args, &proc) |
| 321 | 321 | column = object.class.columns_hash[field.to_s] |
| 322 | - "<div class='formfield'>" + "<div><label for='\#{field}'>" + (column ? column.human_name : _(object.class.name + "|" + field.to_s.humanize)) + "</label></div>" + super + "</div>" | |
| 322 | + "<div class='formfieldline'>" + | |
| 323 | + "\n <label class='formlabel'" + | |
| 324 | + " for='\#{object.class.to_s.downcase}_\#{field}'>" + | |
| 325 | + ( column ? | |
| 326 | + column.human_name : | |
| 327 | + _(object.class.name + "|" + field.to_s.humanize) | |
| 328 | + ) + | |
| 329 | + "</label>" + | |
| 330 | + "\n <div class='formfield #{selector}'>" + super + "</div>\n</div>" | |
| 323 | 331 | end |
| 324 | 332 | END_SRC |
| 325 | 333 | class_eval src, __FILE__, __LINE__ | ... | ... |
app/views/account/signup.rhtml
4 KB
| ... | ... | @@ -0,0 +1,35 @@ |
| 1 | + | |
| 2 | +.formfieldline { | |
| 3 | + padding: 3px 0px; | |
| 4 | +} | |
| 5 | + | |
| 6 | +.formlabel { | |
| 7 | + font-size: 12px; | |
| 8 | + color: #444; | |
| 9 | + display: block; | |
| 10 | + padding: 2px 5px; | |
| 11 | +} | |
| 12 | + | |
| 13 | +.formfield input, | |
| 14 | +.formfield textarea { | |
| 15 | + background: transparent url("../images/input-bg.gif") top left no-repeat; | |
| 16 | + border: 1px solid #999; | |
| 17 | + border-top: none; | |
| 18 | + border-left: none; | |
| 19 | + padding: 3px 0px 1px 0px; | |
| 20 | + text-indent: 5px; | |
| 21 | + color: #585858; | |
| 22 | + width: 99%; | |
| 23 | +} | |
| 24 | + | |
| 25 | +.submitline { | |
| 26 | + text-align: center; | |
| 27 | +} | |
| 28 | + | |
| 29 | +.submit { | |
| 30 | + border: 1px solid #777; | |
| 31 | + color: #585858; | |
| 32 | + background: #EEE; | |
| 33 | + padding: 0px 30px; | |
| 34 | +} | |
| 35 | + | ... | ... |