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.
		
		
		
		
		
			
		
			
				
					
					
						
							21 lines
						
					
					
						
							862 B
						
					
					
				
			
		
		
	
	
							21 lines
						
					
					
						
							862 B
						
					
					
				<div class="form-control">
 | 
						|
  <% is_smtp_configured = Accounts.can_send_emails?(current_account) %>
 | 
						|
  <%= f.label :send_email, for: uuid = SecureRandom.uuid, class: 'flex items-center cursor-pointer' do %>
 | 
						|
    <%= f.check_box :send_email, id: uuid, class: 'base-checkbox', disabled: !is_smtp_configured, checked: is_smtp_configured %>
 | 
						|
    <span class="label">Send emails</span>
 | 
						|
  <% end %>
 | 
						|
  <% unless is_smtp_configured %>
 | 
						|
    <div class="alert my-4">
 | 
						|
      <%= svg_icon('info_circle', class: 'w-6 h-6') %>
 | 
						|
      <div>
 | 
						|
        <p class="font-bold">SMTP not Configured</p>
 | 
						|
        <p class="text-gray-700">
 | 
						|
          Configure SMTP settings in order to send emails:
 | 
						|
          <br>
 | 
						|
          <a class="link font-medium" data-turbo-frame="_top" href="<%= settings_email_index_path %>">Go to SMTP settings</a>
 | 
						|
        </p>
 | 
						|
      </div>
 | 
						|
    </div>
 | 
						|
  <% end %>
 | 
						|
</div>
 |