Sha256: 688e5f240b6fc2b1557c8374464317a86b77ac2334062e3eb1d8c53cf7716098

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

<%= content_tag :div, id: 'plugin-html_export', class: class_names('tab-pane', 'fade', 'active show': !defined?(Dradis::Pro)) do %>
  <% if Dradis::Plugins::HtmlExport::TemplatePresenter.templates.any? %>
    <%= form_tag html_export.project_report_path(current_project) do %>
      <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="form-check">
            <%= radio_button_tag :template, template_presenter.filename, Dradis::Plugins::HtmlExport::TemplatePresenter.templates.first == template , class: 'form-check-input' %>
            <label class="form-check-label" for="template_<%= template_presenter.filename %>">
              <%= template_presenter.title %>
            </label>
          </div>
        <% end %>
      <% end %>

      <div class="mt-4">
        <%= render partial: 'export/submit_button', locals: { plugin_name: Dradis::Plugins::HtmlExport::Engine.plugin_name } %>
      </div>
    <% end %>
  <% else %>
    <%= render partial: 'export/no_templates', locals: { plugin_name: Dradis::Plugins::HtmlExport::Engine.plugin_name } %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dradis-html_export-4.11.1 app/views/dradis/plugins/html_export/export/_index-content.html.erb
dradis-html_export-4.10.1 app/views/dradis/plugins/html_export/export/_index-content.html.erb
dradis-html_export-4.10.0 app/views/dradis/plugins/html_export/export/_index-content.html.erb