_form.rhtml
28 lines
| 976 B
| text/html+ruby
|
RhtmlLexer
|
r2 | <%= error_messages_for 'document' %> | |
|
r19 | <div class="box"> | |
|
r2 | <!--[form:document]--> | |
|
r19 | <p><label for="document_category_id"><%=l(:field_category)%></label> | |
|
r2 | <select name="document[category_id]"> | |
|
r10 | <%= options_from_collection_for_select @categories, "id", "name", @document.category_id %> | |
|
r2 | </select></p> | |
|
r19 | <p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label> | |
|
r2 | <%= text_field 'document', 'title', :size => 60 %></p> | |
|
r19 | <p><label for="document_description"><%=l(:field_description)%></label> | |
|
r58 | <%= text_area 'document', 'description', :cols => 60, :rows => 15 %></p> | |
|
r2 | <!--[eoform:document]--> | |
|
r58 | </div> | |
|
r164 | <% if Setting.text_formatting == 'textile' %> | |
|
r58 | <%= javascript_include_tag 'jstoolbar' %> | |
<script type="text/javascript"> | |||
//<![CDATA[ | |||
if (document.getElementById) { | |||
if (document.getElementById('document_description')) { | |||
var commentTb = new jsToolBar(document.getElementById('document_description')); | |||
commentTb.draw(); | |||
} | |||
} | |||
//]]> | |||
</script> | |||
<% end %> |