mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 04:32:16 +08:00
fix position of buttons in text result
This commit is contained in:
parent
b0b2484fdf
commit
6afc5c5a4b
2 changed files with 2 additions and 3 deletions
|
@ -2,9 +2,8 @@
|
|||
<%= bootstrap_form_for(@result, url: result_text_path(format: :json), remote: :true) do |f| %>
|
||||
<%= f.text_field :name, style: "margin-top: 10px;" %><br />
|
||||
<%= f.fields_for :result_text do |ff| %>
|
||||
<%= quill_editor nil, { name: 'result[result_text_attributes][text]', value: @result.result_text.text } %>
|
||||
<%= quill_editor nil, { name: 'result[result_text_attributes][text]', value: @result.result_text.text } %><br />
|
||||
<% end %>
|
||||
<hr>
|
||||
<%= f.submit t("result_texts.edit.update"), class: 'btn btn-primary save-result', onclick: "processResult(event, ResultTypeEnum.TEXT, true);" %>
|
||||
<button type="button" class="btn btn-default cancel-edit">
|
||||
<%= t("general.cancel")%>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<%= bootstrap_form_for(@result, url: my_module_result_texts_path(format: :json), remote: true) do |f| %>
|
||||
<%= f.text_field :name, style: "margin-top: 10px;" %><br />
|
||||
<%= f.fields_for :result_text do |ff| %>
|
||||
<%= quill_editor nil, { name: 'result[result_text_attributes][text]', value: @result.result_text.text } %>
|
||||
<%= quill_editor nil, { name: 'result[result_text_attributes][text]', value: @result.result_text.text } %><br />
|
||||
<% end %>
|
||||
<%= f.submit t("result_texts.new.create"), class: 'btn btn-primary save-result', onclick: "processResult(event, ResultTypeEnum.TEXT, false);" %>
|
||||
<button type="button" class="btn btn-default cancel-new">
|
||||
|
|
Loading…
Reference in a new issue