diff --git a/app/controllers/start_form_controller.rb b/app/controllers/start_form_controller.rb index ca054121..346be19f 100644 --- a/app/controllers/start_form_controller.rb +++ b/app/controllers/start_form_controller.rb @@ -9,7 +9,7 @@ class StartFormController < ApplicationController before_action :load_template def show - @submitter = @template.submissions.new.submitters.new(uuid: @template.submitters.first['uuid']) + @submitter = @template.submissions.new.submitters.new(uuid: @template.submitters.second['uuid']) end def update @@ -21,7 +21,7 @@ class StartFormController < ApplicationController redirect_to start_form_completed_path(@template.slug, email: submitter_params[:email]) else @submitter.assign_attributes( - uuid: @template.submitters.first['uuid'], + uuid: @template.submitters.second['uuid'], ip: request.remote_ip, ua: request.user_agent ) diff --git a/app/javascript/template_builder/area.vue b/app/javascript/template_builder/area.vue index 4799d4ee..8aadf0ff 100644 --- a/app/javascript/template_builder/area.vue +++ b/app/javascript/template_builder/area.vue @@ -9,7 +9,8 @@
- {{ value }} + {{ editable ? value : value+' (Fill Out Now)' }} -
  • +
  • -
    - - -
  • -
  • +
  • template_folders.id) # class Template < ApplicationRecord - DEFAULT_SUBMITTER_NAME = 'First Submitter' + DEFAULT_SUBMITTER_NAME = 'Me' 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..8d8aaef0 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'] : 'Me' %>", "email": "<%= current_user.email.sub('@', '+test@') %>", "values": { "Form Text Field Name": "Default Value" diff --git a/app/views/submissions/_detailed_form.html.erb b/app/views/submissions/_detailed_form.html.erb index ae2a59cd..2ae0f229 100644 --- a/app/views/submissions/_detailed_form.html.erb +++ b/app/views/submissions/_detailed_form.html.erb @@ -10,6 +10,9 @@
  • <% template.submitters.each do |item| %> + <% if item["name"] == 'Me' %> + <% next %> + <% end %> <% if template.submitters.size > 1 %>