- slug = models.SlugField() #unused
-
- action = models.CharField(max_length=256)
-
- 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(blank=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)