@@ -67,6 +67,3 @@ class DetailStudent(LoginRequiredMixin, DetailView):
returncontext
login_url='/'
# manage all listings -- close your listings, delete your listings, see your bids, remove your bids, close your bids, etc -- on both sides of the transactions, and the ratings
# other students see all of your previous transactions but without the editing options ofc
@@ -73,7 +70,6 @@ class BidForm( forms.ModelForm ):
classMeta:
model=Bid
include=('bidder','listing','price','text',)
classFlagForm(forms.ModelForm):
...
...
@@ -83,11 +79,8 @@ class FlagForm( forms.ModelForm ):
# bootstrap3 formatting
self.helper.label_class='be-bold'
self.helper.layout=Layout(
Fieldset("",
'flagger',
'listing',
'reason',
HTML("""<hr/ >"""),
FormActions(
...
...
@@ -99,7 +92,6 @@ class FlagForm( forms.ModelForm ):
classMeta:
model=Flag
include=('flagger','listing','reason',)
#class EditListingForm( forms.ModelForm ):
...
...
@@ -108,13 +100,11 @@ class SellListingForm( 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("",
'sold',
'winning_bid',
'date_closed',
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>"""),
...
...
@@ -128,11 +118,12 @@ class SellListingForm( forms.ModelForm ):