app/views/notification_rules/index.html.slim
- breadcrumb :notification_rules, @workbench
.page_content
.container-fluid
.row
.col-lg-12
= render 'filters'
- if @notification_rules.any?
.row
.col-lg-12
= table_builder_2 @notification_rules,
[ \
TableBuilderHelper::Column.new( \
key: :notification_type, \
attribute: Proc.new {|o| "enumerize.notification_rule.notification_type.#{o.notification_type}".t}, \
sortable: false \
),
TableBuilderHelper::Column.new( \
key: :priority, \
attribute: :priority, \
sortable: true \
),
TableBuilderHelper::Column.new( \
key: :rule_type, \
attribute: Proc.new {|o| "enumerize.notification_rule.rule_type.#{o.rule_type}".t}, \
sortable: true \
),
TableBuilderHelper::Column.new( \
key: :operation_statuses, \
attribute: :display_operation_statuses, \
sortable: true \
),
TableBuilderHelper::Column.new( \
key: :period, \
attribute: :display_period, \
sortable: false, \
), \
TableBuilderHelper::Column.new( \
key: :lines, \
attribute: :display_lines, \
sortable: false, \
), \
],
links: [:show],
cls: 'table has-search'
= new_pagination @notification_rules, 'pull-right'
- unless @notification_rules.any?
.row.mt-xs
.col-lg-12
= replacement_msg t('notification_rules.search_no_results')