diff --git a/pacmanager/core/forms.py b/pacmanager/core/forms.py index 9f9ee05..322baf4 100644 --- a/pacmanager/core/forms.py +++ b/pacmanager/core/forms.py @@ -17,6 +17,6 @@ class CorporationContactForm(forms.ModelForm): class ManualAdjustmentForm(forms.Form): - corporation = forms.ModelChoiceField(queryset=Corporation.objects.all(), empty_label=None) - amount = forms.DecimalField(max_digits=20, decimal_places=2) - comment = forms.CharField(max_length=255) \ No newline at end of file + corporation = forms.ModelChoiceField(queryset=Corporation.objects.all(), empty_label=None, help_text="Corporation you wish to apply the adjustment to") + amount = forms.DecimalField(max_digits=20, decimal_places=2, help_text="The amount in ISK you wish to adjust the corporation's account by") + comment = forms.CharField(max_length=255, help_text="Free-form comment to describe this transaction") diff --git a/pacmanager/core/models.py b/pacmanager/core/models.py index 9f94064..9151d8f 100644 --- a/pacmanager/core/models.py +++ b/pacmanager/core/models.py @@ -85,8 +85,8 @@ class Transaction(models.Model): ) corporation = models.ForeignKey(Corporation, related_name='transactions') - type = models.PositiveIntegerField(choices=TRANSACTION_TYPE_CHOICES) - date = models.DateTimeField('Transaction Date', auto_now_add=True) + type = models.PositiveIntegerField(choices=TRANSACTION_TYPE_CHOICES, help_text="The type of transaction") + date = models.DateTimeField('Transaction Date', auto_now_add=True, help_text="The date/time the transaction was processed") value = models.DecimalField('Transaction Value', max_digits=25, decimal_places=2) comment = models.CharField(max_length=255) @@ -97,8 +97,8 @@ class Key(models.Model): """EVE API Key""" corporation = models.ForeignKey(Corporation, related_name='keys', blank=False, null=False) - keyid = models.BigIntegerField('Key ID', primary_key=True) - vcode = models.CharField('vCode', max_length=64) + keyid = models.BigIntegerField('Key ID', primary_key=True, help_text="Your EVE API key ID") + vcode = models.CharField('vCode', max_length=64, help_text="Your EVE API key vCode") mask = models.BigIntegerField('Access Mask') active = models.BooleanField('Active', default=True) @@ -111,7 +111,6 @@ class Key(models.Model): mask = 1 << bit return (accessmask & mask) > 0 - def save(self, *args, **kwargs): self.update_api() return super(Key, self).save(*args, **kwargs) diff --git a/pacmanager/core/templates/core/corporation_contact.html b/pacmanager/core/templates/core/corporation_contact.html index 92dae03..31d2e84 100644 --- a/pacmanager/core/templates/core/corporation_contact.html +++ b/pacmanager/core/templates/core/corporation_contact.html @@ -2,9 +2,7 @@ {% block content %}
Select the username of the contact you wish to assign to {{ object.name }}.
- +Select the username of the contact you wish to assign to {{ object.name }}.