Skip to content

Commit

Permalink
Display info about unavailable fields while editing report
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilda Stastna committed Jun 7, 2018
1 parent 8bfa17f commit 7f2a918
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/report/_form_columns.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
= render :partial => "column_lists"
%strong
= _('* Caution: Changing these fields will clear all selected values below them!')
- unavailable_fields = MiqExpression.human_unavailable_fields_for(@edit[:new][:model])
- if unavailable_fields.present?
%br
%p{:style => "max-width: 850px;"}
%strong
= _("* Caution: %{unav_fields} are not supported for %{rep_base}.") % {:unav_fields => unavailable_fields, :rep_base => Dictionary.gettext(@edit[:new][:model], :type => :model, :notfound => :titleize, :plural => true)}

%hr
%h3
= _('Report Creation Timeout')
Expand Down

0 comments on commit 7f2a918

Please sign in to comment.