From 7bb53c64da2dcf88894bfd31503accdd81498f3d Mon Sep 17 00:00:00 2001
From: Thomas Duval <thomas.duval@orange.com>
Date: Wed, 3 Jun 2020 10:06:52 +0200
Subject: Update to new version 5.4

Signed-off-by: Thomas Duval <thomas.duval@orange.com>
Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea
---
 dashboard/src/components/FormHeader.vue | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 dashboard/src/components/FormHeader.vue

(limited to 'dashboard/src/components/FormHeader.vue')

diff --git a/dashboard/src/components/FormHeader.vue b/dashboard/src/components/FormHeader.vue
new file mode 100644
index 00000000..05419179
--- /dev/null
+++ b/dashboard/src/components/FormHeader.vue
@@ -0,0 +1,27 @@
+<template>
+    <div class="form-inline row">
+      <input
+        type="search"
+        class="form-control filter col-9 mr-auto"
+        :placeholder="placeholder"
+        v-bind:value="value"
+        v-on:input="$emit('input', $event.target.value)"
+      >
+      <div class="col"></div>
+      <button v-if="needButton" type="button" class="btn btn-primary col-auto " @click="$emit('click')">
+        <span class="fa fa-plus"></span>
+        {{ buttonText }}
+      </button>
+    </div>
+</template>
+
+<script>
+export default {
+    props: {
+        value: String,
+        needButton: Boolean,
+        buttonText: String,
+        placeholder: String,
+    }
+}
+</script>
\ No newline at end of file
-- 
cgit 1.2.3-korg

