@@ -257,6 +257,10 @@ export default {
this.fields.push(field)
+ if (['signature', 'initials', 'cells'].includes(type)) {
+ this.$emit('set-draw', { field })
+ }
+
this.save()
}
}
diff --git a/app/models/template.rb b/app/models/template.rb
index 0259a76c..cf50532e 100644
--- a/app/models/template.rb
+++ b/app/models/template.rb
@@ -33,7 +33,7 @@
# fk_rails_... (folder_id => template_folders.id)
#
class Template < ApplicationRecord
- DEFAULT_SUBMITTER_NAME = 'First Submitter'
+ DEFAULT_SUBMITTER_NAME = 'First Party'
belongs_to :author, class_name: 'User'
belongs_to :account
diff --git a/app/views/api_settings/index.html.erb b/app/views/api_settings/index.html.erb
index 980e9b3d..35fcdeb5 100644
--- a/app/views/api_settings/index.html.erb
+++ b/app/views/api_settings/index.html.erb
@@ -34,7 +34,7 @@
"submitters": [
{
"name": "John Doe",
- "role": "<%= current_account.templates.last ? current_account.templates.last.submitters.first['name'] : 'First Submitter' %>",
+ "role": "<%= current_account.templates.last ? current_account.templates.last.submitters.first['name'] : 'First Party' %>",
"email": "<%= current_user.email.sub('@', '+test@') %>",
"values": {
"Form Text Field Name": "Default Value"
diff --git a/app/views/submissions/_submitters_order.html.erb b/app/views/submissions/_submitters_order.html.erb
index a37de594..3cc6353a 100644
--- a/app/views/submissions/_submitters_order.html.erb
+++ b/app/views/submissions/_submitters_order.html.erb
@@ -2,8 +2,8 @@
<%= f.label :preserve_order, for: uuid = SecureRandom.uuid, class: 'flex items-center cursor-pointer' do %>
<%= f.check_box :preserve_order, id: uuid, class: 'base-checkbox', checked: template.submissions.last&.submitters_order.in?(['preserved', nil]) %>
- Preserve submitters order
-
+ Preserve order
+
<%= svg_icon('info_circle', class: 'w-4 h-4') %>
<% end %>
diff --git a/spec/factories/templates.rb b/spec/factories/templates.rb
index aba62676..d1c433d2 100644
--- a/spec/factories/templates.rb
+++ b/spec/factories/templates.rb
@@ -24,7 +24,7 @@ FactoryBot.define do
template.schema = [{ attachment_uuid: attachment.uuid, name: 'sample-document' }]
template.submitters = [
{
- 'name' => 'First Submitter',
+ 'name' => 'First Party',
'uuid' => '513848eb-1096-4abc-a743-68596b5aaa4c'
}
]