2019-06-13 05:38:04 +08:00
|
|
|
<div class='external-protocols-tab'>
|
2019-07-09 20:35:40 +08:00
|
|
|
<%= form_tag team_list_external_protocol_path(@current_team.id),
|
|
|
|
method: :get,
|
|
|
|
class: 'protocols-search-bar',
|
|
|
|
remote: true do %>
|
|
|
|
<div class='header'>
|
|
|
|
<div class='protocols-search-bar-panel'>
|
2019-06-28 03:26:28 +08:00
|
|
|
<div class='service-provider'>
|
|
|
|
<%= image_tag 'external_protocols/protocolsio_logo.png',
|
|
|
|
class: 'protocolsio-logo' %>
|
2019-07-09 20:35:40 +08:00
|
|
|
<a class='protocolsio-title' href='<%= Constants::PROTOCOLS_IO_URL %>' target='_blank'>
|
2019-07-05 00:22:51 +08:00
|
|
|
<%= t('protocols.index.external_protocols.protocolsio_title') %></a>
|
2019-06-28 08:26:31 +08:00
|
|
|
<%= hidden_field_tag 'protocol_source', 'protocolsio/v3' %>
|
2019-07-04 21:35:18 +08:00
|
|
|
<%= hidden_field_tag 'page_id', 1, id: 'page-id' %>
|
2019-06-28 03:26:28 +08:00
|
|
|
</div>
|
2019-06-13 05:38:04 +08:00
|
|
|
|
2019-06-28 03:26:28 +08:00
|
|
|
<div class='input-group'>
|
|
|
|
<input class='form-control'
|
|
|
|
type='text'
|
|
|
|
name='key'
|
|
|
|
placeholder="<%= t('protocols.index.external_protocols.search_bar_placeholder') %>" >
|
|
|
|
</input>
|
2019-06-13 05:38:04 +08:00
|
|
|
|
2019-06-28 03:26:28 +08:00
|
|
|
<span class='input-group-addon'><i class='fas fa-search '></i></span>
|
|
|
|
</div>
|
2019-06-13 05:38:04 +08:00
|
|
|
</div>
|
2019-06-28 04:48:56 +08:00
|
|
|
|
2019-07-09 20:35:40 +08:00
|
|
|
<div class='protocol-sort'>
|
|
|
|
<span><%= t('protocols.index.external_protocols.sort_by.title') %></span>
|
|
|
|
<div class='btn-group' data-toggle='buttons'>
|
|
|
|
<label class='btn btn-link active'>
|
|
|
|
<input type='radio' name='sort_by' id='alphabetically-asc' value='alpha_asc' checked>
|
|
|
|
<%= t('protocols.index.external_protocols.sort_by.alphabetically-asc') %>
|
|
|
|
</label>
|
|
|
|
<label class='btn btn-link'>
|
|
|
|
<input type='radio' name='sort_by' id='alphabetically-desc' value='alpha_desc'>
|
|
|
|
<%= t('protocols.index.external_protocols.sort_by.alphabetically-desc') %>
|
|
|
|
</label>
|
|
|
|
<label class='btn btn-link'>
|
|
|
|
<input type='radio' name='sort_by' id='newest' value='newest'>
|
|
|
|
<%= t('protocols.index.external_protocols.sort_by.newest') %>
|
|
|
|
</label>
|
|
|
|
<label class='btn btn-link'>
|
|
|
|
<input type='radio' name='sort_by' id='oldest' value='oldest'>
|
|
|
|
<%= t('protocols.index.external_protocols.sort_by.oldest') %>
|
2019-06-13 05:38:04 +08:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-13 18:16:23 +08:00
|
|
|
</div>
|
|
|
|
|
2019-06-28 03:26:28 +08:00
|
|
|
<% end %>
|
2019-06-13 18:16:23 +08:00
|
|
|
|
2019-07-09 20:35:40 +08:00
|
|
|
<div class='main-protocol-panel'>
|
|
|
|
<div class='protocol-list-side-panel'>
|
2019-06-13 05:38:04 +08:00
|
|
|
|
|
|
|
<div class='row empty-text'>
|
|
|
|
<%= t('protocols.index.external_protocols.list_panel.empty_text') %>
|
|
|
|
</div>
|
2019-06-28 03:26:28 +08:00
|
|
|
|
2019-07-09 20:35:40 +08:00
|
|
|
<div class='list-wrapper perfect-scrollbar'></div>
|
2019-06-13 05:38:04 +08:00
|
|
|
</div>
|
|
|
|
|
2019-07-09 20:35:40 +08:00
|
|
|
<div class='protocol-preview-panel'>
|
2019-06-20 04:54:20 +08:00
|
|
|
<div class='empty-preview-panel'>
|
2019-06-28 07:38:33 +08:00
|
|
|
|
2019-06-20 04:54:20 +08:00
|
|
|
<div class='row'>
|
|
|
|
<div class='text-rows protocol-preview-text'>
|
|
|
|
<%= t('protocols.index.external_protocols.preview_panel.empty_title') %>
|
|
|
|
</div>
|
2019-06-13 05:38:04 +08:00
|
|
|
</div>
|
2019-06-28 07:38:33 +08:00
|
|
|
|
2019-06-20 04:54:20 +08:00
|
|
|
<div class='row'>
|
|
|
|
<div class='text-separator'> <hr> </div>
|
|
|
|
</div>
|
2019-06-28 07:38:33 +08:00
|
|
|
|
2019-06-20 04:54:20 +08:00
|
|
|
<div class='row'>
|
|
|
|
<div class='text-rows protocol-preview-subtext'>
|
|
|
|
<%= t('protocols.index.external_protocols.preview_panel.empty_subtext') %>
|
|
|
|
</div>
|
2019-06-13 05:38:04 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-20 04:54:20 +08:00
|
|
|
|
|
|
|
<div class='full-preview-panel' style='display: none;'>
|
2019-06-28 07:38:33 +08:00
|
|
|
<div class='row preview-banner'>
|
|
|
|
<div class='col-md-6 txt-holder'>
|
|
|
|
<span>
|
|
|
|
<%= t('protocols.index.external_protocols.preview_panel.banner_text') %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class='col-md-6 btn-holder'>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-10 19:00:32 +08:00
|
|
|
<div class='preview-holder perfect-scrollbar'>
|
|
|
|
<iframe scrolling="no" class='preview-iframe'></iframe>
|
2019-06-28 07:38:33 +08:00
|
|
|
</div>
|
2019-06-13 05:38:04 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-09 20:35:40 +08:00
|
|
|
|
|
|
|
<div class='footer'></div>
|
2019-06-20 04:54:20 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= javascript_include_tag "protocols/external_protocols_tab.js" %>
|