2019-07-01 17:51:13 +08:00
|
|
|
<% if MarvinJsService.enabled? %>
|
|
|
|
<div id="MarvinJsModal"
|
|
|
|
class="modal modal-marvin-js"
|
|
|
|
role="dialog"
|
|
|
|
aria-labelledby="marvinJsModal"
|
|
|
|
aria-hidden="true"
|
|
|
|
data-backdrop="static"
|
|
|
|
data-keyboard="false">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<span class="file-name">
|
2021-01-20 19:37:41 +08:00
|
|
|
<div class="sci-input-container ">
|
|
|
|
<%= text_field_tag :sketch_name, '', placeholder: t('marvinjs.structure_placeholder'), class: 'sci-input-field' %>
|
|
|
|
</div>
|
2019-07-01 17:51:13 +08:00
|
|
|
</span>
|
2021-01-20 19:37:41 +08:00
|
|
|
<button class="file-save-link btn btn-light">
|
|
|
|
<i class="fas fa-save"></i>
|
|
|
|
<%= t('SaveClose')%>
|
|
|
|
</button>
|
|
|
|
<button class="preview-close btn btn-light icon-btn" data-dismiss="modal">
|
2023-06-08 23:33:50 +08:00
|
|
|
<i class="sn-icon sn-icon-close"></i>
|
2021-01-20 19:37:41 +08:00
|
|
|
</button>
|
2019-07-01 17:51:13 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div id="marvinjs-editor" data-marvinjs-mode="<%= ENV['MARVINJS_API_KEY'] ? 'remote' : 'local' %>">
|
|
|
|
<% if ENV['MARVINJS_API_KEY'] %>
|
|
|
|
<div id="marvinjs-sketch" style="width: 600px; height: 480px"></div>
|
|
|
|
<% elsif ENV['MARVINJS_URL'] %>
|
|
|
|
<iframe id="marvinjs-sketch" src="<%= MarvinJsService.url %>" frameBorder="0"></iframe>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-04-27 00:24:21 +08:00
|
|
|
</div>
|
2019-07-01 17:51:13 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
2019-09-24 17:02:15 +08:00
|
|
|
<div class="modal modal-promo-marvin-js" id="MarvinJsPromoModal" tabindex="-1" role="dialog">
|
2019-07-01 17:51:13 +08:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2023-08-17 19:55:17 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="sn-icon sn-icon-close"></i></button>
|
2019-07-01 17:51:13 +08:00
|
|
|
<h4 class="modal-title">
|
|
|
|
MarvinJS Promo Title
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
MarvinJS Promo Description
|
2019-04-27 00:24:21 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-01 17:51:13 +08:00
|
|
|
<% end %>
|