Field('description',placeholder='I would be willing to exchange this textbook for one that I need next semester. /// This is for Professor Smith\'s section ONLY. /// I can give you the workbook as well.'),
placeholder='Squirrels: The Animal Answer Guide'),
Field('author',
placeholder='Richard W. Thorington, Jr., and Katie Ferrell'),
'edition',
Field('year',placeholder='2006'),
#'course',
'condition',
'access_code',
AppendedPrependedText('price','$','.00',
placeholder="whole numbers"),
'photo',
Field('description',
placeholder='I would be willing to exchange this textbook for one that I need next semester. /// This is for Professor Smith\'s section ONLY. /// I can give you the workbook as well.'),
FormActions(Submit('submit','Create',
css_class='btn-primary'),
Button('cancel','Never Mind',
css_class='btn-default',
onclick="history.back()")
),
),
)
super(ListingForm,self).__init__(*args,**kwargs)
...
...
@@ -43,50 +50,56 @@ class ListingForm( forms.ModelForm ):
@@ -95,83 +108,36 @@ class FlagForm( forms.ModelForm ):
#class EditListingForm( forms.ModelForm ):
classSellListingForm(forms.ModelForm):
classSellListingForm(forms.ModelForm):
def__init__(self,*args,**kwargs):
self.helper=FormHelper()
self.helper.label_class='be-bold'
self.helper.label_class='be-bold'
self.helper.layout=Layout(
Fieldset("",
'winning_bid',
HTML("""<hr/ >"""),
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>"""),
Field('email_message',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("""<hr/ >"""),
FormActions(
Submit('submit','Email and Sell',css_class='btn-primary'),
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>"""),
Field('email_message',
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>"""),