mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
added help texts to storage form
This commit is contained in:
@@ -71,14 +71,21 @@ class KeywordForm(forms.ModelForm):
|
|||||||
class StorageForm(forms.ModelForm):
|
class StorageForm(forms.ModelForm):
|
||||||
username = forms.CharField(widget=forms.TextInput(attrs={'autocomplete': 'new-password'}), required=False)
|
username = forms.CharField(widget=forms.TextInput(attrs={'autocomplete': 'new-password'}), required=False)
|
||||||
password = forms.CharField(widget=forms.TextInput(attrs={'autocomplete': 'new-password', 'type': 'password'}),
|
password = forms.CharField(widget=forms.TextInput(attrs={'autocomplete': 'new-password', 'type': 'password'}),
|
||||||
required=False)
|
required=False,
|
||||||
|
help_text=_('Leave empty for dropbox and enter app password for nextcloud.'))
|
||||||
token = forms.CharField(widget=forms.TextInput(attrs={'autocomplete': 'new-password', 'type': 'password'}),
|
token = forms.CharField(widget=forms.TextInput(attrs={'autocomplete': 'new-password', 'type': 'password'}),
|
||||||
required=False)
|
required=False,
|
||||||
|
help_text=_('Leave empty for nextcloud and enter api token for dropbox.'))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Storage
|
model = Storage
|
||||||
fields = ('name', 'method', 'username', 'password', 'token', 'url')
|
fields = ('name', 'method', 'username', 'password', 'token', 'url')
|
||||||
|
|
||||||
|
help_texts = {
|
||||||
|
'url': _(
|
||||||
|
'Leave empty for dropbox and enter only base url for nextcloud (<code>/remote.php/webdav/</code> is added automatically.'),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class RecipeBookForm(forms.ModelForm):
|
class RecipeBookForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|||||||
Reference in New Issue
Block a user