mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
advanced formats
This commit is contained in:
1 parent
ff46993de6
commit
5f5dabd0e5
2 files changed
+5
-1
No files matched your search
@@ -14,6 +14,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<input type="hidden" name="form_id" value="<%= form_id %>">
|
<input type="hidden" name="form_id" value="<%= form_id %>">
|
||||||
<input id="upload_template" name="files[]" class="hidden" onchange="this.form.requestSubmit()" type="file" accept="image/*, application/pdf<%= ', .docx, .doc, .xlsx, .xls, .odt, .rtf' if Docuseal.multitenant? %>" multiple>
|
<input id="upload_template" name="files[]" class="hidden" onchange="this.form.requestSubmit()" type="file" accept="image/*, application/pdf<%= ', .docx, .doc, .xlsx, .xls, .odt, .rtf' if Docuseal.advanced_formats? %>" multiple>
|
||||||
<input hidden name="folder_name" value="<%= local_assigns[:folder_name] %>">
|
<input hidden name="folder_name" value="<%= local_assigns[:folder_name] %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -55,6 +55,10 @@ module Docuseal
|
|||||||
ENV['MULTITENANT'] == 'true'
|
ENV['MULTITENANT'] == 'true'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def advanced_formats?
|
||||||
|
multitenant?
|
||||||
|
end
|
||||||
|
|
||||||
def demo?
|
def demo?
|
||||||
ENV['DEMO'] == 'true'
|
ENV['DEMO'] == 'true'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user