Sha256: 206966627513a9d1af2c9b83a8c10e48cd75a500354144e5f93a6db0c3584e2f

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 KB

Contents

<%= content_tag :div, id: 'plugin-html_export', class: 'tab-pane fade' do %>
  <%= form_tag project_export_manager_path(current_project), target: '_blank' do %>
    <%= hidden_field_tag :plugin, :html_export %>
    <%= hidden_field_tag :route, :root %>

    <h4 class="header-underline">Choose a template</h4>
    <p>Please choose one of the templates available for this plugin (find them in <code>.<%= Dradis::Plugins::HtmlExport::TemplatePresenter.templates_dir[Rails.root.to_s.length..-1] %></code>)</p>

    <% Dradis::Plugins::HtmlExport::TemplatePresenter.each_template do |template| %>
      <% present(template, Dradis::Plugins::HtmlExport::TemplatePresenter) do |template_presenter| %>
        <div class="custom-control custom-radio">
          <%= radio_button_tag :template, template_presenter.filename, Dradis::Plugins::HtmlExport::TemplatePresenter.templates.first == template , class: 'custom-control-input' %>
          <label class="custom-control-label" for="template_<%= template_presenter.filename %>">
            <%= template_presenter.title %>
          </label>
        </div>
      <% end %>
    <% end %>

    <button id="export-button" class="btn btn-lg btn-primary mt-4">Export</button>
  <% end %>
<% end%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dradis-html_export-4.7.0 app/views/dradis/plugins/html_export/export/_index-content.html.erb
dradis-html_export-4.6.0 app/views/dradis/plugins/html_export/export/_index-content.html.erb
dradis-html_export-4.5.0 app/views/dradis/plugins/html_export/export/_index-content.html.erb
dradis-html_export-4.4.0 app/views/dradis/plugins/html_export/export/_index-content.html.erb
dradis-html_export-4.3.0 app/views/dradis/plugins/html_export/export/_index-content.html.erb