front image fields: DB change
This commit is contained in:
parent
219352ff42
commit
a03e312824
|
@ -18,7 +18,7 @@ class MenuHeadingAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
|
|
||||||
class FrontImageAdmin(admin.ModelAdmin):
|
class FrontImageAdmin(admin.ModelAdmin):
|
||||||
pass
|
list_editable = ['order']
|
||||||
|
|
||||||
admin.site.register(MenuHeading, MenuHeadingAdmin)
|
admin.site.register(MenuHeading, MenuHeadingAdmin)
|
||||||
admin.site.register(SliderBox, SliderBoxAdmin)
|
admin.site.register(SliderBox, SliderBoxAdmin)
|
||||||
|
|
|
@ -3,6 +3,8 @@ from django.db import models
|
||||||
class FrontImage(models.Model):
|
class FrontImage(models.Model):
|
||||||
image = models.ImageField(upload_to='upload/frontImages/')
|
image = models.ImageField(upload_to='upload/frontImages/')
|
||||||
caption = models.TextField(blank=True)
|
caption = models.TextField(blank=True)
|
||||||
|
is_active = models.BooleanField(default=True)
|
||||||
|
order = models.IntegerField(default=1)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.image.url
|
return self.image.url
|
||||||
|
|
|
@ -18,13 +18,13 @@
|
||||||
<div id="centerContent" class="centerContent">
|
<div id="centerContent" class="centerContent">
|
||||||
|
|
||||||
<div id="image">
|
<div id="image">
|
||||||
<img src="/static/images/noel/banner2.jpg" width="468" height="282"alt="banner-image" id="banner">
|
<img src="/static/images/noel/banner2.jpg" width="468" height="282"alt="banner-image" id="banner" >
|
||||||
<!--<p id="textTop">Welcome to the India Theatre Forum </p>-->
|
<!--<p id="textTop">Welcome to the India Theatre Forum </p>-->
|
||||||
<p id="textBottom"> A place where you can come and get, give, share, exchange all sorts of information, ideas, resources and more. </p>
|
<p id="textBottom"> A place where you can come and get, give, share, exchange all sorts of information, ideas, resources and more. </p>
|
||||||
<div id="buttonBanner">
|
<div id="buttonBanner">
|
||||||
<div id="buttonOne" class="buttons buttonsSelected"></div>
|
<div id="button0" class="buttons buttonsSelected"></div>
|
||||||
<div id="buttonTwo" class="buttons buttonsSelected"></div>
|
<div id="button1" class="buttons buttonsSelected"></div>
|
||||||
<div id="buttonThree" class="buttons buttonsSelected"></div>
|
<div id="button2" class="buttons buttonsSelected"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user