You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_form.rhtml 965B

1234567891011121314151617181920212223242526272829
  1. <%= error_messages_for 'document' %>
  2. <div class="box">
  3. <!--[form:document]-->
  4. <p><label for="document_category_id"><%=l(:field_category)%></label>
  5. <select name="document[category_id]">
  6. <%= options_from_collection_for_select @categories, "id", "name", @document.category_id %>
  7. </select></p>
  8. <p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label>
  9. <%= text_field 'document', 'title', :size => 60 %></p>
  10. <p><label for="document_description"><%=l(:field_description)%></label>
  11. <%= text_area 'document', 'description', :cols => 60, :rows => 15 %></p>
  12. <!--[eoform:document]-->
  13. </div>
  14. <% unless $RDM_TEXTILE_DISABLED %>
  15. <%= javascript_include_tag 'jstoolbar' %>
  16. <script type="text/javascript">
  17. //<![CDATA[
  18. if (document.getElementById) {
  19. if (document.getElementById('document_description')) {
  20. var commentTb = new jsToolBar(document.getElementById('document_description'));
  21. commentTb.draw();
  22. }
  23. }
  24. //]]>
  25. </script>
  26. <% end %>