- slug = models.SlugField()
- tag = models.CharField(max_length=128)
- key = models.CharField(blank=True, max_length=1)
- position = models.IntegerField(default=0)
-
+ slug = models.SlugField(unique=True) # unused
+
+ # behaviour
+ params = models.TextField(default='[]') # TODO: should be a JSON field
+ scriptlet = models.ForeignKey('Scriptlet', null=True, blank=True)
+ link = models.CharField(max_length=256, blank=True, default='')
+
+ # ui related stuff
+ accesskey = models.CharField(null=True, max_length=1)
+
+ tooltip = models.CharField(blank=True, max_length=120)
+
+ # Why the button is restricted to have the same position in each group ?
+ # position = models.IntegerField(default=0)