mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							890 B
						
					
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							890 B
						
					
					
				| template: <%= @submission.template.name %>
 | |
| Sub: <%= @submission.slug %>
 | |
| Copy share link:
 | |
| <input autocomplete="off" type="text" class="w-full" value="<%= submit_form_url(slug: @submission.slug) %>" disabled>
 | |
| <% @submission.template.fields.each do |field| %>
 | |
|   <div>
 | |
|     <%= field['name'] %>:
 | |
|     <% if ['image', 'signature'].include?(field['type']) %>
 | |
|       <% Array.wrap(@submission.values[field['uuid']]).each do |uuid| %>
 | |
|         <img src="<%= ActiveStorage::Attachment.find_by(uuid:).url %>">
 | |
|       <% end %>
 | |
|     <% elsif ['attachment'].include?(field['type']) %>
 | |
|       <% Array.wrap(@submission.values[field['uuid']]).each do |uuid| %>
 | |
|         <% attachment = ActiveStorage::Attachment.find_by(uuid:) %>
 | |
|         <a href="<%= attachment.url %>"><%= attachment.filename %></a>
 | |
|       <% end %>
 | |
|     <% else %>
 | |
|       <%= @submission.values[field['uuid']] %>
 | |
|     <% end %>
 | |
|   </div>
 | |
| <% end %>
 |