Commits

Scott Nixon committed 37708ce

Moved templates to application

  • Participants
  • Parent commits 3e4cdbc

Comments (0)

Files changed (4)

templates/course_detail.html

+{% extends "courses/course_template.html" %}
+
+{% block title %} {% if c %} {{ c.title }} {% endif %} {% endblock %}
+
+{% block content %}
+
+<div class="box_content margin">
+  <div class="box_content_head"></div>
+	<div class="box_content_body">
+
+	  <div id="details_box" class="span-24 last">
+	    <div class="span-16"> 
+	    {% if c %}
+	    <span class="breadcrumb"><a href="{% url courses.views.course_index %}">Courses Index</a> - {{ c.title }}</span>
+	    
+		<article>
+		  <span class="addtocart">
+		    <span class="courseprice">$14.99</span><br>
+		    {% if c.id = 2 %}
+		    <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=806814&cl=63365&ejc=
+		      2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
+		      EJEJC_lc(this);"><img
+		      src="http://img.happyherbivore.com/add_to_cart.png" border="0" alt="Add
+		      to Cart"/></a>
+		    {% endif %}
+		    {% if c.id = 1 %}
+		    <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=806815&cl=63365&ejc=
+		      2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
+		      EJEJC_lc(this);"><img
+		      src="http://img.happyherbivore.com/add_to_cart.png" border="0" alt="Add
+		      to Cart"/></a>
+		    {% endif %}
+		    {% if c.id = 3 %}
+		    <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=806822&cl=63365&ejc=
+		      2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
+		      EJEJC_lc(this);"><img
+		      src="http://img.happyherbivore.com/add_to_cart.png" border="0" alt="Add
+		      to Cart"/></a>
+		    {% endif %}
+		  </span>
+		  
+		  <h1 class="coursestitle">{{ c.title }}</h1>
+		  
+		  <p>Your course consists of a well-research and topic-focused
+		  PDF. Certain lessons are accompanied by
+		  <a href="http://happyherbivore.blip.tv/">videos</a>, which
+		  are free to everyone. Look for videos with the "Lesson" prefix.</p>
+		  
+		  {{ c.selling|safe }}
+		  
+		  <h2>Course Summary:</h2>
+		  {{ c.summary|safe }}
+		  
+		  <h2>Benefits:</h2>
+		  {{ c.benefits|safe }}
+		  
+		  <span class="discussion"><a href="{{ c.discussion }}"><img src="http://img.happyherbivore.com/question.png">Discussion Group</a></span>
+		</article>
+
+	    {% else %}
+		    <p>No Course exists for your request.</p>
+	    {% endif %}
+	    </div>
+	    <div class="span-6 last">
+	      
+	      <h1>Testimonials</h1>
+	      
+	      {% if c %}
+		  {{ c.testimonials|safe }}
+	      {% endif %}
+	      
+	    </div>
+	  </div> <!-- details_box -->
+	
+	</div><!-- box_content_body -->
+  <div class="content_box_footer"></div>
+</div><!-- box_content margin --> 		
+{% endblock %} 

templates/course_template.html

+{% extends "herb.html" %}	      
+
+{% block extrahead %}
+    	      	<link rel="stylesheet" href="http://css.happyherbivore.com/blueprint/screen.css" type="text/css" media="screen, projection"> 
+		<link rel="stylesheet" href="http://css.happyherbivore.com/blueprint/print.css" type="text/css" media="print"> 
+  <!--[if lt IE 8]><link rel="stylesheet" href="http://css.happyherbivore.com/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]--> 
+
+    {{ media }}
+{% endblock %}
+
+{% block box_body %}
+  <span class="viewcart">
+    <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=63365&ejc=2"
+	target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
+	EJEJC_lc(this);"><img src="http://img.happyherbivore.com/view_cart.png"
+	border="0" alt="View Cart"/></a> <script language="javascript"
+	type="text/javascript"> <!-- function EJEJC_lc(th) { return false; } //
+	--> </script> <script src='http://www.e-junkie.com/ecom/box.js'
+	type='text/javascript'></script>
+	     
+  </span>
+<script>
+$(function () {
+$('div.box_content_body').addClass('disable-background');
+$('div.box_content_head').addClass('disable-background');
+});
+</script>
+{% endblock %}   
+
+{% block content %}   
+{% endblock %}
+{% block right_column %}
+{% endblock %}
+ 
+

templates/courses_index.html

+{% extends "courses/course_template.html" %}
+
+{% block title %} Courses List {% endblock %}
+
+{% block content %}
+
+<div class="box_content margin">
+  <div class="box_content_head"></div>
+	<div class="box_content_body">
+	
+	<div id="index_box" class="span-24 last">
+	  <div class="space">
+	    <h1 class="coursestitle span-24 last">Healthy Options Courses</h1>
+	  </div>
+
+	  <div class="span-12 marketingpanel">
+	    <h2>Our courses are designed to change your life!</h2>
+	    
+	    
+	  </div>
+	  <div class="span-11 last marketingpanel">
+	  </div>
+	  <hr class="space">
+	  
+	  {% for i in courses_list %}
+	  
+	      <div class="span-15 course-summary">
+		<article>
+		  <h1><a href="{% url courses.views.course_detail i.slug %}">{{ i.title }}</a></h1>
+		  {{ i.summary|safe }}		  
+		</article>
+	      </div>
+	      
+	      <div class="span-8 last">
+		<span class="pricing-details"><a class="small" href="{% url courses.views.course_detail i.slug %}"><span class="large orange awesome">View Pricing and Details</span></a></span>
+		<span></span>
+		<span class="course-price"></span>
+ 		
+		<div class="benefits-list">
+		  {{ i.benefits|safe }}
+		</div>
+	      </div>
+	      <hr> 
+	  {% endfor %}
+
+	  
+	<div class="span-23 last reviewbox">
+	
+	<h1 class="reviews">Here's What People Are Saying About our Healthy Options Courses</h1>
+    <p class="box">“I breezed through. It was so easy to comprehend and follow plus there were no dull moments! I found myself learning more and wanting to read more as I moved along.” - <span class="name">Chris N.</span> <span class="course">discussing Vegan. Now What?</span></p>    
+    <p class="box">“[Vegan. Now What?] course showed me that I'm not bound to tasteless food for a lifetime but instead I have the opportunity to explore and enjoy a whole new array of foods.” - <span class="name">Jeni N.</span></p>
+    <p class="box">"I lost 20 more lbs, for a total of 60, ever since I took your diet/nutrition course 2 months ago. Your diet plan rocks!!!" - <span class="name">Philip C</span> <span class="course">discussing Balanced Nutrition.</span></p>
+    <p class="box">"For years I operated under the "deprivation" is key to weight loss and this course helped me release some of those attitudes and habits." - <span class="name">Katie M</span> <span class="course">discussing Balanced Nutrition.</span></p>
+    <p class="box">"I tend to eat emotionally (bored, upset, etc.) but [the Balanced Nutrition] course taught me to listen to my body in regards to hunger. Really it has been reconditioning to my mind more than anything." - <span class="name">Katherine P.</span></p>
+    <p class="box">“All my questions were answered...even those I didn't think of asking!” - <span class="name">Jeni N.</span></p>
+	</div>
+	</div><!-- box_content_body -->
+  <div class="content_box_footer"></div>
+</div><!-- box_content margin --> 		
+{% endblock %} 
+

templates/lesson_detail.html

+{% extends "courses/course_template.html" %}
+
+{% block title %} {{ post.post_title }} {% endblock %}
+
+{% block content %}
+
+<div class="box_content margin">
+  <div class="box_content_head"></div>
+	<div class="box_content_body">
+	<div class="menu_content"> 
+
+	</div>
+	</div><!-- box_content_body -->
+	<div class="content_box_footer"></div>
+</div><!-- box_content margin --> 		
+{% endblock %}