Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/views/plans/_download_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<%
download_coversheet_tickbox_checked = Rails.configuration.x.plans.download_coversheet_tickbox_checked || false
%>
<%= form_tag(plan_export_path(@plan), method: :get, target: '_blank', id: 'download_form') do |f| %>

<h2><%= _('Format') %></h2>
Expand All @@ -23,7 +26,7 @@
<legend><%= _("Optional plan components") %></legend>
<div class="checkbox">
<%= label_tag 'export[project_details]' do %>
<%= check_box_tag 'export[project_details]', true, false %>
<%= check_box_tag 'export[project_details]', true, download_coversheet_tickbox_checked %>
<%= _('project details coversheet') %>
<% end %>
</div>
Expand Down
3 changes: 3 additions & 0 deletions config/initializers/_dmproadmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ class Application < Rails::Application
# regardless of the plans visibility and whether or not the plan has been shared
config.x.plans.super_admins_read_all = true

# Check download of a plan coversheet tickbox
config.x.plans.download_coversheet_tickbox_checked = false

# ---------------------------------------------------- #
# CACHING - all values are in seconds (86400 == 1 Day) #
# ---------------------------------------------------- #
Expand Down