DG IZ; all input fields are now textareas on dashboard page
This commit is contained in:
parent
a0a0b9d0ad
commit
39a1874ce3
6 changed files with 41 additions and 35 deletions
|
|
@ -1,6 +1,7 @@
|
|||
%div.comments
|
||||
= render "comments/new_comment", :post => post
|
||||
%ul.comment_set
|
||||
- for comment in post.comments
|
||||
= render "comments/comment", :comment => comment
|
||||
%li.comment
|
||||
= render "comments/new_comment", :post => post
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
= form_tag("/comments", :remote => true, :class =>"new_comment", :id => "new_comment-#{post.id}") do
|
||||
%p
|
||||
= 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]"
|
||||
= submit_tag 'comment', :id => "comment_submit_#{post.id}", :name => "commit"
|
||||
= text_area_tag "comment_text", 'leave a comment', :size => 30, :name => 'comment[text]'
|
||||
= hidden_field_tag "comment_post_id", "#{post.id}", :name => "comment[post_id]"
|
||||
= submit_tag 'comment', :id => "comment_submit_#{post.id}", :name => "commit"
|
||||
|
|
|
|||
|
|
@ -25,15 +25,7 @@
|
|||
|
||||
ul#publisher_content_pickers li {
|
||||
display: inline;
|
||||
padding: 0.6em;
|
||||
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
|
||||
border: 1px solid #666;
|
||||
|
||||
background-color: rgba( 255,255,255, 1 );
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
:javascript
|
||||
|
|
@ -74,21 +66,17 @@
|
|||
#publisher_form
|
||||
= form_for StatusMessage.new, :remote => true do |f|
|
||||
= f.error_messages
|
||||
%p
|
||||
= f.text_field :message, :value => "Message"
|
||||
= f.submit "Post"
|
||||
|
||||
= f.text_area :message, :value => "Message"
|
||||
= f.submit "Post"
|
||||
|
||||
= form_for Bookmark.new, :remote => true do |f|
|
||||
= f.error_messages
|
||||
%p
|
||||
= f.text_field :title, :value => "Title"
|
||||
= f.text_field :link, :value => "URL"
|
||||
= f.submit "Post"
|
||||
= f.text_area :title, :value => "Title"
|
||||
= f.text_area :link, :value => "URL"
|
||||
= f.submit "Post"
|
||||
|
||||
= form_for Blog.new, :remote => true do |f|
|
||||
= f.error_messages
|
||||
%p
|
||||
= f.text_field :title, :value => "Title"
|
||||
= f.text_area :body
|
||||
= f.submit "Post"
|
||||
= f.text_field :title, :value => "Title"
|
||||
= f.text_area :body, :id => "blog_editor"
|
||||
= f.submit "Post"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
$(document).ready(function(){
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
mode : "exact",
|
||||
elements: "blog_editor",
|
||||
theme : "advanced",
|
||||
plugins : "emotions,spellchecker,advhr,insertdatetime,preview",
|
||||
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ ul.comment_set {
|
|||
margin-bottom: 0.5em;
|
||||
background-color: #f2f8fc;
|
||||
padding: 0.6em;
|
||||
border-radius: 5px; }
|
||||
border-bottom: 1px solid #cccccc; }
|
||||
ul.comment_set li.comment .from {
|
||||
color: #666666;
|
||||
font-weight: normal; }
|
||||
|
|
@ -205,9 +205,6 @@ ul.comment_set {
|
|||
color: #333333;
|
||||
font-weight: bold; }
|
||||
|
||||
.new_comment {
|
||||
display: none; }
|
||||
|
||||
img#profile_picture {
|
||||
width: 100%; }
|
||||
|
||||
|
|
@ -228,3 +225,12 @@ img#user_picture {
|
|||
|
||||
#debug_info {
|
||||
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
|
|||
:top 0.8em
|
||||
:bottom 0.4em
|
||||
|
||||
|
||||
#main
|
||||
:width 100%
|
||||
|
||||
|
|
@ -232,7 +231,8 @@ ul.comment_set
|
|||
:bottom 0.5em
|
||||
:background-color #F2F8FC
|
||||
:padding 0.6em
|
||||
:border-radius 5px
|
||||
:border
|
||||
:bottom 1px solid #ccc
|
||||
|
||||
.from
|
||||
:color #666
|
||||
|
|
@ -243,8 +243,6 @@ ul.comment_set
|
|||
:font
|
||||
:weight bold
|
||||
|
||||
.new_comment
|
||||
:display none
|
||||
|
||||
|
||||
img#profile_picture
|
||||
|
|
@ -269,3 +267,16 @@ img#user_picture
|
|||
|
||||
#debug_info
|
||||
: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
|
||||
|
|
|
|||
Loading…
Reference in a new issue