Skip to content
Extraits de code Groupes Projets
Valider 39a1874c rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

DG IZ; all input fields are now textareas on dashboard page

parent a0a0b9d0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
%div.comments %div.comments
= render "comments/new_comment", :post => post
%ul.comment_set %ul.comment_set
- for comment in post.comments - for comment in post.comments
= render "comments/comment", :comment => comment = render "comments/comment", :comment => comment
%li.comment
= render "comments/new_comment", :post => post
= form_tag("/comments", :remote => true, :class =>"new_comment", :id => "new_comment-#{post.id}") do = form_tag("/comments", :remote => true, :class =>"new_comment", :id => "new_comment-#{post.id}") do
%p = text_area_tag "comment_text", 'leave a comment', :size => 30, :name => 'comment[text]'
= text_field_tag "comment_text", 'leave a comment', :size => 30, :name => 'comment[text]' = hidden_field_tag "comment_post_id", "#{post.id}", :name => "comment[post_id]"
= hidden_field_tag "comment_post_id", "#{post.id}", :name => "comment[post_id]" = submit_tag 'comment', :id => "comment_submit_#{post.id}", :name => "commit"
= submit_tag 'comment', :id => "comment_submit_#{post.id}", :name => "commit"
...@@ -25,15 +25,7 @@ ...@@ -25,15 +25,7 @@
ul#publisher_content_pickers li { ul#publisher_content_pickers li {
display: inline; display: inline;
padding: 0.6em; margin-right: 20px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #666;
background-color: rgba( 255,255,255, 1 );
} }
:javascript :javascript
...@@ -74,21 +66,17 @@ ...@@ -74,21 +66,17 @@
#publisher_form #publisher_form
= form_for StatusMessage.new, :remote => true do |f| = form_for StatusMessage.new, :remote => true do |f|
= f.error_messages = f.error_messages
%p = f.text_area :message, :value => "Message"
= f.text_field :message, :value => "Message" = f.submit "Post"
= f.submit "Post"
= form_for Bookmark.new, :remote => true do |f| = form_for Bookmark.new, :remote => true do |f|
= f.error_messages = f.error_messages
%p = f.text_area :title, :value => "Title"
= f.text_field :title, :value => "Title" = f.text_area :link, :value => "URL"
= f.text_field :link, :value => "URL" = f.submit "Post"
= f.submit "Post"
= form_for Blog.new, :remote => true do |f| = form_for Blog.new, :remote => true do |f|
= f.error_messages = f.error_messages
%p = f.text_field :title, :value => "Title"
= f.text_field :title, :value => "Title" = f.text_area :body, :id => "blog_editor"
= f.text_area :body = f.submit "Post"
= f.submit "Post"
$(document).ready(function(){ $(document).ready(function(){
tinyMCE.init({ tinyMCE.init({
mode : "textareas", mode : "exact",
elements: "blog_editor",
theme : "advanced", theme : "advanced",
plugins : "emotions,spellchecker,advhr,insertdatetime,preview", plugins : "emotions,spellchecker,advhr,insertdatetime,preview",
......
...@@ -197,7 +197,7 @@ ul.comment_set { ...@@ -197,7 +197,7 @@ ul.comment_set {
margin-bottom: 0.5em; margin-bottom: 0.5em;
background-color: #f2f8fc; background-color: #f2f8fc;
padding: 0.6em; padding: 0.6em;
border-radius: 5px; } border-bottom: 1px solid #cccccc; }
ul.comment_set li.comment .from { ul.comment_set li.comment .from {
color: #666666; color: #666666;
font-weight: normal; } font-weight: normal; }
...@@ -205,9 +205,6 @@ ul.comment_set { ...@@ -205,9 +205,6 @@ ul.comment_set {
color: #333333; color: #333333;
font-weight: bold; } font-weight: bold; }
.new_comment {
display: none; }
img#profile_picture { img#profile_picture {
width: 100%; } width: 100%; }
...@@ -228,3 +225,12 @@ img#user_picture { ...@@ -228,3 +225,12 @@ img#user_picture {
#debug_info { #debug_info {
margin-top: 20px; } margin-top: 20px; }
textarea {
font-family: "lucida grande", "sans-serif";
font-size: 14px;
height: 18px;
display: block;
width: 100%;
-moz-box-shadow: 0 2px 0px white;
border-top: 1px solid #999999; }
...@@ -117,7 +117,6 @@ ul#stream_filters ...@@ -117,7 +117,6 @@ ul#stream_filters
:top 0.8em :top 0.8em
:bottom 0.4em :bottom 0.4em
#main #main
:width 100% :width 100%
...@@ -232,7 +231,8 @@ ul.comment_set ...@@ -232,7 +231,8 @@ ul.comment_set
:bottom 0.5em :bottom 0.5em
:background-color #F2F8FC :background-color #F2F8FC
:padding 0.6em :padding 0.6em
:border-radius 5px :border
:bottom 1px solid #ccc
.from .from
:color #666 :color #666
...@@ -243,8 +243,6 @@ ul.comment_set ...@@ -243,8 +243,6 @@ ul.comment_set
:font :font
:weight bold :weight bold
.new_comment
:display none
img#profile_picture img#profile_picture
...@@ -269,3 +267,16 @@ img#user_picture ...@@ -269,3 +267,16 @@ img#user_picture
#debug_info #debug_info
:margin-top 20px :margin-top 20px
textarea
:font
:family 'lucida grande', 'sans-serif'
:size 14px
:height 18px
:display block
:width 100%
:-moz-box-shadow 0 2px 0px #fff
:border-top 1px solid #999
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter