当我使用它时,它可以正常工作
Public Class ViewModel
Public proTableList As List(Of ProjectType)
Public cTableList As List(Of ClientTable)
Public proTable As ProjectType
// Public iTable As IssueTable // delete this
Public IssueSummary As String // add this
Public IssueDescription As String // add this
End Class
但我想使用文本编辑器来使用' summernote_1'
<%= form_for(@patient, url: patient_add_comment_path(@patient)) do |f| %>
<%= f.text_area :doctor_comment, cols: 65, rows: 3, style: "resize: none; border: 2px solid #888; background-color:#FFF; font-size: 16px; margin-top:0px; margin-left:5px;", placeholder: "doktor comment.." %>
<%= f.text_area :hidden_comment, cols: 65, rows: 3, style: "resize: none; border: 2px solid #888; background-color:#FFF; font-size: 16px; margin-top:0px; margin-left:5px;", placeholder: "doktor hidden comment.." %>
<%= f.submit "Kaydet", class: "btn btn-circle green-haze btn-sm", style: "margin-top: 5px;"%>
<% end %>
当我点击保存按钮时,链接尝试发送并且它没有更新,我该如何解决这个问题?
<div class="col-md-12">
<%= form_for(@patient, url: patient_add_comment_path(@patient)) do |f| %>
<div class="col-md-6">
Doktor Comment <%= f.text_area :doctor_comment, class: "summernote_1"%>
</div>
<div class="col-md-6">
Hidden Comment <%= f.text_area :hidden_comment, class: "summernote_1"%>
</div>
<%= f.submit "Save", class: "btn btn-circle green-haze btn-sm", style: "margin-top: 5px;"%>
<% end %>
</div>