Auto select checkbox when updating metadata values.
Closes GitLab issue #371. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -16,11 +16,16 @@ class DocumentMetadataForm(forms.Form):
|
||||
label=_('Name'), required=False,
|
||||
widget=forms.TextInput(attrs={'readonly': 'readonly'})
|
||||
)
|
||||
value = forms.CharField(label=_('Value'), required=False)
|
||||
value = forms.CharField(label=_('Value'), required=False,
|
||||
widget=forms.TextInput(attrs={'class': 'metadata-value'})
|
||||
)
|
||||
update = forms.BooleanField(
|
||||
initial=True, label=_('Update'), required=False
|
||||
)
|
||||
|
||||
class Media:
|
||||
js = ('metadata/js/metadata_form.js',)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(DocumentMetadataForm, self).__init__(*args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user