2013-11-23 20:56:22 +08:00
|
|
|
<%= labelled_form_for(@memo, :url => forum_memos_path) do |f| %>
|
|
|
|
|
2015-04-24 17:31:19 +08:00
|
|
|
<div class="actions" style="max-width:680px;">
|
2015-03-26 15:41:55 +08:00
|
|
|
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
|
2015-05-14 14:38:22 +08:00
|
|
|
<p><%= f.text_field :subject, :required => true, :size => 95, :style => 'width:98%' %></p>
|
2015-04-24 17:31:19 +08:00
|
|
|
<p style="max-width:680px"><%= f.kindeditor :content,:width=>'99%', :required => true %></p>
|
2015-03-26 15:41:55 +08:00
|
|
|
<!--<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor01');</script> -->
|
2015-05-14 14:38:22 +08:00
|
|
|
<div class="cl"></div>
|
2014-08-14 15:15:52 +08:00
|
|
|
|
2015-05-14 14:38:22 +08:00
|
|
|
<label class="fl" style="margin-left: -80px;margin-top: 10px;"><%= l(:label_attachment_plural) %></label>
|
|
|
|
<div style="margin-left: 110px;margin-top: 10px;margin-bottom: 10px;" class="fl">
|
|
|
|
<%= render :partial => 'attachments/form', :locals => {:container => @memo} %>
|
|
|
|
</div>
|
2015-04-23 11:50:16 +08:00
|
|
|
<%= f.submit :value => l(:label_memo_create), :style => "margin-left: 100px;"%> <%= link_to l(:button_back), forum_path(@forum) %>
|
2013-11-23 20:56:22 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|