diff --git a/app/views/sections/_add_section.html.erb b/app/views/sections/_add_section.html.erb index b8a2077..93564b8 100644 --- a/app/views/sections/_add_section.html.erb +++ b/app/views/sections/_add_section.html.erb @@ -25,7 +25,8 @@ <%= _('Order of display') %> - <%= f.number_field :number, in: 1..15, class: "number_field has-tooltip", "data-toggle" => "tooltip", title: _('This allows you to order sections.') %> + <% range = @phase.template.customization_of.present? ? 0..15 : 1..15 %> + <%= f.number_field :number, in: range, class: "number_field has-tooltip", "data-toggle" => "tooltip", title: _('This allows you to order sections.') %> diff --git a/app/views/sections/_edit_section.html.erb b/app/views/sections/_edit_section.html.erb index 9f12aeb..4bc7cfc 100644 --- a/app/views/sections/_edit_section.html.erb +++ b/app/views/sections/_edit_section.html.erb @@ -39,7 +39,8 @@ - + <% range = @phase.template.customization_of.present? ? 0..15 : 1..15 %> +
<%= _('Order of display') %><%= s.number_field :number, in: 1..15, class: "number_field has-tooltip", 'data-toggle' => "tooltip", 'title' => _('This allows you to order sections.') %><%= s.number_field :number, in: range, class: "number_field has-tooltip", 'data-toggle' => "tooltip", 'title' => _('This allows you to order sections.') %>
<%= _('Description') %>