Commit 68a6f60d3c879f71d62de5c4f8d7c5dbdb06331d
Committed by
Daniela Feitosa
1 parent
ffee6f29
Exists in
master
and in
28 other branches
Styling textarea for activity comment
Showing
2 changed files
with
16 additions
and
3 deletions
Show diff stats
app/views/profile/_profile_comment_form.rhtml
| 1 | <div id='profile-wall-reply-<%= activity.id%>'> | 1 | <div id='profile-wall-reply-<%= activity.id%>'> |
| 2 | <div id='profile-wall-reply-form-<%= activity.id%>'> | 2 | <div id='profile-wall-reply-form-<%= activity.id%>'> |
| 3 | <p class='profile-wall-reply'> | 3 | <p class='profile-wall-reply'> |
| 4 | - <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_comment_on_activity'}, :update => 'profile_activities' do %> | ||
| 5 | - <%= text_area :comment, :body, {:id => "reply_content_#{activity.id}", :cols => 50, :rows => 1, :class => 'submit-with-keypress'} %> | 4 | + <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_comment_on_activity'}, :update => 'profile_activities', :html => { :class => 'profile-wall-reply-form' } do %> |
| 5 | + <%= text_area :comment, :body, {:id => "reply_content_#{activity.id}", :cols => 50, :rows => 1, :class => 'submit-with-keypress', :title => _('Leave your comment'), :onfocus => 'if(this.value==this.title){this.value="";this.style.color="#000"}', :onblur => 'if(this.value==""){this.value=this.title;this.style.color="#ccc"}', :value => _('Leave your comment'), :style => 'color: #ccc' } %> | ||
| 6 | <%= hidden_field_tag :source_id, activity.id, :id => "activity_id_#{activity.id}" %> | 6 | <%= hidden_field_tag :source_id, activity.id, :id => "activity_id_#{activity.id}" %> |
| 7 | <% end %> | 7 | <% end %> |
| 8 | </p> | 8 | </p> |
public/stylesheets/application.css
| @@ -6465,6 +6465,15 @@ h1#agenda-title { | @@ -6465,6 +6465,15 @@ h1#agenda-title { | ||
| 6465 | margin: 0; | 6465 | margin: 0; |
| 6466 | } | 6466 | } |
| 6467 | 6467 | ||
| 6468 | +.profile-wall-reply-form { | ||
| 6469 | + display: block; | ||
| 6470 | + background: #e8e8e8; | ||
| 6471 | + border-bottom: 1px solid #d2d2d2; | ||
| 6472 | + border-top: 1px solid #fff; | ||
| 6473 | + margin-left: 50px; | ||
| 6474 | + padding: 0 5px; | ||
| 6475 | +} | ||
| 6476 | + | ||
| 6468 | .profile-wall-scrap-replies { | 6477 | .profile-wall-scrap-replies { |
| 6469 | float: right; | 6478 | float: right; |
| 6470 | margin-right: 2px; | 6479 | margin-right: 2px; |
| @@ -6497,7 +6506,11 @@ h1#agenda-title { | @@ -6497,7 +6506,11 @@ h1#agenda-title { | ||
| 6497 | 6506 | ||
| 6498 | #profile-wall .profile-wall-scrap-replies textarea, | 6507 | #profile-wall .profile-wall-scrap-replies textarea, |
| 6499 | #profile-network textarea, #profile-wall textarea { | 6508 | #profile-network textarea, #profile-wall textarea { |
| 6500 | - width: 99%; | 6509 | + width: 98%; |
| 6510 | +} | ||
| 6511 | + | ||
| 6512 | +#profile-wall textarea { | ||
| 6513 | + width: 375px; | ||
| 6501 | } | 6514 | } |
| 6502 | 6515 | ||
| 6503 | .profile-wall-scrap-replies { | 6516 | .profile-wall-scrap-replies { |