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.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							709 B
						
					
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							709 B
						
					
					
				| <% account_config = AccountConfig.where(account: current_account, key: AccountConfig::FORM_WITH_CONFETTI_KEY).first_or_initialize(value: true) %>
 | |
| <% if can?(:manage, account_config) %>
 | |
|   <div class="px-1 mt-2">
 | |
|     <%= form_for account_config, url: account_configs_path, method: :post do |f| %>
 | |
|       <%= f.hidden_field :key %>
 | |
|       <div class="flex items-center justify-between py-2.5">
 | |
|         <span>
 | |
|           <%= t('show_confetti_on_successful_completion') %>
 | |
|         </span>
 | |
|         <submit-form data-on="change" class="flex">
 | |
|           <%= f.check_box :value, { class: 'toggle', checked: account_config.value != false }, '1', '0' %>
 | |
|         </submit-form>
 | |
|       </div>
 | |
|     <% end %>
 | |
|   </div>
 | |
| <% end %>
 |