summaryrefslogtreecommitdiff
path: root/app/views/phone_number_ranges/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/phone_number_ranges/show.html.haml')
-rw-r--r--app/views/phone_number_ranges/show.html.haml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/phone_number_ranges/show.html.haml b/app/views/phone_number_ranges/show.html.haml
new file mode 100644
index 0000000..64df556
--- /dev/null
+++ b/app/views/phone_number_ranges/show.html.haml
@@ -0,0 +1,18 @@
+- title t("phone_number_ranges.show.page_title")
+
+%p
+ %strong= t('phone_number_ranges.show.name') + ":"
+ = t("phone_number_ranges.ranges.#{@phone_number_range}.label")
+%p
+ %strong= t('phone_number_ranges.show.description') + ":"
+ = @phone_number_range.description
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @phone_number_range.phone_number_rangeable, :child => @phone_number_range }
+
+%h2= t("phone_number_ranges.show.phone_numbers")
+
+- if @phone_number_range.try(:phone_numbers).try(:count).to_i > 0
+ = render "phone_numbers/index_core", :phone_numbers => @phone_number_range.phone_numbers.order(:number)
+
+%p
+ = render :partial => 'shared/create_link', :locals => {:parent => @phone_number_range, :child_class => PhoneNumber} \ No newline at end of file