##// END OF EJS Templates
modificando el modelo y estilo
arturo -
r4:5
parent child
Show More
@@ -5,6 +5,7
5 5 from django.utils.translation import ugettext as _
6 6
7 7 class Category(models.Model):
8
8 9 STATE_CHOICES = (
9 10 (1, u'Activo'),
10 11 (0, u'Inactivo'),
@@ -35,6 +36,11
35 36
36 37 class Subcategory(models.Model):
37 38
39 STATE_CHOICES = (
40 (1, u'Activo'),
41 (0, u'Inactivo'),
42 )
43
38 44 category = models.ForeignKey(Category,
39 45 verbose_name=_(u'Categoría')
40 46 )
@@ -50,7 +56,8
50 56 )
51 57
52 58 state = models.PositiveSmallIntegerField(
53 verbose_name=_(u'Estado')
59 verbose_name=_(u'Estado'),
60 choices=STATE_CHOICES
54 61 )
55 62
56 63 def __unicode__(self):
@@ -91,6 +98,10
91 98 verbose_name=_(u'Característica')
92 99 )
93 100
101 num_order = models.PositiveIntegerField(
102 verbose_name=_(u'Orden')
103 )
104
94 105 def __unicode__(self):
95 106 return u'Subcategoría: %s ::: %s' % (
96 107 self.subcategory,
@@ -9,8 +9,6
9 9 #content #main_content{float: left; width:660px; text-align: center; border:1px solid #6392ed}
10 10 #footer{ margin: 0 auto; width:980px; border:1px solid #1cc}
11 11
12 .sel_general{width:150px; height:20px}
13
14 12 #left_col #cat_header{border:0px solid #F44948; margin: 5px 5px 5px 5px}
15 13 #left_col #cat_header .title_cat{text-transform:uppercase; font-size:14px; display:block; padding-left:5px; line-height:25px}
16 14 #left_col #cat_header select{width:150px; margin-top:5px; text-align:center}
@@ -20,6 +18,11
20 18 #div_subcategorias #head_subcat .lblCat_selected{text-transform: uppercase; color: #c22; float:left; padding-right:2px; padding-left:5px; text-align:left; width:100px}
21 19 #div_subcategorias #head_subcat .title_cat_selected{float:left; font-size:14px; padding-left: 2px}
22 20
21 #lst_familias{width:100%}
22 #lst_familias .tbl_familias{width:100%}
23 .tbl_familias thead{text-align:center; line-height:25px; font-size:0.9em}
24 .tbl_familias thead th{border:1px solid #1cc}
25
23 26 #frmFamilia{border:1px solid #000; text-align:center; margin:5px 5px 5px 5px; width: 650px}
24 27 #frmFamilia .row_reg{display:block; width:280px; line-height:25px; border:1px solid #cee; margin-left:5px; margin-top:5px; margin-bottom: 5px}
25 28 #frmFamilia .row_reg label{text-align:right; float:left; width: 60px; border: 0px solid #a22; padding-right:5px}
General Comments 0
You need to be logged in to leave comments. Login now