.page-header
%h1.pull-left= @registration.serial_number
.pull-right
%ul.breadcrumb
%li
= link_to admin_product_registrations_path do
%i.icon-paste
Back to Registrations
.row
.col-sm-12
.box.bordered-box.dark-border
.box-content.box-no-padding
.responsive-table
.scrollable-area
%table.table
%tbody
%tr
%td Product Name
%td= @registration.product.name
%tr
%td Product Options
%td= option_labels @registration.product_options
%tr
%td Serial Number
%td= @registration.serial_number
%tr
%td Registration Code
%td= @registration.powerdriver_challenge
%tr
%td Date of Purchase
%td= @registration.date_of_purchase
%tr
%td Proof of Purchase
- if @registration.has_proof_of_purchase?
%td= link_to 'View', @registration.proof_of_purchase.url, target: '_blank'
- else
%td= "Not Uploaded"
%tr
%td Registration Reason
%td= @registration.registration_reason
%tr
%td Registration Date
%td= @registration.created_at.to_date.to_formatted_s(:long)