@@ -114,7 +114,7 @@ class FlagForm(forms.ModelForm):
...
@@ -114,7 +114,7 @@ class FlagForm(forms.ModelForm):
#class EditListingForm( forms.ModelForm ):
#class EditListingForm( forms.ModelForm ):
classSellListingForm(forms.ModelForm):
classExchangeListingForm(forms.ModelForm):
def__init__(self,*args,**kwargs):
def__init__(self,*args,**kwargs):
...
@@ -126,7 +126,7 @@ class SellListingForm(forms.ModelForm):
...
@@ -126,7 +126,7 @@ class SellListingForm(forms.ModelForm):
'winning_bid',
'winning_bid',
HTML("""<hr/ >"""),
HTML("""<hr/ >"""),
HTML("""<strong>Your Email to Your Bidder</strong>"""),
HTML("""<strong>Your Email to Your Bidder</strong>"""),
HTML("""<div class="well"><em><p>Hey there!</p><p>Seller {{ listing.seller.user.first_name }} {{ listing.seller.user.last_name }} has picked your bid for {{ listing.title }} on SRCT Bookshare. They're the cc'ed email address-- {{ listing.seller.user.email }}.</p><p>Watch your email to arrange all the final touches to get your book.</p></em>"""),
HTML("""<div class="well"><em><p>Hey there!</p><p>Poster {{ listing.poster.user.get_full_name }} has picked your bid for {{ listing.title }} on SRCT Bookshare. They're the cc'ed email address-- {{ listing.poster.user.email }}.</p><p>Watch your email to arrange all the final touches to get your book.</p></em>"""),
Field('email_message',
Field('email_message',
placeholder='Do you want to meet tomorrow by the JC Info Desk at 4?'),
placeholder='Do you want to meet tomorrow by the JC Info Desk at 4?'),
HTML("""<em><p>Thanks for using SRCT Bookshare!</p><p>Mason SRCT</p></em></div>"""),
HTML("""<em><p>Thanks for using SRCT Bookshare!</p><p>Mason SRCT</p></em></div>"""),
...
@@ -140,7 +140,7 @@ class SellListingForm(forms.ModelForm):
...
@@ -140,7 +140,7 @@ class SellListingForm(forms.ModelForm):
@@ -149,7 +149,7 @@ class SellListingForm(forms.ModelForm):
...
@@ -149,7 +149,7 @@ class SellListingForm(forms.ModelForm):
model=Listing
model=Listing
classUnSellListingForm(forms.ModelForm):
classUnExchangeListingForm(forms.ModelForm):
def__init__(self,*args,**kwargs):
def__init__(self,*args,**kwargs):
...
@@ -159,7 +159,7 @@ class UnSellListingForm(forms.ModelForm):
...
@@ -159,7 +159,7 @@ class UnSellListingForm(forms.ModelForm):
self.helper.layout=Layout(
self.helper.layout=Layout(
Fieldset("",
Fieldset("",
HTML("""<strong>Your Email to Your Bidder</strong>"""),
HTML("""<strong>Your Email to Your Bidder</strong>"""),
HTML("""<div class="well"><em><p>Hey there!</p><p>Seller {{ listing.seller.user.first_name }} {{ listing.seller.user.last_name }} has cancelled your bid for {{ listing.title }} on SRCT Bookshare.</p><p>We certainly hope that this doesn't come as a shock. :-P</p><p>(If you don't know why you're getting this email, hey're the cc'ed email address-- {{ listing.seller.user.email }}. Contact them ASAP to clear up any confusion.)<p></em>"""),
HTML("""<div class="well"><em><p>Hey there!</p><p>Poster {{ listing.poster.user.get_full_name }} has cancelled your bid for {{ listing.title }} on SRCT Bookshare.</p><p>We certainly hope that this doesn't come as a shock. :-P</p><p>(If you don't know why you're getting this email, hey're the cc'ed email address-- {{ listing.poster.user.email }}. Contact them ASAP to clear up any confusion.)<p></em>"""),
Field('email_message',placeholder='I haven\'t heard from you in a couple of days, so I\'m going to have to try to exchange my textbook to someone else. :-/'),
Field('email_message',placeholder='I haven\'t heard from you in a couple of days, so I\'m going to have to try to exchange my textbook to someone else. :-/'),
HTML("""<em><p>Thanks for using SRCT Bookshare!</p><p>Mason SRCT</p></em></div>"""),
HTML("""<em><p>Thanks for using SRCT Bookshare!</p><p>Mason SRCT</p></em></div>"""),
HTML("""<hr/ >"""),
HTML("""<hr/ >"""),
...
@@ -172,7 +172,7 @@ class UnSellListingForm(forms.ModelForm):
...
@@ -172,7 +172,7 @@ class UnSellListingForm(forms.ModelForm):