<%= 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 %>

Choose a template

Please choose one of the templates available for this plugin (find them in .<%= Dradis::Plugins::HtmlExport::TemplatePresenter.templates_dir[Rails.root.to_s.length..-1] %>)

<% Dradis::Plugins::HtmlExport::TemplatePresenter.each_template do |template| %> <% present(template, Dradis::Plugins::HtmlExport::TemplatePresenter) do |template_presenter| %>
<%= radio_button_tag :template, template_presenter.filename, Dradis::Plugins::HtmlExport::TemplatePresenter.templates.first == template , class: 'form-check-input' %>
<% end %> <% end %>
<%= render partial: 'export/submit_button', locals: { plugin_name: Dradis::Plugins::HtmlExport::Engine.plugin_name } %>
<% end %> <% else %> <%= render partial: 'export/no_templates', locals: { plugin_name: Dradis::Plugins::HtmlExport::Engine.plugin_name } %> <% end %> <% end %>