소스 검색

merging changes

master
OliverRandell 14 년 전
부모
커밋
d6bce2a0cf

+ 8
- 4
oscar/static/css/styles.css 파일 보기

@@ -2768,10 +2768,10 @@ body {
2768 2768
   padding: 0px;
2769 2769
   list-style: none;
2770 2770
 }
2771
-.choose_shipping_address .alert-message {
2771
+.choose_shipping_address .alert {
2772 2772
   position: relative;
2773 2773
 }
2774
-.choose_shipping_address .alert-message .delete_address {
2774
+.choose_shipping_address .alert .delete_address {
2775 2775
   position: absolute;
2776 2776
   top: 10px;
2777 2777
   right: 4px;
@@ -2885,7 +2885,7 @@ body {
2885 2885
 .product_pod {
2886 2886
   padding: 8%;
2887 2887
   position: relative;
2888
-  height: 320px;
2888
+  height: 375px;
2889 2889
   overflow: hidden;
2890 2890
   *zoom: 1;
2891 2891
 }
@@ -2912,6 +2912,7 @@ body {
2912 2912
   margin-bottom: 18px;
2913 2913
   margin-top: 9px;
2914 2914
   line-height: 18px;
2915
+  font-size: 16px;
2915 2916
 }
2916 2917
 .product_pod h4:before, .product_pod h4:after {
2917 2918
   display: table;
@@ -2945,6 +2946,9 @@ body {
2945 2946
 .product_pod .product_price form {
2946 2947
   margin-bottom: 0px;
2947 2948
 }
2949
+.product_pod .product_price form input#id_quantity {
2950
+  width: 90%;
2951
+}
2948 2952
 .product_pod .product_price .btn {
2949 2953
   padding-left: 0px;
2950 2954
   padding-right: 0px;
@@ -2953,7 +2957,7 @@ body {
2953 2957
 /* Product list image container */
2954 2958
 .image_container {
2955 2959
   width: 100%;
2956
-  height: 150px;
2960
+  height: 125px;
2957 2961
   overflow: hidden;
2958 2962
   text-align: center;
2959 2963
   margin-bottom: 9px;

+ 11
- 0
oscar/static/js/scrollto/jquery.scrollTo-min.js 파일 보기

@@ -0,0 +1,11 @@
1
+/**
2
+ * jQuery.ScrollTo - Easy element scrolling using jQuery.
3
+ * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
4
+ * Dual licensed under MIT and GPL.
5
+ * Date: 5/25/2009
6
+ * @author Ariel Flesler
7
+ * @version 1.4.2
8
+ *
9
+ * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
10
+ */
11
+;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);

+ 1
- 1
oscar/static/less/page/checkout.less 파일 보기

@@ -54,7 +54,7 @@
54 54
   ul {
55 55
     .remove_bullets();
56 56
   }
57
-  .alert-message {
57
+  .alert {
58 58
     position:relative;
59 59
     .delete_address {
60 60
       position:absolute;

+ 6
- 2
oscar/static/less/page/product_lists.less 파일 보기

@@ -29,7 +29,7 @@
29 29
 .product_pod {
30 30
   padding:8%;
31 31
   position:relative;
32
-  height:320px;
32
+  height:375px;
33 33
   overflow:hidden;
34 34
   .clearfix();
35 35
   & p {
@@ -48,6 +48,7 @@
48 48
     margin-bottom: @baseLineHeight;
49 49
     margin-top: @baseLineHeight / 2;
50 50
     line-height:@baseLineHeight;
51
+    font-size:@baseFontSize + 3;
51 52
     span {
52 53
       float:right;
53 54
     }
@@ -72,6 +73,9 @@
72 73
     width:84%;
73 74
     form {
74 75
       margin-bottom:0px;
76
+      input#id_quantity {
77
+        width:90%;
78
+      }
75 79
     }
76 80
     .btn {
77 81
       padding-left:0px;
@@ -83,7 +87,7 @@
83 87
 /* Product list image container */
84 88
 .image_container {
85 89
   width:100%;
86
-  height:150px;
90
+  height:125px;
87 91
   overflow:hidden;
88 92
   text-align: center;
89 93
   margin-bottom: @baseLineHeight / 2;

+ 132
- 0
oscar/static/less/responsive.less 파일 보기

@@ -117,6 +117,138 @@
117 117
   .carousel-caption {
118 118
     position: static;
119 119
   }
120
+  .cart, 
121
+  h1.span6
122
+   {
123
+    display:none!important;
124
+  }
125
+  .navbar.accounts {
126
+    margin-bottom:0px;
127
+    .brand.hidden {
128
+      display: inline;
129
+      padding:6px 10px;
130
+      font-size:18px;
131
+    }
132
+    .nav > li {
133
+      float:left;
134
+    }
135
+  }
136
+  .navbar.primary {
137
+    margin-top:0px;
138
+    .brand.hidden {
139
+      display: inline;
140
+      visibility: visible;
141
+    }
142
+    .navbar-inner {
143
+      .border-radius(0px);
144
+    }
145
+  }
146
+  .brand.hidden {
147
+    visibility: visible;
148
+  }
149
+  /*Remove float, widths, heights*/
150
+  .product_title,
151
+  .product_assets,
152
+  .product_description,
153
+  .product_related,
154
+  .review_content,
155
+  .review_votes,
156
+  .main,
157
+  .products li,
158
+  .five li,
159
+  .four li,
160
+  .three li,
161
+  .two li,
162
+  .product_pod .product_price,
163
+  .footer_links li,
164
+  .footer_links .top_page {
165
+    float:none;
166
+    margin:0px;
167
+    width:auto;
168
+    height:auto;
169
+  }
170
+  .products {
171
+    li {
172
+      border-bottom:1px solid @grayLighter;
173
+      padding-bottom:@baseLineHeight;
174
+      margin-bottom:@baseLineHeight;
175
+      .product_pod {
176
+        margin-bottom:15px;
177
+        height:auto!important;
178
+        padding:0px;
179
+        .star {
180
+          clear:none;
181
+          margin-left:@quart * 1.15;
182
+        }
183
+        .avaliability {
184
+          text-align:left;
185
+        }
186
+        .product_price {
187
+          h4 {
188
+            margin-bottom:0px;
189
+            display:inline;
190
+            span, del {
191
+              float:none;
192
+            }
193
+          }
194
+          .btn {
195
+            width:auto;
196
+            display:block;
197
+            padding: 5px 14px 6px;
198
+            margin-top:5px;
199
+          }
200
+        } 
201
+        .image_container {
202
+          width:@quart;
203
+          float:left;
204
+          margin-right:15px;
205
+          margin-bottom:0px;
206
+        }
207
+        .product_price {
208
+          position:static;
209
+        }
210
+      }
211
+    }
212
+  }
213
+  .star {
214
+    padding-left:70px;
215
+  	background:url(../../img/ui/bg-stars-small.png) 0px -4px no-repeat;
216
+  	height:11px;
217
+  	line-height:11px;
218
+  }
219
+  .star.One {
220
+  	background-position: 0px -18px;
221
+  }
222
+  .star.Two {
223
+  	background-position: 0px -32px;
224
+  }
225
+  .star.Three {
226
+  	background-position: 0px -47px;
227
+  }
228
+  .star.Four {
229
+  	background-position: 0px -61px;
230
+  }
231
+  .star.Five {
232
+  	background-position: 0px -75px;
233
+  }
234
+  .review_content {
235
+    div {
236
+     border:none;
237
+    }
238
+  }
239
+  .review_votes {
240
+    div {
241
+      padding:0px;
242
+    }
243
+  }
244
+  .footer_links {
245
+    border-bottom:none;
246
+    li {
247
+      border-left:none;
248
+      margin:0px;
249
+      padding:0px;
250
+    }
251
+  }
120 252
 
121 253
 }
122 254
 

+ 9
- 8
oscar/templates/base.html 파일 보기

@@ -29,13 +29,7 @@
29 29
     </head>
30 30
     <body id="{% block body_id %}default{% endblock %}" class="{% block body_class %}default{% endblock %}">
31 31
         {% block layout %}{% endblock %}
32
-		<script type="text/javascript">
33
-			$(function(){
34
-				{% block onbodyload %}
35
-
36
-				{% endblock %}
37
-			});
38
-		</script>
32
+		
39 33
         {% block tracking %}
40 34
             {% if not debug and not request.user.is_staff %}
41 35
                 <!-- Tracking to go here. -->
@@ -45,6 +39,7 @@
45 39
         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
46 40
         <script>window.jQuery || document.write('<script src="{{ STATIC_URL }}js/jquery/jquery-1.7.1.min.js"><\/script>')</script>
47 41
         <script src="{{ STATIC_URL }}js/jquery/jquery.easing.1.3.js" type="text/javascript" charset="utf-8"></script>
42
+        <script src="{{ STATIC_URL }}js/scrollto/jquery.scrollTo-min.js" type="text/javascript" charset="utf-8"></script>
48 43
         <!-- Bootstrap -->
49 44
 		<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap/bootstrap.min.js"></script>
50 45
 		<!-- Elastislide carousel js -->
@@ -55,8 +50,14 @@
55 50
         <script src="{{ STATIC_URL }}js/responsivegallery/jquery.tmpl.min.js" type="text/javascript" charset="utf-8"></script>
56 51
         <script src="{{ STATIC_URL }}js/responsivegallery/gallery.js" type="text/javascript" charset="utf-8"></script>
57 52
         {% endif %}
58
-        
59 53
         <!-- Front end js -->
60 54
         <script src="{{ STATIC_URL }}js/script.js" type="text/javascript" charset="utf-8"></script>
55
+        <script type="text/javascript">
56
+			$(function(){
57
+				{% block onbodyload %}
58
+
59
+				{% endblock %}
60
+			});
61
+		</script>
61 62
     </body>
62 63
 </html>

+ 8
- 7
oscar/templates/base_dashboard.html 파일 보기

@@ -24,13 +24,7 @@
24 24
     </head>
25 25
     <body id="{% block body_id %}default{% endblock %}" class="{% block body_class %}default{% endblock %}">
26 26
         {% block layout %}{% endblock %}
27
-		<script type="text/javascript">
28
-			$(function(){
29
-				{% block onbodyload %}
30
-
31
-				{% endblock %}
32
-			});
33
-		</script>
27
+		
34 28
         {% block tracking %}
35 29
             {% if not debug and not request.user.is_staff %}
36 30
                 <!-- Tracking to go here. -->
@@ -44,5 +38,12 @@
44 38
 		<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap/bootstrap.min.js"></script>    
45 39
         <!-- Front end js -->
46 40
         <script src="{{ STATIC_URL }}js/dashboard.js" type="text/javascript" charset="utf-8"></script>
41
+        <script type="text/javascript">
42
+			$(function(){
43
+				{% block onbodyload %}
44
+
45
+				{% endblock %}
46
+			});
47
+		</script>
47 48
     </body>
48 49
 </html>

+ 26
- 19
oscar/templates/checkout/shipping_address.html 파일 보기

@@ -6,28 +6,35 @@
6 6
 <div class="sub-header">
7 7
     <h4>Choose a shipping address from your address book</h4>
8 8
 </div>
9
-<ul>
10
-	{% for address in addresses %}
11
-	<li>
12
-	{{ address.summary }}
13
-	<form action="{% url checkout:shipping-address %}" method="post">
14
-		{% csrf_token %}
15
-		<input type="hidden" name="action" value="ship_to" />
16
-		<input type="hidden" name="address_id" value="{{ address.id }}" />
17
-		<input type="submit" value="Ship to this address" />
18
-	</form>
19
-	<a href="{% url checkout:user-address-update address.id %}">Edit this address</a>
20
-	<form action="{% url checkout:user-address-delete address.id %}" method="post">
21
-		{% csrf_token %}
22
-		<input type="submit" value="Delete from address book" />
23
-	</form>
24
-	</li>
25
-	{% endfor %}
26
-</ul>
9
+<div class="choose_shipping_address">
10
+    <ul>
11
+    	{% for address in addresses %}
12
+    	<li>
13
+    	<div class="alert alert-info">
14
+    	<p>{{ address.summary }}</p>
15
+    	<form action="{% url checkout:shipping-address %}" method="post">
16
+    		{% csrf_token %}
17
+    		<input type="hidden" name="action" value="ship_to" />
18
+    		<input type="hidden" name="address_id" value="{{ address.id }}" />
19
+    		<input type="submit" value="Ship to this address" class="btn btn-large btn-primary"/>
20
+    		<p><a href="{% url checkout:user-address-update address.id %}">Edit this address</a></p>
21
+    	</form>
22
+    	
23
+    	<form action="{% url checkout:user-address-delete address.id %}" method="post" class="delete_address">
24
+    		{% csrf_token %}
25
+    		<input type="submit" value="Delete from address book" class="btn btn-small" />
26
+    	</form>
27
+    	</div>
28
+    	</li>
29
+    	{% endfor %}
30
+    </ul>
31
+</div>
27 32
 </form>
28 33
 {% endif %}
29 34
 {% if request.user.is_authenticated %}
30
-    <p><a href="{% url checkout:user-address-create %}" class="btn">Add a new address to your address book</a></p>
35
+    <div class="form-actions">
36
+        <a href="{% url checkout:user-address-create %}" class="btn">Add a new address to your address book</a>
37
+        </div>
31 38
 {% endif %}
32 39
 
33 40
 

+ 0
- 33
oscar/templates/dashboard/orders/order_detail.html 파일 보기

@@ -189,39 +189,6 @@ Order {{ order.number }}
189 189
 </table>
190 190
 
191 191
 <p>With selected lines:</p>
192
-<<<<<<< HEAD
193
-<ul>
194
-    <li><label><input type="radio" name="line_action" value="change_line_statuses" /> Change status to</label>
195
-	<select name="new_status">
196
-		<option value=""> -- choose new status -- </option>
197
-		{% for status in line_statuses %}
198
-		<option>{{ status }}</option>
199
-		{% endfor %}
200
-	</select>
201
-    </li>
202
-	<li><label><input type="radio" name="line_action" value="create_shipping_event" /> Create shipping event</label>
203
-	<select name="shipping_event_type">
204
-		<option value=""> -- choose event type -- </option>
205
-		{% for event_type in shipping_event_types %}
206
-		<option value="{{ event_type.code }}">{{ event_type.name }}</option>
207
-		{% endfor %}
208
-	</select>
209
-	with notes: 
210
-	<textarea name="reference"></textarea>
211
-	</li>
212
-	<li><label><input type="radio" name="line_action" value="create_payment_event" /> Create payment event</label>
213
-	<select name="payment_event_type">
214
-		<option value=""> -- choose event type -- </option>
215
-		{% for event_type in payment_event_types %}
216
-		<option value="{{ event_type.code }}">{{ event_type.name }}</option>
217
-		{% endfor %}
218
-	</select>
219
-	with amount: 
220
-	<input type="text" name="amount" value="" />
221
-	</li>
222
-=======
223
->>>>>>> 30ac4fe5d8b4f5dd0e19905d684a07d09bd22200
224
-
225 192
 
226 193
 <div class="control-group">
227 194
     <div class="controls">

+ 1
- 1
oscar/templates/layout.html 파일 보기

@@ -8,7 +8,7 @@
8 8
     <div class="navbar accounts">
9 9
     	<div class="navbar-inner">
10 10
     		<div class="container-fluid">
11
-    			<a class="brand hidden" href="{% url promotions:home %}">Oscar // Domain-driven e-Commerce for Django</a>
11
+    			<a class="brand hidden" href="{% url promotions:home %}">Oscar</a>
12 12
     			<ul class="nav pull-right">
13 13
     				<li><a href="#">Home</a></li>
14 14
     				<li><a href="#about">About</a></li>

+ 1
- 1
oscar/templates/layout_checkout.html 파일 보기

@@ -8,7 +8,7 @@
8 8
     <div class="navbar accounts">
9 9
         <div class="navbar-inner">
10 10
             <div class="container-fluid">
11
-                <a class="brand hidden" href="{% url promotions:home %}">Oscar // Domain-driven e-Commerce for Django</a>
11
+                <a class="brand hidden" href="{% url promotions:home %}">Oscar</a>
12 12
                 <ul class="nav pull-right">
13 13
     				<li><a href="#">Home</a></li>
14 14
     				<li><a href="#about">About</a></li>

Loading…
취소
저장