scinote-web/app/views/result_tables/_edit.html.erb

24 lines
841 B
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<div id="table-form" class="well">
<%= bootstrap_form_for(@result, url: result_table_path(format: :json),
data: { 'name-max-length': Constants::NAME_MAX_LENGTH },
remote: true) do |f| %>
2016-02-12 23:52:43 +08:00
<%= f.text_field :name, style: "margin-top: 10px;" %><br />
<div class="editable-table">
<%= f.fields_for :table do |ff| %>
<%= ff.hidden_field(:contents, value: ff.object.contents_utf_8, class: "hot-contents" ) %>
<div class="hot">
</div>
<% end %>
</div>
<hr>
<div class="align-right">
2020-01-07 23:13:34 +08:00
<button type="button" class="btn btn-secondary cancel-edit">
<%= t("general.cancel")%>
</button>
2020-05-07 03:10:49 +08:00
<%= f.button t("general.save"),
2020-01-07 23:13:34 +08:00
class: 'btn btn-primary save-result',
onclick: "Results.processResult(event, Results.ResultTypeEnum.TABLE);" %>
</div>
2016-02-12 23:52:43 +08:00
<% end %>
</div>