1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-05 06:43:56 +02:00

front improvement on alias page

This commit is contained in:
Pierre-antoine Comby
2020-03-01 13:42:22 +01:00
parent 35d5bcdf0f
commit b7e68722aa
5 changed files with 21 additions and 11 deletions

View File

@@ -12,8 +12,12 @@ class AliasForm(forms.ModelForm):
class Meta:
model = Alias
fields = ("name",)
def __init__(self,*args,**kwargs):
super().__init__(*args,**kwargs)
self.fields["name"].label = False
self.fields["name"].widget.attrs={"placeholder":_('New Alias')}
class TransactionTemplateForm(forms.ModelForm):
class Meta:
model = TransactionTemplate