Browse Source

Added Reset Password button

master
Lene Scholtz 5 years ago
parent
commit
e4780f89d6

+ 9
- 3
src/components/admin/status/agentsUserManagementPage.vue View File

@@ -66,8 +66,12 @@
66 66
             <th>
67 67
               <b>Reset Password</b>
68 68
             </th>
69
-            <th></th>
70
-            <th></th>
69
+            <th>
70
+              <b>Modify</b>
71
+            </th>
72
+            <th>
73
+              <b>Remove</b>
74
+            </th>
71 75
           </tr>
72 76
         </thead>
73 77
         <tbody>
@@ -80,7 +84,9 @@
80 84
             <td>{{ item.email }}</td>
81 85
             <td v-if="item.user">{{ item.user.role }}</td>
82 86
             <td v-else></td>
83
-            <td></td>
87
+            <td>
88
+              <button type="button" class="btn" style="margin:2px; color: #60CBEB">Reset</button>
89
+            </td>
84 90
             <td>
85 91
               <button
86 92
                 type="button"

+ 9
- 3
src/components/admin/status/userManagementPage.vue View File

@@ -63,8 +63,12 @@
63 63
             <th>
64 64
               <b>Reset Password</b>
65 65
             </th>
66
-            <th></th>
67
-            <th></th>
66
+            <th>
67
+              <b>Modify</b>
68
+            </th>
69
+            <th>
70
+              <b>Remove</b>
71
+            </th>
68 72
           </tr>
69 73
         </thead>
70 74
         <tbody>
@@ -77,7 +81,9 @@
77 81
             <td>{{ item.email }}</td>
78 82
             <td v-if="item.user">{{ item.user.role }}</td>
79 83
             <td v-else></td>
80
-            <td></td>
84
+            <td>
85
+              <button type="button" class="btn" style="margin:2px; color: #60CBEB">Reset</button>
86
+            </td>
81 87
             <td>
82 88
               <button
83 89
                 type="button"

+ 21
- 3
src/components/user/updateProfileInfo.vue View File

@@ -36,10 +36,23 @@
36 36
             <td>
37 37
               <button
38 38
                 type="button"
39
-                @click="Edit(item)"
39
+                data-toggle="modal"
40
+                :data-target="'#myModal' + i"
40 41
                 class="btn"
41 42
                 style="margin:2px; color: #60CBEB"
42 43
               >Edit</button>
44
+              <div :id="'myModal' + i" class="modal fade" role="dialog">
45
+                <div class="modal-dialog modal-lg">
46
+                  <div class="modal-content">
47
+                    <div class="modal-header">
48
+                      <button type="button" class="close" data-dismiss="modal">&times;</button>
49
+                    </div>
50
+                    <div padding-left="20px">
51
+                      <Individual name="PrivateIndividual" :isAddIndividual="false" :item="item" />
52
+                    </div>
53
+                  </div>
54
+                </div>
55
+              </div>
43 56
             </td>
44 57
           </tr>
45 58
         </tbody>
@@ -51,12 +64,17 @@
51 64
 
52 65
 <script>
53 66
 import { mapState, mapActions } from 'vuex';
54
-// import axios from 'axios';
67
+import Individual from './registerPage.vue';
55 68
 
56 69
 export default {
57 70
   name: 'UpdateInfo',
71
+  components: {
72
+    Individual,
73
+  },
58 74
   data() {
59
-    return {};
75
+    return {
76
+      item: {},
77
+    };
60 78
   },
61 79
   methods: {
62 80
     ...mapActions('register', ['getIndividuals']),

Loading…
Cancel
Save