|
|
|
@ -1,3 +1,22 @@
|
|
|
|
|
|
|
|
<% if Addressable::URI.parse(params[:url]).host == 'docuseal-website.s3.amazonaws.com' %>
|
|
|
|
|
|
|
|
<div class="h-screen">
|
|
|
|
|
|
|
|
<div class="text-center p-8 h-full flex items-center justify-center">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<%= render 'shared/logo', width: 50, height: 50, class: 'mx-auto animate-bounce' %>
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<%= t('processing') %>...
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<submit-form>
|
|
|
|
|
|
|
|
<%= form_for '', url: templates_upload_path, method: :post, class: 'hidden' do %>
|
|
|
|
|
|
|
|
<button type="submit"></button>
|
|
|
|
|
|
|
|
<input name="url" value="<%= params[:url] %>">
|
|
|
|
|
|
|
|
<input name="filename" value="<%= params[:filename] %>">
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</submit-form>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
<confirm-upload>
|
|
|
|
<confirm-upload>
|
|
|
|
<div class="h-screen">
|
|
|
|
<div class="h-screen">
|
|
|
|
<div class="text-center p-8 h-full flex items-center justify-center">
|
|
|
|
<div class="text-center p-8 h-full flex items-center justify-center">
|
|
|
|
@ -28,3 +47,4 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</confirm-upload>
|
|
|
|
</confirm-upload>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|