diff --git a/app/javascript/submission_form/completed.vue b/app/javascript/submission_form/completed.vue
index 809ae3b6e..d44f9d2e6 100644
--- a/app/javascript/submission_form/completed.vue
+++ b/app/javascript/submission_form/completed.vue
@@ -126,7 +126,7 @@ export default {
IconLogin,
IconDownload
},
- inject: ['baseUrl', 't', 'nativePlatform'],
+ inject: ['baseUrl', 't'],
props: {
submitterSlug: {
type: String,
@@ -186,6 +186,11 @@ export default {
type: Object,
required: false,
default: () => ({})
+ },
+ nativePlatform: {
+ type: String,
+ required: false,
+ default: ''
}
},
data () {
diff --git a/app/javascript/submission_form/form.vue b/app/javascript/submission_form/form.vue
index e46a9bdf5..0bb530634 100644
--- a/app/javascript/submission_form/form.vue
+++ b/app/javascript/submission_form/form.vue
@@ -503,6 +503,7 @@
:with-qr-button="withQrButton"
:submitter="submitter"
:show-field-names="showFieldNames"
+ :native-platform="nativePlatform"
@update:reason="values[currentField.preferences?.reason_field_uuid] = $event"
@touch-attachment="attachmentsIndex[previousSignatureValue] ? attachmentsIndex[previousSignatureValue].created_at = new Date() : null"
@attached="attachments.push($event)"
@@ -521,6 +522,7 @@
:attachments-index="attachmentsIndex"
:show-field-names="showFieldNames"
:submitter-slug="submitterSlug"
+ :native-platform="nativePlatform"
@attached="attachments.push($event)"
@start="scrollIntoField(currentField)"
@focus="scrollIntoField(currentField)"
@@ -652,6 +654,7 @@
:with-confetti="withConfetti"
:can-send-email="canSendEmail && !!submitter.email"
:submitter-slug="submitterSlug"
+ :native-platform="nativePlatform"
/>
-
+
-
-
+
+
{{ t('save_and_preview') }}
-
-
-
-
+
+
+
+
{{ t('preferences') }}
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb
index a21fbfad0..f44a3dac3 100644
--- a/app/views/shared/_navbar.html.erb
+++ b/app/views/shared/_navbar.html.erb
@@ -27,7 +27,7 @@
-
+
-
<%= link_to settings_path, class: 'flex items-center' do %>
<%= svg_icon('adjustments', class: 'w-5 h-5 flex-shrink-0 stroke-2') %>
diff --git a/app/views/submissions/show.html.erb b/app/views/submissions/show.html.erb
index 027a35cbd..f1c861178 100644
--- a/app/views/submissions/show.html.erb
+++ b/app/views/submissions/show.html.erb
@@ -20,7 +20,7 @@
<% (@submission.name || @submission.template&.name).to_s.split(/(_)/).each do |item| %><%= item %><% end %>
<% end %>
-
+
<% if signed_in? && can?(:destroy, @submission) && @submission.archived_at? && !@submission.completed_at? %>
<%= button_to button_title(title: t('unarchive'), disabled_with: t('unarchive')[0..-2], icon: svg_icon('rotate', class: 'w-6 h-6')), submission_unarchive_index_path(@submission), class: 'btn btn-primary btn-ghost text-base hidden md:flex' %>
@@ -80,8 +80,8 @@
<% end %>
<% if show_combined_download %>
- -
-
+
+
-
<%= svg_icon('download', class: 'w-6 h-6 flex-shrink-0') %>
@@ -92,18 +92,18 @@
<%= t('downloading') %>
-
-
+
+
<% end %>
<% if show_unarchive %>
-
-
-
+
+
-
-
- <%= button_to '', submission_unarchive_index_path(@submission), form: { id: 'submission_unarchive_form' }, form_class: 'hidden' %>
-
+ <%= button_to '', submission_unarchive_index_path(@submission), form: { id: 'submission_unarchive_form' }, form_class: 'hidden' %>
+
+
<% end %>
diff --git a/app/views/templates/_template.html.erb b/app/views/templates/_template.html.erb
index 38c0367c2..b3667f6d2 100644
--- a/app/views/templates/_template.html.erb
+++ b/app/views/templates/_template.html.erb
@@ -73,7 +73,7 @@
-
+
<% if can?(:create, Submission) %>
-
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index c2035ae0e..769a273ac 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -65,7 +65,7 @@
-