2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'news' %>
|
2006-09-02 17:33:23 +04:00
|
|
|
<div class="box">
|
|
|
|
<p><%= f.text_field :title, :required => true, :size => 60 %></p>
|
|
|
|
<p><%= f.text_area :summary, :cols => 60, :rows => 2 %></p>
|
2006-12-01 01:17:44 +03:00
|
|
|
<p><%= f.text_area :description, :required => true, :cols => 60, :rows => 15 %></p>
|
2006-11-12 21:50:30 +03:00
|
|
|
</div>
|
|
|
|
|
2007-01-21 14:50:22 +03:00
|
|
|
<% if Setting.text_formatting == 'textile' %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<%= 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 %>
|