Add warning when uploading a file

This commit is contained in:
Luis Ramos
2020-09-29 11:43:14 +01:00
parent be35f97622
commit 3b682bc47f
5 changed files with 49 additions and 5 deletions

View File

@@ -43,7 +43,7 @@
= t('.uploaded_on')
= '{{ Enterprise.terms_and_conditions_updated_at }}'
.pad-top
= f.file_field :terms_and_conditions, accept: 'application/pdf', 'ng-click' => 'show_terms_and_conditions_warning($event)'
= f.file_field :terms_and_conditions, accept: 'application/pdf', 'terms-and-conditions-warning' => 'true'
.pad-top
%a.button.red{ href: '', ng: {click: 'removeTermsAndConditions()', if: 'Enterprise.terms_and_conditions'} }
= t('.remove_terms_and_conditions')