Refactor Budget::PHASES constant to Budget::Phase::PHASE_KINDS

This commit is contained in:
Bertocq
2018-01-15 20:17:49 +01:00
parent f2228a908b
commit 66691b644a
11 changed files with 25 additions and 25 deletions

View File

@@ -2,7 +2,7 @@
<%= f.text_field :name, maxlength: Budget.title_max_length %>
<% Budget::PHASES.each do |phase| %>
<% Budget::Phase::PHASE_KINDS.each do |phase| %>
<div class="margin-top">
<%= f.cktext_area "description_#{phase}", maxlength: Budget::Phase::DESCRIPTION_MAX_LENGTH, ckeditor: { language: I18n.locale } %>
</div>