2023-02-21 18:03:06 +08:00
|
|
|
<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>
|
2023-02-21 18:03:06 +08:00
|
|
|
<h4 class="modal-title" id="publish-results-modal-label">
|
|
|
|
<%= t('protocols.index.protocolsio.title') %>
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class='protocolsio-container'>
|
|
|
|
<div class='main-protocol-panel'>
|
|
|
|
<div class="protocol-menu">
|
|
|
|
<%= form_tag team_list_external_protocol_path(@current_team.id),
|
|
|
|
method: :get,
|
|
|
|
class: 'protocols-search-bar',
|
|
|
|
remote: true do %>
|
|
|
|
<%= hidden_field_tag 'protocol_source', 'protocolsio/v3' %>
|
2023-04-18 18:43:56 +08:00
|
|
|
<%= hidden_field_tag 'page_id', 0, id: 'page-id' %>
|
2023-02-21 18:03:06 +08:00
|
|
|
<div class='header'>
|
|
|
|
<div class='protocols-search-bar-panel'>
|
|
|
|
<div class='sci-input-container left-icon'>
|
|
|
|
<input class='sci-input-field'
|
|
|
|
type='text'
|
|
|
|
name='key'
|
|
|
|
placeholder="<%= t('protocols.index.protocolsio.search_bar_placeholder') %>" />
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class='sn-icon sn-icon-search'></i>
|
2023-02-21 18:03:06 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='protocol-sort'>
|
2023-06-19 14:04:58 +08:00
|
|
|
<div class="dropdown sort-menu" title="<%= t("general.sort.title") %>">
|
2023-06-28 02:31:25 +08:00
|
|
|
<button class="btn btn-light btn-black icon-btn" type="button" id="sortMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
2023-06-08 14:33:37 +08:00
|
|
|
<span><i class="sn-icon sn-icon-sort-down"></i></span>
|
2023-02-21 18:03:06 +08:00
|
|
|
</button>
|
|
|
|
<ul id="sortMenuDropdown" class="dropdown-menu sort-projects-menu dropdown-menu-right" aria-labelledby="sortMenu">
|
2023-03-06 19:00:53 +08:00
|
|
|
<% {atoz: :alpha_asc, ztoa: :alpha_desc, new: :newest, old: :oldest}.each do |name, value| %>
|
2023-02-21 18:03:06 +08:00
|
|
|
<li>
|
|
|
|
<input type='radio' name='sort_by' value='<%= value %>' <%= name == :new ? 'checked' : '' %> />
|
2023-03-06 19:00:53 +08:00
|
|
|
<label for="<%= value %>"><%= t("protocols.index.protocolsio.sort.#{name.to_s}_html") %></label>
|
2023-02-21 18:03:06 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div class='protocol-list-side-panel'>
|
|
|
|
<div class='row empty-text'>
|
|
|
|
<%= t('protocols.index.protocolsio.list_panel.empty_text') %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='list-wrapper perfect-scrollbar'></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='protocol-preview-panel'>
|
|
|
|
<div class='empty-preview-panel'>
|
|
|
|
|
|
|
|
<div class='row'>
|
|
|
|
<div class='text-rows protocol-preview-text'>
|
|
|
|
<%= t('protocols.index.protocolsio.preview_panel.empty_title') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='row'>
|
|
|
|
<div class='text-separator'> <hr> </div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='row'>
|
|
|
|
<div class='text-rows protocol-preview-subtext'>
|
|
|
|
<%= t('protocols.index.protocolsio.preview_panel.empty_subtext') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='row-bottom'>
|
|
|
|
<div class='text-rows protocol-preview-subtext'>
|
|
|
|
<%= t('protocols.index.protocolsio.preview_panel.powered_by') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='full-preview-panel' style='display: none;'>
|
|
|
|
<div class='row preview-banner'>
|
|
|
|
<div class='col-md-6 txt-holder'>
|
|
|
|
<span>
|
|
|
|
<b><%= t('protocols.index.protocolsio.preview_panel.banner_text') %></b>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class='col-md-6 btn-holder'>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='preview-holder perfect-scrollbar'>
|
|
|
|
<iframe scrolling="no" class='preview-iframe'></iframe>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" data-dismiss="modal" class="btn btn-secondary"><%=t('general.cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-primary convert-protocol" disabled><%= t('protocols.index.protocolsio.convert') %></button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= javascript_include_tag "protocols/steps" %>
|
|
|
|
<%= javascript_include_tag "protocols/protocolsio.js" %>
|