Fix BookingDetail Template
authorSawyer Bergeron <sawyerbergeron@gmail.com>
Fri, 18 Jan 2019 16:56:21 +0000 (11:56 -0500)
committerSawyer Bergeron <sawyerbergeron@gmail.com>
Fri, 18 Jan 2019 16:56:21 +0000 (11:56 -0500)
Booking detail view template did not properly reference diskprofile
objects by their related name, so that area was blank in the rendered
page

Change-Id: Icedc12a6cd31a2422e26281e2b4f34750fb01bae
Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
src/templates/booking/booking_detail.html

index cae0e25..d78aa85 100644 (file)
                                                 <table class="table">
                                                     <tr>
                                                         <td>Size:</td>
-                                                        <td>{{host.profile.diskprofile.first.size}}GiB</td>
+                                                        <td>{{host.profile.storageprofile.first.size}} GiB</td>
                                                     </tr>
                                                     <tr>
                                                         <td>Type:</td>
-                                                        <td>{{host.profile.diskprofile.first.media_type}}</td>
+                                                        <td>{{host.profile.storageprofile.first.media_type}}</td>
                                                     </tr>
                                                     <tr>
                                                         <td>Mount Point:</td>
-                                                        <td>{{host.profile.diskprofile.first.name}}</td>
+                                                        <td>{{host.profile.storageprofile.first.name}}</td>
                                                     </tr>
                                                 </table>
                                             </td>