mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
c2d6b4d960
* Add option to disable save button when OVE editor is in readonly mode [SCI-9110]
30 lines
1 KiB
Text
30 lines
1 KiB
Text
<html>
|
|
<head>
|
|
<%= csp_meta_tag %>
|
|
<%= javascript_include_tag 'i18n_bundle' %>
|
|
<%= stylesheet_link_tag 'sn_icon_font' %>
|
|
<%= stylesheet_link_tag 'application' %>
|
|
<%= stylesheet_link_tag 'tailwind' %>
|
|
<%= stylesheet_link_tag 'open_vector_editor' %>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<% if @ove_enabled %>
|
|
<div id="open-vector-editor" data-behaviour="vue">
|
|
<open-vector-editor
|
|
file-url="<%= @file_url %>"
|
|
file-name="<%= @file_name %>"
|
|
update-url="<%= @asset ? gene_sequence_asset_url(@asset) : gene_sequence_assets_url(parent_type: params[:parent_type], parent_id: params[:parent_id]) %>"
|
|
:can-edit-file="<%= asset_managable? %>"
|
|
:ove-enabled-days-left="<%= OpenVectorEditorService.evaluation_period_left %>"
|
|
/>
|
|
</div>
|
|
<%= javascript_include_tag 'open_vector_editor' %>
|
|
<%= javascript_include_tag 'vue_components_open_vector_editor' %>
|
|
<% end %>
|
|
</body>
|
|
</html>
|