diff options
Diffstat (limited to 'app/helpers/newfront_helper.rb')
| -rw-r--r-- | app/helpers/newfront_helper.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/newfront_helper.rb b/app/helpers/newfront_helper.rb index 3ec1a8242..27dce3af8 100644 --- a/app/helpers/newfront_helper.rb +++ b/app/helpers/newfront_helper.rb @@ -1,5 +1,6 @@ module NewfrontHelper + # Table Builder def table_builder collection, columns, actions, cls = nil return unless collection.present? @@ -90,4 +91,14 @@ module NewfrontHelper end + + # Replacement message + def replacement_msg text + content_tag :div, '', class: 'alert alert-warning' do + icon = content_tag :span, '', class: 'fa fa-lg fa-info-circle', style: 'margin-right:7px;' + + icon + text + end + end + end |
