<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -71,16 +71,17 @@ div#searchform input#q { width: 300px; margin: 0; }
 div#searchform input#submit { margin-left: 5px; }
 
 div#list ul { display: block; list-style-type: none; padding: 0; border: 1px solid #AAA; margin-top: 3px; }
-div#list table#list { margin: 0px; padding: 0px; border-spacing: 0px; border: 1px solid #AAA; font-size: .85em; width: 100%; }
-div#list tr.datarow a, div#list tr#headerrow td { padding-top: 5px; padding-bottom: 5px; }
-div#list tr#headerrow { background-color: #DDD; }
-div#list tr#headerrow td { border-bottom: 1px solid #AAA; text-align: left; font-weight: bold; }
-div#list tr.datarow a { display: block; }
-div#list table#list td:first-child { padding-left: 8px; font-weight: bold; }
-div#list table#list td:last-child { padding-right: 8px; text-align: right; }
-div#list table#list tr.datarow td:last-child { font-size: .8em; }
-div#list tr.datarow:hover { background-color: #4A0010; }
-div#list tr.datarow:hover a { color: #CCC; text-decoration: none; }
+
+table#list { margin: 0px; padding: 0px; border-spacing: 0px; border: 1px solid #AAA; font-size: .85em; width: 100%; }
+table#list tr.datarow a, table#list tr#headerrow td { padding-top: 5px; padding-bottom: 5px; }
+table#list tr#headerrow { background-color: #DDD; }
+table#list tr#headerrow td { border-bottom: 1px solid #AAA; text-align: left; font-weight: bold; }
+table#list tr.datarow a { display: block; }
+table#list td:first-child { padding-left: 8px; font-weight: bold; }
+table#list td:last-child { padding-right: 8px; text-align: right; }
+table#list tr.datarow td:last-child { font-size: .8em; }
+table#list tr.datarow:hover { background-color: #4A0010; }
+table#list tr.datarow:hover a { color: #CCC; text-decoration: none; }
 
 div#barcode { background: url(../images/barcode-250.png) no-repeat; width: 250px; height: 23px; padding-top: 60px; text-align: center; font-weight: bold; letter-spacing: 4px; font-size: 13px; }
 div#detail div#barcode { float: left; position: relative; right: 5px; }
@@ -93,6 +94,8 @@ div#detail h3 { margin: 10px 0; border-bottom: 1px solid #888; color: #444; font
 div#detail div.right { width: 450px; margin-left: 20px; }
 div#detail div.right h3 { margin-top: 0px; }
 div#detail table { font-weight: bold; font-size: 1.1em; }
+div#detail table#list { font-weight: inherit; font-size: .85em; }
+div#detail table#list td:last-child { text-align: inherit; }
 div#detail table#toprow { width: 100%; }
 div#detail table#toprow input { width: auto; }
 div#detail td#barcode { text-align: right; }</diff>
      <filename>_media/css/screen.css</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,11 @@ class Checkout(models.Model):
 	first_name = models.CharField(max_length=100)
 	last_name = models.CharField(max_length=100)
 	department_text = models.CharField(max_length=100)
-	department = models.ForeignKey(structure.OrganizationalUnit, null=True)
+	department = models.ForeignKey(
+		structure.OrganizationalUnit,
+		null=True,
+		blank=True
+	)
 	course = models.CharField(max_length=20, blank=True)
 	phone = lfus.PhoneNumberField()
 	email = models.EmailField(max_length=75)
@@ -28,7 +32,10 @@ class Checkout(models.Model):
 		max_length=8,
 		choices=constants.CHECKOUT_TYPES
 	)
-	return_type = models.CharField(max_length=9, choices=constants.RETURN_TYPES)
+	return_type = models.CharField(
+		max_length=9,
+		choices=constants.RETURN_TYPES
+	)
 	creation_date = models.DateTimeField(default=dt.datetime.now)
 	out_date = models.DateTimeField()
 	return_date = models.DateTimeField()</diff>
      <filename>checkout/models.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,49 +1,225 @@
 {% extends &quot;root.html&quot; %}
 {% load etcetera_tags %}
 
-{% block title %}{{ object.first_name }} {{ object.last_name }} (Checkout #{{ object.id }}){% endblock %}
+{% block title %}
+   {{ object.first_name }} {{ object.last_name }} (Checkout #{{ object.id }})
+{% endblock %}
 
-{% block breadcrumb %}&lt;a href=&quot;{% url etcetera-home %}&quot;&gt;Home&lt;/a&gt; &amp;rsaquo; &lt;a href=&quot;{% if object.completed %}#{% else %}{% url checkout-index %}{% endif %}&quot;&gt;Checkout List{% if object.completed %} Archive{% endif %}&lt;/a&gt; &amp;rsaquo; Checkout #{{ object.id }}{% endblock %}
+{% block breadcrumb %}
+   &lt;a href=&quot;{% url etcetera-home %}&quot;&gt;Home&lt;/a&gt; &amp;rsaquo;
+   &lt;a href=&quot;{% if object.completed %}#{% else %}{% url checkout-index %}{% endif %}&quot;&gt;
+      Checkout List
+      {% if object.completed %} Archive{% endif %}
+   &lt;/a&gt; &amp;rsaquo;
+   Checkout #{{ object.id }}
+{% endblock %}
 
 {% block content %}
 &lt;div id=&quot;detail&quot;&gt;
    {% if user.is_authenticated and not object.completed %}
-      {% if not object.equipment_list %}&lt;div id=&quot;alert&quot; class=&quot;banner&quot;&gt;This checkout doesn't have any equipment associated with it. To edit it, click &lt;a href=&quot;#&quot;&gt;click here&lt;/a&gt;.&lt;/div&gt;{% endif %}
-      {% ifequal object.delivering_user user %}&lt;div id=&quot;notify&quot; class=&quot;banner&quot;&gt;You've been assigned to deliver this ticket.&lt;/div&gt;{% endifequal %}
+      {% if not object.equipment_list %}
+         &lt;div id=&quot;alert&quot; class=&quot;banner&quot;&gt;
+            This checkout doesn't have any equipment associated with it.
+               To edit it, click &lt;a href=&quot;#&quot;&gt;click here&lt;/a&gt;.
+         &lt;/div&gt;
+      {% endif %}
+      {% ifequal object.delivering_user user %}
+         &lt;div id=&quot;notify&quot; class=&quot;banner&quot;&gt;
+            You've been assigned to deliver this ticket.
+         &lt;/div&gt;
+      {% endifequal %}
    {% endif %}
-   &lt;h1&gt;{% if user.is_authenticated %}&lt;span class=&quot;right&quot;&gt;&lt;a href=&quot;#&quot;&gt;edit&lt;/a&gt;&lt;/span&gt;{% endif %}{{ object.first_name }} {{ object.last_name }} (Checkout #{{ object.id }}){% if object.completed %} &lt;span class=&quot;head&quot;&gt;completed&lt;/span&gt;{% endif %}&lt;/h1&gt;
-   &lt;h2&gt;{% if object.creation_date %}&lt;span class=&quot;right&quot;&gt;&lt;span class=&quot;head&quot;&gt;Created&lt;/span&gt; {{ object.creation_date|date:'n/j/Y g:iA' }}&lt;/span&gt;{% endif %}Deliver at {{ object.out_date|date:'n/j/Y g:iA' }} &amp;rsaquo; Return at {{ object.return_date|date:'n/j/Y g:iA' }}&lt;/h2&gt;
+   
+   &lt;h1&gt;
+      {% if user.is_authenticated %}
+         &lt;span class=&quot;right&quot;&gt;&lt;a href=&quot;#&quot;&gt;edit&lt;/a&gt;&lt;/span&gt;
+      {% endif %}
+      {{ object.first_name }} {{ object.last_name }}
+         (Checkout #{{ object.id }})
+         &lt;span class=&quot;head&quot;&gt;{{ object.get_checkout_type_display }}&lt;/span&gt;
+      {% if object.completed %}
+         &lt;span class=&quot;head&quot;&gt;/ completed&lt;/span&gt;
+      {% endif %}
+   &lt;/h1&gt;
+   
+   &lt;h2&gt;
+      {% if object.creation_date %}
+         &lt;span class=&quot;right&quot;&gt;
+            &lt;span class=&quot;head&quot;&gt;Created&lt;/span&gt; 
+               {{ object.creation_date|date:'n/j/Y g:iA' }}
+         &lt;/span&gt;
+      {% endif %}
+      {% ifequal object.checkout_type 'delivery' %}
+         ETC will deliver
+      {% else %}
+         Patron will pick up
+      {% endifequal %}
+      at {{ object.out_date|date:'n/j/Y g:iA' }}&lt;br /&gt;
+      {% ifequal object.return_type 'etc' %}
+         ETC
+      {% else %}
+         Patron
+      {% endifequal %}
+      will return at {{ object.return_date|date:'n/j/Y g:iA' }}
+   &lt;/h2&gt;
+   
    &lt;div class=&quot;right&quot;&gt;
       &lt;h3&gt;Contact information&lt;/h3&gt;
       &lt;table&gt;
-         {% if object.phone %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Phone&lt;/td&gt;&lt;td&gt;{{ object.phone }}&lt;/td&gt;&lt;/tr&gt;{% endif %}
-         {% if object.email %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Email&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;mailto:{{ object.email }}&quot;&gt;{{ object.email }}&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;{% endif %}
+         {% if object.phone %}
+            &lt;tr&gt;
+               &lt;td class=&quot;tablehead&quot;&gt;Phone&lt;/td&gt;
+               &lt;td&gt;{{ object.phone }}&lt;/td&gt;
+            &lt;/tr&gt;
+         {% endif %}
+         {% if object.email %}
+            &lt;tr&gt;
+               &lt;td class=&quot;tablehead&quot;&gt;Email&lt;/td&gt;
+               &lt;td&gt;
+                  &lt;a href=&quot;mailto:{{ object.email }}&quot;&gt;{{ object.email }}&lt;/a&gt;
+               &lt;/td&gt;
+            &lt;/tr&gt;
+         {% endif %}
       &lt;/table&gt;
    &lt;/div&gt;
+   
    &lt;h3&gt;Brief information&lt;/h3&gt;
    &lt;table&gt;
-      &lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Submitted by&lt;/td&gt;&lt;td&gt;{{ object.first_name }} {{ object.last_name }}&lt;/td&gt;&lt;/tr&gt;
-      {% if object.department or object.department_text %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Department&lt;/td&gt;&lt;td&gt;{% if object.department %}{{ object.department }}{% else %}{{ object.department_text }} (user-submitted){% endif %}&lt;/td&gt;&lt;/tr&gt;{% endif %}
-      {% if object.building %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;{% ifequal object.checkout_type &quot;delivery&quot; %}Delivery {% endifequal %}Location&lt;/td&gt;&lt;td&gt;{{ object.building.name }} {{ object.room }}&lt;/td&gt;&lt;/tr&gt;{% endif %}
-      {% if object.location_text %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Other location&lt;/td&gt;&lt;td&gt;{{ object.location_text }}&lt;/td&gt;&lt;/tr&gt;{% endif %}
+      &lt;tr&gt;
+         &lt;td class=&quot;tablehead&quot;&gt;Submitted by&lt;/td&gt;
+         &lt;td&gt;{{ object.first_name }} {{ object.last_name }}&lt;/td&gt;
+      &lt;/tr&gt;
+      {% if object.department or object.department_text %}
+         &lt;tr&gt;
+            &lt;td class=&quot;tablehead&quot;&gt;Department&lt;/td&gt;
+            &lt;td&gt;
+               {% if object.department %}
+                  {{ object.department }}
+               {% else %}
+                  {{ object.department_text }} (user-submitted)
+               {% endif %}
+            &lt;/td&gt;
+         &lt;/tr&gt;
+      {% endif %}
+      {% if object.course %}
+         &lt;tr&gt;
+            &lt;td class=&quot;tablehead&quot;&gt;Course&lt;/td&gt;
+            &lt;td&gt;{{ object.course }}&lt;/td&gt;
+         &lt;/tr&gt;
+      {% endif %}
+      {% if object.building %}
+         &lt;tr&gt;
+            &lt;td class=&quot;tablehead&quot;&gt;
+               {% ifequal object.checkout_type &quot;delivery&quot; %}
+                  Delivery
+               {% endifequal %}
+               Location
+            &lt;/td&gt;
+            &lt;td&gt;{{ object.building.name }} {{ object.room }}&lt;/td&gt;
+         &lt;/tr&gt;
+      {% endif %}
+      {% if object.location_text %}
+         &lt;tr&gt;
+            &lt;td class=&quot;tablehead&quot;&gt;Other location&lt;/td&gt;
+            &lt;td&gt;{{ object.location_text }}&lt;/td&gt;
+         &lt;/tr&gt;
+      {% endif %}
+      {% if object.returning_person %}
+         &lt;tr&gt;
+            &lt;td class=&quot;tablehead&quot;&gt;Returning person&lt;/td&gt;
+            &lt;td&gt;{{ object.returning_person }}&lt;/td&gt;
+         &lt;/tr&gt;
+      {% endif %}
    &lt;/table&gt;
-   &lt;h3&gt;Description&lt;/h3&gt;
-   &lt;p&gt;{{ object.description }}&lt;/p&gt;
+   
+   &lt;h3&gt;Equipment needed&lt;/h3&gt;
+   &lt;p&gt;{{ object.equipment_needed }}&lt;/p&gt;
+   
    &lt;div class=&quot;right&quot;&gt;
-      &lt;h3&gt;Technician information&lt;/h3&gt;
+      &lt;h3&gt;Personnel information&lt;/h3&gt;
       &lt;table&gt;
-         {% if object.technician or object.tech_legacy %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Name&lt;/td&gt;&lt;td&gt;{% if object.technician %}&lt;a href=&quot;{% url etcetera-user object.technician.username %}&quot;&gt;{{ object.technician.get_full_name }}&lt;/a&gt;{% else %}{{ object.tech_legacy }}{% endif %}&lt;/td&gt;&lt;/tr&gt;{% endif %}
-         {% if object.technician %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Email&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;mailto:{{ object.technician.email }}&quot;&gt;{{ object.technician.email }}&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;{% endif %}
+         {% if object.creating_user %}
+            &lt;tr&gt;
+               &lt;td class=&quot;tablehead&quot;&gt;Created by&lt;/td&gt;
+               &lt;td&gt;
+                  &lt;a href=&quot;{% url etcetera-user object.creating_user.username %}&quot;&gt;
+                     {{ object.creating_user.get_full_name }}
+                  &lt;/a&gt;
+               &lt;/td&gt;
+            &lt;/tr&gt;
+         {% endif %}
+         {% if object.delivering_user %}
+            &lt;tr&gt;
+               &lt;td class=&quot;tablehead&quot;&gt;Delivered by&lt;/td&gt;
+               &lt;td&gt;
+                  &lt;a href=&quot;{% url etcetera-user object.delivering_user.username %}&quot;&gt;
+                     {{ object.delivering_user.get_full_name }}
+                  &lt;/a&gt;
+               &lt;/td&gt;
+            &lt;/tr&gt;
+         {% endif %}
       &lt;/table&gt;
    &lt;/div&gt;
+   
    &lt;h3&gt;Actions taken&lt;/h3&gt;
-   &lt;p&gt;{% if object.actions %}{{ object.actions }}{% else %}No actions have been performed on this ticket yet.{% endif %}&lt;/p&gt;
-   &lt;h3&gt;Financial information&lt;/h3&gt;
-   &lt;table&gt;
-      {% if object.labor %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Labor hours&lt;/td&gt;&lt;td&gt;{{ object.labor }}&lt;/td&gt;&lt;/tr&gt;{% endif %}
-      {% if object.material_costs %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Material costs&lt;/td&gt;&lt;td&gt;{{ object.material_costs|money }}&lt;/td&gt;&lt;/tr&gt;{% endif %}
-      {% if object.funding_source %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Funding source&lt;/td&gt;&lt;td&gt;{{ object.get_funding_source_display }}&lt;/td&gt;&lt;/tr&gt;{% endif %}
-      {% if object.budget %}&lt;tr&gt;&lt;td class=&quot;tablehead&quot;&gt;Budget&lt;/td&gt;&lt;td&gt;{{ object.budget }}&lt;/td&gt;&lt;/tr&gt;{% endif %}
-   &lt;/table&gt;
+   &lt;p&gt;
+      {% if object.actions %}
+         {{ object.actions }}
+      {% else %}
+         No actions have been performed on this ticket yet.
+      {% endif %}
+   &lt;/p&gt;
+   
+   &lt;h3&gt;Equipment list&lt;/h3&gt;
+   {% if object.equipment_list.all %}
+      &lt;table id=&quot;list&quot;&gt;
+         &lt;tr id=&quot;headerrow&quot;&gt;
+            &lt;td&gt;Barcode&lt;/td&gt;
+            &lt;td&gt;Type&lt;/td&gt;
+            &lt;td&gt;Make/Model&lt;/td&gt;
+            &lt;td&gt;Serial&lt;/td&gt;
+         &lt;/tr&gt;
+         {% for item in object.equipment_list.all %}
+            &lt;tr class=&quot;datarow&quot;&gt;
+               &lt;td&gt;
+                  &lt;a href=&quot;{% url equipment-detail item.id %}&quot;&gt;
+                     {{ item.barcode }}
+                  &lt;/a&gt;
+               &lt;/td&gt;
+               &lt;td&gt;
+                  &lt;a href=&quot;{% url equipment-detail item.id %}&quot;&gt;
+                     {{ item.equipment_type.name }}
+                  &lt;/a&gt;
+               &lt;/td&gt;
+               &lt;td&gt;
+                  &lt;a href=&quot;{% url equipment-detail item.id %}&quot;&gt;
+                     {{ item.make.name }} {{ item.model }}
+                  &lt;/a&gt;
+               &lt;/td&gt;
+               &lt;td&gt;
+                  &lt;a href=&quot;{% url equipment-detail item.id %}&quot;&gt;
+                     {{ item.serial }}
+                  &lt;/a&gt;
+               &lt;/td&gt;
+            &lt;/tr&gt;
+         {% endfor %}
+      &lt;/table&gt;
+   {% else %}
+      &lt;p&gt;No specific equipment has been attached to this checkout yet.&lt;/p&gt;
+   {% endif %}
+   
+   &lt;h3&gt;Other equipment&lt;/h3&gt;
+   {% if object.other_equipment %}
+      &lt;p&gt;{{ object.other_equipment }}&lt;/p&gt;
+   {% else %}
+      &lt;p&gt;No extra equipment (cables, adapters, etc.) have been
+            attached to this checkout.&lt;/p&gt;
+   {% endif %}
+   
+   {% if object.software %}
+      &lt;h3&gt;Software&lt;/h3&gt;
+      &lt;p&gt;{{ object.software }}&lt;/p&gt;
+   {% endif %}
+   
 &lt;/div&gt;
 {% endblock %}
\ No newline at end of file</diff>
      <filename>templates/checkout/detail.html</filename>
    </modified>
    <modified>
      <diff>@@ -26,7 +26,7 @@
          &lt;td&gt;Type&lt;/td&gt;
       &lt;/tr&gt;
       {% for object in paged_objects.object_list %}
-      &lt;tr id=&quot;datarow&quot;&gt;
+      &lt;tr class=&quot;datarow&quot;&gt;
          &lt;td&gt;&lt;a href=&quot;{% url checkout-detail object.id %}&quot;&gt;{{ object.first_name }} {{ object.last_name }}&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt;&lt;a href=&quot;{% url checkout-detail object.id %}&quot;&gt;{% if object.department %}{{ object.department }}{% else %}{{ object.department_text }}{% endif %}&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt;&lt;a href=&quot;{% url checkout-detail object.id %}&quot;&gt;{{ object.equipment_needed }}&lt;/a&gt;&lt;/td&gt;</diff>
      <filename>templates/checkout/index.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f4ba4f5cc516550c7512112145e1502103689352</id>
    </parent>
  </parents>
  <author>
    <name>Benjamin Kreeger</name>
    <email>benjaminkreeger@gmail.com</email>
  </author>
  <url>http://github.com/kreeger/etcetera/commit/8b1150988df6cfbd4ffa2696d86762eef5ca7f55</url>
  <id>8b1150988df6cfbd4ffa2696d86762eef5ca7f55</id>
  <committed-date>2009-10-27T12:18:24-07:00</committed-date>
  <authored-date>2009-10-09T12:57:43-07:00</authored-date>
  <message>Detail is pretty much finished. Next big leap: creation form. Then the editing form. Then the internal creation form. Joy.</message>
  <tree>0f8c9d81e8270721c0957ffbd4ab06e0d62ac1a2</tree>
  <committer>
    <name>Benjamin Kreeger</name>
    <email>benjaminkreeger@gmail.com</email>
  </committer>
</commit>
