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.
		
		
		
		
		
			
		
			
				
					
					
						
							41 lines
						
					
					
						
							1019 B
						
					
					
				
			
		
		
	
	
							41 lines
						
					
					
						
							1019 B
						
					
					
				| Submissions
 | |
| template <%= @template.name %>
 | |
| Copy share link:
 | |
| <input autocomplete="off" type="text" class="w-full" value="<%= start_form_url(slug: @template.slug) %>" disabled>
 | |
| <a href="<%= new_template_submission_path(@template) %>" class="bg-green-600" data-turbo-frame="modal">Add Recepients</a>
 | |
| <table>
 | |
|   <tr>
 | |
|     <th>
 | |
|       Email
 | |
|     </th>
 | |
|     <th>
 | |
|       Status
 | |
|     </th>
 | |
|     <th>
 | |
|     </th>
 | |
|   </tr>
 | |
|   <% @submissions.each do |submission| %>
 | |
|     <tr>
 | |
|       <td>
 | |
|         <%= submission.email %>
 | |
|       </td>
 | |
|       <td>
 | |
|         <% if submission.completed_at? %>
 | |
|           Completed
 | |
|         <% elsif submission.opened_at? %>
 | |
|           Opened
 | |
|         <% elsif submission.sent_at? %>
 | |
|           Sent
 | |
|         <% else %>
 | |
|           Awaiting
 | |
|         <% end %>
 | |
|       </td>
 | |
|       <td>
 | |
|         copy link<br>
 | |
|         <%= link_to 'View', submission_path(@template) %>
 | |
|         <%= button_to 'Remove', submission_path(submission), method: :delete, data: { turbo_confirm: 'Are you sure?' } %>
 | |
|       </td>
 | |
|     </tr>
 | |
|   <% end %>
 | |
| </table>
 |