fix erblint
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
/config/master.key
|
/config/master.key
|
||||||
/public/packs-test
|
/public/packs-test
|
||||||
LICENSE
|
/public/packs
|
||||||
/attachments
|
/attachments
|
||||||
/docuseal
|
/docuseal
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<a href="<%= new_template_path(base_template_id: template.id) %>" data-turbo-frame="modal" class="btn btn-xs btn-outline bg-base-200 btn-circle">
|
<a href="<%= new_template_path(base_template_id: template.id) %>" data-turbo-frame="modal" class="btn btn-xs btn-outline bg-base-200 btn-circle">
|
||||||
<%= svg_icon('copy', class: 'w-4 h-4') %>
|
<%= svg_icon('copy', class: 'w-4 h-4') %>
|
||||||
</a>
|
</a>
|
||||||
<%= button_to template_path(template), data: { turbo_confirm: 'Are you sure?' }, method: :delete, class: "btn btn-xs btn-outline bg-base-200 btn-circle" do %>
|
<%= button_to template_path(template), data: { turbo_confirm: 'Are you sure?' }, method: :delete, class: 'btn btn-xs btn-outline bg-base-200 btn-circle' do %>
|
||||||
<%= svg_icon('trash', class: 'w-4 h-4 enabled') %>
|
<%= svg_icon('trash', class: 'w-4 h-4 enabled') %>
|
||||||
<%= svg_icon('loader', class: 'w-4 h-4 animate-spin disabled') %>
|
<%= svg_icon('loader', class: 'w-4 h-4 animate-spin disabled') %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<h1 class="text-4xl font-bold text-center my-8">Change your password</h1>
|
<h1 class="text-4xl font-bold text-center my-8">Change your password</h1>
|
||||||
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: 'space-y-6' }) do |f| %>
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: 'space-y-6' }) do |f| %>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<%= render 'devise/shared/error_messages', resource: resource %>
|
<%= render 'devise/shared/error_messages', resource: %>
|
||||||
<%= f.hidden_field :reset_password_token %>
|
<%= f.hidden_field :reset_password_token %>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<%= f.label :password, 'New password', class: 'label' %>
|
<%= f.label :password, 'New password', class: 'label' %>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="max-w-xl mx-auto">
|
<div class="max-w-xl mx-auto">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<div class="relative flex flex-col items-center">
|
<div class="relative flex flex-col items-center">
|
||||||
<%= render 'shared/logo', width: "100", height: "100" %>
|
<%= render 'shared/logo', width: '100', height: '100' %>
|
||||||
<h1 class="text-6xl font-bold mt-4 mb-8">
|
<h1 class="text-6xl font-bold mt-4 mb-8">
|
||||||
DocuSeal
|
DocuSeal
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<span class="enabled">
|
<span class="enabled">
|
||||||
<span class="flex items-center justify-center space-x-2">
|
<span class="flex items-center justify-center space-x-2">
|
||||||
<%= icon if icon %>
|
<%= icon %>
|
||||||
<span><%= title %></span>
|
<span><%= title %></span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="join">
|
<div class="join">
|
||||||
<% if @pagy.prev %>
|
<% if @pagy.prev %>
|
||||||
<%== link.call(@pagy.prev, "«", 'class="join-item btn min-h-full h-10"') %>
|
<%== link.call(@pagy.prev, '«', 'class="join-item btn min-h-full h-10"') %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="join-item btn btn-disabled !bg-base-200 min-h-full h-10">«</span>
|
<span class="join-item btn btn-disabled !bg-base-200 min-h-full h-10">«</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
Page <%= @pagy.page %>
|
Page <%= @pagy.page %>
|
||||||
</span>
|
</span>
|
||||||
<% if @pagy.next %>
|
<% if @pagy.next %>
|
||||||
<%== link.call(@pagy.next, "»", 'class="join-item btn min-h-full h-10"') %>
|
<%== link.call(@pagy.next, '»', 'class="join-item btn min-h-full h-10"') %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="join-item btn btn-disabled !bg-base-200 min-h-full h-10">»</span>
|
<span class="join-item btn btn-disabled !bg-base-200 min-h-full h-10">»</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -4,19 +4,19 @@
|
|||||||
<li class="menu-title py-0"><span>Settings</span></li>
|
<li class="menu-title py-0"><span>Settings</span></li>
|
||||||
<li></li>
|
<li></li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to 'Profile', settings_profile_index_path, class: "text-base hover:bg-base-300" %>
|
<%= link_to 'Profile', settings_profile_index_path, class: 'text-base hover:bg-base-300' %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to 'Email', settings_email_index_path, class: "text-base hover:bg-base-300" %>
|
<%= link_to 'Email', settings_email_index_path, class: 'text-base hover:bg-base-300' %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to 'Storage', settings_storage_index_path, class: "text-base hover:bg-base-300" %>
|
<%= link_to 'Storage', settings_storage_index_path, class: 'text-base hover:bg-base-300' %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to 'eSign', settings_esign_index_path, class: "text-base hover:bg-base-300" %>
|
<%= link_to 'eSign', settings_esign_index_path, class: 'text-base hover:bg-base-300' %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to 'Team', settings_users_path, class: "text-base hover:bg-base-300" %>
|
<%= link_to 'Team', settings_users_path, class: 'text-base hover:bg-base-300' %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<div class="flex items-center justify-center">
|
<div class="flex items-center justify-center">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<div class="mr-3">
|
<div class="mr-3">
|
||||||
<%= render 'shared/logo', width: "50px", height: "50px"%>
|
<%= render 'shared/logo', width: '50px', height: '50px' %>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="text-5xl font-bold text-center">DocuSeal</h1>
|
<h1 class="text-5xl font-bold text-center">DocuSeal</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<% value = @encrypted_config.value || { 'service' => 'disk' } %>
|
<% value = @encrypted_config.value || { 'service' => 'disk' } %>
|
||||||
<% configs = value['configs'] || {} %>
|
<% configs = value['configs'] || {} %>
|
||||||
<%= form_for @encrypted_config, url: settings_storage_index_path, method: :post, html: { autocomplete: 'off', class: 'w-full' } do |f| %>
|
<%= form_for @encrypted_config, url: settings_storage_index_path, method: :post, html: { autocomplete: 'off', class: 'w-full' } do |f| %>
|
||||||
<% options = [['Disk', 'disk'], ['AWS', 'aws_s3'], ['GCP', 'google'], ['Azure', 'azure']] %>
|
<% options = [%w[Disk disk], %w[AWS aws_s3], %w[GCP google], %w[Azure azure]] %>
|
||||||
<toggle-visible data-element-ids="<%= options.map(&:last).to_json %>" class="block relative">
|
<toggle-visible data-element-ids="<%= options.map(&:last).to_json %>" class="block relative">
|
||||||
<ul class="items-center w-full text-sm font-medium text-gray-900 space-y-2 sm:space-y-0 sm:flex sm:space-x-2">
|
<ul class="items-center w-full text-sm font-medium text-gray-900 space-y-2 sm:space-y-0 sm:flex sm:space-x-2">
|
||||||
<% options.each do |(label, val)| %>
|
<% options.each do |(label, val)| %>
|
||||||
@@ -24,16 +24,16 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</toggle-visible>
|
</toggle-visible>
|
||||||
<disable-hidden id="disk" class="block my-4 <%= 'hidden' if value['service'] != 'disk' %>">
|
<disable-hidden id="disk" class="block my-4 <%= 'hidden' if value['service'] != 'disk' %>">
|
||||||
<%= render "disk_form", f: f %>
|
<%= render 'disk_form', f: %>
|
||||||
</disable-hidden>
|
</disable-hidden>
|
||||||
<disable-hidden id="aws_s3" class="block my-4 space-y-4 <%= 'hidden' if value['service'] != 'aws_s3' %>">
|
<disable-hidden id="aws_s3" class="block my-4 space-y-4 <%= 'hidden' if value['service'] != 'aws_s3' %>">
|
||||||
<%= render "aws_form", f: f, configs: configs, value: value %>
|
<%= render 'aws_form', f:, configs:, value: %>
|
||||||
</disable-hidden>
|
</disable-hidden>
|
||||||
<disable-hidden id="google" class="block mt-4 space-y-4 mb-8 <%= 'hidden' if value['service'] != 'google' %>">
|
<disable-hidden id="google" class="block mt-4 space-y-4 mb-8 <%= 'hidden' if value['service'] != 'google' %>">
|
||||||
<%= render "google_cloud_form", f: f, configs: configs, value: value %>
|
<%= render 'google_cloud_form', f:, configs:, value: %>
|
||||||
</disable-hidden>
|
</disable-hidden>
|
||||||
<disable-hidden id="azure" class="block mt-4 space-y-4 mb-8 <%= 'hidden' if value['service'] != 'azure' %>">
|
<disable-hidden id="azure" class="block mt-4 space-y-4 mb-8 <%= 'hidden' if value['service'] != 'azure' %>">
|
||||||
<%= render "azure_form", f: f, configs: configs, value: value %>
|
<%= render 'azure_form', f:, configs:, value: %>
|
||||||
</disable-hidden>
|
</disable-hidden>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<%= f.button button_title(title: 'Save', disabled_with: 'Saving'), class: 'base-button' %>
|
<%= f.button button_title(title: 'Save', disabled_with: 'Saving'), class: 'base-button' %>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<div class="px-0.5 flex flex-col justify-center">
|
<div class="px-0.5 flex flex-col justify-center">
|
||||||
<% Array.wrap(value).each do |val| %>
|
<% Array.wrap(value).each do |val| %>
|
||||||
<a target="_blank" href="<%= attachments_index[val].url %>">
|
<a target="_blank" href="<%= attachments_index[val].url %>">
|
||||||
<%= svg_icon('paperclip', class: "inline w-[1.5vw] h-[1.5vw] lg:w-4 lg:h-4") %>
|
<%= svg_icon('paperclip', class: 'inline w-[1.5vw] h-[1.5vw] lg:w-4 lg:h-4') %>
|
||||||
<%= attachments_index[val].filename %>
|
<%= attachments_index[val].filename %>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<%= render 'shared/turbo_modal', title: 'New Recipients' do %>
|
<%= render 'shared/turbo_modal', title: 'New Recipients' do %>
|
||||||
<%= form_for '', url: template_submissions_path(@template), html: { class: 'space-y-4' }, data: { turbo_frame: :_top } do |f| %>
|
<%= form_for '', url: template_submissions_path(@template), html: { class: 'space-y-4', autocomplete: 'off' }, data: { turbo_frame: :_top } do |f| %>
|
||||||
<% if @template.submitters.size == 1 %>
|
<% if @template.submitters.size == 1 %>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<%= f.label :emails, class: 'label' %>
|
<%= f.label :emails, class: 'label' %>
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<span class="label-text"> <%= item['name'] %></span>
|
<span class="label-text"> <%= item['name'] %></span>
|
||||||
</label>
|
</label>
|
||||||
<input type="hidden" name="submission[1][submitters][][uuid]" value="<%= item['uuid'] %>">
|
<input type="hidden" name="submission[1][submitters][][uuid]" value="<%= item['uuid'] %>">
|
||||||
<input type="email" name="submission[1][submitters][][email]" value="<%= item['email'] %>" class="input input-sm input-bordered" placeholder="Email" required>
|
<input type="email" name="submission[1][submitters][][email]" value="<%= item['email'] %>" autocomplete="off" class="input input-sm input-bordered" placeholder="Email" required>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
<%= f.text_area :message, value: format(SubmitterMailer::DEFAULT_MESSAGE, name: @template.name), required: true, class: 'base-textarea !rounded-lg' %>
|
<%= f.text_area :message, value: format(SubmitterMailer::DEFAULT_MESSAGE, name: @template.name), required: true, class: 'base-textarea !rounded-lg' %>
|
||||||
<span class="label-text">
|
<span class="label-text">
|
||||||
Thanks,
|
Thanks,
|
||||||
</br>
|
<br>
|
||||||
<%= current_account.name %>
|
<%= current_account.name %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative w-80 flex-none pt-0.5 pr-4 pl-0.5 overflow-auto space">
|
<div class="relative w-80 flex-none pt-0.5 pr-4 pl-0.5 overflow-auto space">
|
||||||
<% colors = ['bg-red-500', 'bg-sky-500', 'bg-emerald-500', 'bg-yellow-300', 'bg-purple-600'] %>
|
<% colors = %w[bg-red-500 bg-sky-500 bg-emerald-500 bg-yellow-300 bg-purple-600] %>
|
||||||
<% submitter_fields_index = @submission.template.fields.group_by { |f| f['submitter_uuid'] } %>
|
<% submitter_fields_index = @submission.template.fields.group_by { |f| f['submitter_uuid'] } %>
|
||||||
<% @submission.template.submitters.each_with_index do |item, index| %>
|
<% @submission.template.submitters.each_with_index do |item, index| %>
|
||||||
<% submitter = @submission.submitters.find { |e| e.uuid == item['uuid'] } %>
|
<% submitter = @submission.submitters.find { |e| e.uuid == item['uuid'] } %>
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
<div class="flex flex-col justify-center">
|
<div class="flex flex-col justify-center">
|
||||||
<% Array.wrap(value).each do |val| %>
|
<% Array.wrap(value).each do |val| %>
|
||||||
<a target="_blank" class="flex items-center space-x-1" href="<%= attachments_index[val].url %>">
|
<a target="_blank" class="flex items-center space-x-1" href="<%= attachments_index[val].url %>">
|
||||||
<%= svg_icon('paperclip', class: "w-4 h-4") %>
|
<%= svg_icon('paperclip', class: 'w-4 h-4') %>
|
||||||
<span>
|
<span>
|
||||||
<%= attachments_index[val].filename %>
|
<%= attachments_index[val].filename %>
|
||||||
</span>
|
</span>
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% elsif field['type'] == 'checkbox' %>
|
<% elsif field['type'] == 'checkbox' %>
|
||||||
<%= svg_icon('check', class: "w-6 h-6") %>
|
<%= svg_icon('check', class: 'w-6 h-6') %>
|
||||||
<% elsif field['type'] == 'date' %>
|
<% elsif field['type'] == 'date' %>
|
||||||
<%= l(Date.parse(value)) %>
|
<%= l(Date.parse(value)) %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="flex items-center justify-center">
|
<div class="flex items-center justify-center">
|
||||||
<a href="/" class="flex items-center">
|
<a href="/" class="flex items-center">
|
||||||
<div class="mr-3">
|
<div class="mr-3">
|
||||||
<%= render 'shared/logo', width: "50px", height: "50px"%>
|
<%= render 'shared/logo', width: '50px', height: '50px' %>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="text-5xl font-bold text-center">DocuSeal</h1>
|
<h1 class="text-5xl font-bold text-center">DocuSeal</h1>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<%- if @submissions.any? %>
|
<% if @submissions.any? %>
|
||||||
<table class="table w-full table-lg rounded-t-2xl overflow-hidden">
|
<table class="table w-full table-lg rounded-t-2xl overflow-hidden">
|
||||||
<thead class="bg-base-200">
|
<thead class="bg-base-200">
|
||||||
<tr class="text-neutral uppercase">
|
<tr class="text-neutral uppercase">
|
||||||
|
|||||||
Reference in New Issue
Block a user