fix textareas
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* CSS for Phones only */
|
||||
@media only screen
|
||||
and (max-width: 700px)
|
||||
@media only screen and (max-width: 700px)
|
||||
{
|
||||
|
||||
th, td {
|
||||
|
||||
@@ -459,17 +459,9 @@ textarea {
|
||||
height: 75px;
|
||||
}
|
||||
|
||||
&.full-width {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
&.horizontal {
|
||||
resize: horizontal;
|
||||
}
|
||||
}
|
||||
|
||||
tr.spacer {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%= form_for @post do |f|%>
|
||||
<%= f.text_field :title %>
|
||||
<%= render partial: "mdhelp" %>
|
||||
<%= f.text_area :content, class: "vertical" %>
|
||||
<%= f.text_area :content%>
|
||||
<p><%= f.submit "Update Post", class: "btn blue left" %></p>
|
||||
<% end %>
|
||||
<p><%= button_to "Delete post", @post, method: "delete", data: {confirm: "Delete post & comments forever?"}, class: "btn red right" %></p>
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
<%= form_for @post do |f|%>
|
||||
<%= f.text_field :title, placeholder: "Title" %>
|
||||
<%= render partial: "mdhelp" %>
|
||||
<%= f.text_area :content, placeholder: "Text", input_html: {class: "vertical"} %>
|
||||
<%= f.text_area :content, placeholder: "Text" %>
|
||||
<p><%= f.submit "Create Post", class: "btn blue left" %></p>
|
||||
<% end %>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%= form_for @info do |f|%>
|
||||
<%= f.text_field :title%>
|
||||
<%= render partial: "mdhelp" %>
|
||||
<%= f.text_area :content, class: "vertical" %>
|
||||
<%= f.text_area :content %>
|
||||
<p><%= f.submit "Update Info", class: "btn blue left" %></p>
|
||||
<% end %>
|
||||
<p><%= button_to "Delete Info", @info, method: "delete", data: {confirm: "Delete Info forever?"}, class: "btn red right" %></p>
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
<%= form_for @info, url: info_index_path do |f|%>
|
||||
<%= f.text_field :title, placeholder: "Title" %>
|
||||
<%= render partial: "mdhelp" %>
|
||||
<%= f.text_area :content, placeholder: "Text", class: "vertical" %>
|
||||
<%= f.text_area :content, placeholder: "Text" %>
|
||||
<p><%= f.submit "Create Info", class: "btn blue left" %></p>
|
||||
<% end %>
|
||||
@@ -54,7 +54,7 @@
|
||||
<td>About you</td>
|
||||
<td>
|
||||
<%= render partial: "mdhelp" %>
|
||||
<%= f.text_area :about, class: "vertical", placeholder: "Tell us something about you...", disabled: !can_edit? %>
|
||||
<%= f.text_area :about, placeholder: "Tell us something about you...", disabled: !can_edit? %>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user