-
-
-
- {{ form.title }} - {{
- form.submissions_count
- }} Submission{{ form.submissions_count > 0 ? 's' : '' }}
-
-
-
-
- {{ tag }}
-
-
- {{ form.tags.length-1 }} more
-
-
+
+
![search-not-found]()
+
No forms found
+
+ Your search "{{searchForm.search}}" did not match any forms. Please try again.
+
+
+
+ Create a new form
+
+
+
+
+
+
+
{{ form.title }}
+
+ - {{ form.views_count }} view{{ form.views_count > 0 ? 's' : '' }}
+ - {{ form.submissions_count }}
+ submission{{ form.submissions_count > 0 ? 's' : '' }}
+
+ - Draft (not public)
+ - Edited {{ form.last_edited_human }}
+
+
+
+
+ {{ tag }}
+
+
+ {{ form.tags.length-1 }} more
+
+
+
+
-
-
- You have {{ forms.length }} forms
- ({{ enrichedForms.length }} matching search criteria)
- .
-
-
-
@@ -80,6 +98,7 @@ import Fuse from 'fuse.js'
import Form from 'vform'
import TextInput from '../components/forms/TextInput'
import OpenFormFooter from '../components/pages/OpenFormFooter'
+import ExtraMenu from '../components/pages/forms/show/ExtraMenu'
const loadForms = function () {
store.commit('open/forms/startLoading')
@@ -89,7 +108,7 @@ const loadForms = function () {
}
export default {
- components: { OpenFormFooter, TextInput },
+ components: { OpenFormFooter, TextInput, ExtraMenu },
beforeRouteEnter (to, from, next) {
loadForms()
@@ -127,6 +146,9 @@ export default {
} else {
this.selectedTags.splice(idx, 1)
}
+ },
+ viewForm (form) {
+ this.$router.push({name: 'forms.show', params: {slug: form.slug}})
}
},