summaryrefslogtreecommitdiff
path: root/app/views/phone_number_ranges
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/phone_number_ranges')
-rw-r--r--app/views/phone_number_ranges/_index_core.html.haml37
1 files changed, 19 insertions, 18 deletions
diff --git a/app/views/phone_number_ranges/_index_core.html.haml b/app/views/phone_number_ranges/_index_core.html.haml
index b378be8..2751bdd 100644
--- a/app/views/phone_number_ranges/_index_core.html.haml
+++ b/app/views/phone_number_ranges/_index_core.html.haml
@@ -1,21 +1,22 @@
%table{:class => 'table table-striped'}
- %tr
- %th= t('phone_number_ranges.index.name')
- %th= t('phone_number_ranges.index.description')
- %th= t('phone_number_ranges.index.numbers')
- %th= t('phone_number_ranges.index.amount')
-
-
- - for phone_number_range in phone_number_ranges
+ %thead
%tr
- %td= t("phone_number_ranges.ranges.#{phone_number_range}.label")
- %td= t("phone_number_ranges.ranges.#{phone_number_range}.description")
- %td
- - if phone_number_range.phone_numbers.count > 0
- = render 'phone_numbers/listing', :phone_numbers => phone_number_range.phone_numbers.order(:number)
- %br
- = render :partial => 'shared/create_link', :locals => {:parent => phone_number_range, :child_class => PhoneNumber, :short_link => true}
+ %th= t('phone_number_ranges.index.name')
+ %th= t('phone_number_ranges.index.description')
+ %th= t('phone_number_ranges.index.numbers')
+ %th= t('phone_number_ranges.index.amount')
+
+ %tbody
+ - for phone_number_range in phone_number_ranges
+ %tr
+ %td= t("phone_number_ranges.ranges.#{phone_number_range}.label")
+ %td= t("phone_number_ranges.ranges.#{phone_number_range}.description")
+ %td
+ - if phone_number_range.phone_numbers.count > 0
+ = render 'phone_numbers/listing', :phone_numbers => phone_number_range.phone_numbers.order(:number)
+ %br
+ = render :partial => 'shared/create_link', :locals => {:parent => phone_number_range, :child_class => PhoneNumber, :short_link => true}
- %td= phone_number_range.phone_numbers.count
- - if phone_number_range.phone_number_rangeable.class != Country
- =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => phone_number_range.phone_number_rangeable, :child => phone_number_range} \ No newline at end of file
+ %td= phone_number_range.phone_numbers.count
+ - if phone_number_range.phone_number_rangeable.class != Country
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => phone_number_range.phone_number_rangeable, :child => phone_number_range} \ No newline at end of file