diff options
Diffstat (limited to 'app/views/news/_form.rhtml')
-rw-r--r-- | app/views/news/_form.rhtml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/news/_form.rhtml b/app/views/news/_form.rhtml new file mode 100644 index 000000000..2dcdc9f80 --- /dev/null +++ b/app/views/news/_form.rhtml @@ -0,0 +1,20 @@ +<%= error_messages_for 'news' %> +<div class="box"> +<p><%= f.text_field :title, :required => true, :size => 60 %></p> +<p><%= f.text_area :summary, :cols => 60, :rows => 2 %></p> +<p><%= f.text_area :description, :required => true, :cols => 60, :rows => 15 %></p> +</div> + +<% unless $RDM_TEXTILE_DISABLED %> +<%= javascript_include_tag 'jstoolbar' %> +<script type="text/javascript"> +//<![CDATA[ +if (document.getElementById) { + if (document.getElementById('news_description')) { + var commentTb = new jsToolBar(document.getElementById('news_description')); + commentTb.draw(); + } +} +//]]> +</script> +<% end %>
\ No newline at end of file |