示例#1
0
 class Meta:
     model = Scorecard
     fields = ['approved', 'approved_by', 'approval_note']
     widgets = {
         'approval_note': MiniTextarea(),
         'approved_by': Select2({'width': "100%"})
     }
     field_classes = {'approved_by': UserModelChoiceField}
示例#2
0
 class Meta:
     model = Initiative
     fields = [
         'name',
         'description',
         'date',
         'scorecard',
         'kpi',
     ]
     widgets = {'description': MiniTextarea()}
示例#3
0
 class Meta:
     model = Score
     fields = [
         'date',
         'value',
         'notes',
         'scorecard',
         'kpi',
     ]
     widgets = {'notes': MiniTextarea()}
示例#4
0
 class Meta:
     model = Scorecard
     fields = [
         'name',
         'year',
         'description',
         'user',
         'customer',
         'active',
     ]
     widgets = {'name': MiniTextarea(), 'user': Select2({'width': "100%"})}
     field_classes = {'user': UserModelChoiceField}
示例#5
0
 class Meta:
     model = KPI
     fields = [
         'objective',
         'name',
         'measure',
         'description',
         'perspective',
         'baseline',
         'target',
         'unit',
         'direction',
         'weight',
         'reporting_period',
         'calculation',
         'reporting_method',
         'customer',
         'active',
     ]
     widgets = {
         'name': MiniTextarea(),
         'measure': MiniTextarea(),
         'objective': Select2({'width': "100%"})
     }