Permalink
Browse files

added in coursesRequired.

  • Loading branch information...
1 parent 14f31ab commit 47636365ea920021805db4acc7794dd19bd9ed6c @hcwiley committed Apr 19, 2012
Showing with 23 additions and 12 deletions.
  1. +23 −12 templates/college/major.html
@@ -1,14 +1,25 @@
{% extends base_template %}
{% block center %} <h3>{{ major }}</h3>
- <p>degree type: {{ major.degree_type }}</p>
-<a href='{{ major.college.get_absolute_url }}'>
-<li>
- College : {{ major.college }}
-</li> </a>
-{% if major.department %}
-<a href='{{ major.department.get_absolute_url }}'>
-<li>
- Department : {{ major.department }}
-</li> </a>
-{% endif %}
-{% endblock %}
+<p>
+ degree type: {{ major.degree_type }}
+</p>
+<div class='column'>
+ <a href='{{ major.college.get_absolute_url }}'>
+ <li>
+ College : {{ major.college }}
+ </li> </a>
+ {% if major.department %}
+ <a href='{{ major.department.get_absolute_url }}'>
+ <li>
+ Department : {{ major.department }}
+ </li> </a>
+ {% endif %}
+</div>
+<div class='column'>
+ {% for course in major.coursesRequired.all %}
+ <a href='{{ course.get_absolute_url }}'>
+ <li>
+ {{ course.title }}
+ </li> {% endfor %}
+</div>
+{% endblock %}

0 comments on commit 4763636

Please sign in to comment.