Jovan Jovanovic пре 3 година
родитељ
комит
4bc9d4cdce

+ 6 - 1
resources/views/admin/products/create.blade.php

@@ -136,7 +136,7 @@
                                         <div class="form-group">
                                         <div class="form-group">
                                             <label for="minimum_credits">Minimum {{ CREDITS_DISPLAY_NAME }} <i
                                             <label for="minimum_credits">Minimum {{ CREDITS_DISPLAY_NAME }} <i
                                                     data-toggle="popover" data-trigger="hover"
                                                     data-toggle="popover" data-trigger="hover"
-                                                    data-content="Setting to -1 will use the default value."
+                                                    data-content="Setting to -1 will use the value from configuration."
                                                     class="fas fa-info-circle"></i></label>
                                                     class="fas fa-info-circle"></i></label>
                                             <input value="{{ old('minimum_credits') ?? -1 }}" id="minimum_credits"
                                             <input value="{{ old('minimum_credits') ?? -1 }}" id="minimum_credits"
                                                 name="minimum_credits" type="number"
                                                 name="minimum_credits" type="number"
@@ -211,6 +211,11 @@
     </section>
     </section>
     <!-- END CONTENT -->
     <!-- END CONTENT -->
 
 
+    <script>
+        document.addEventListener('DOMContentLoaded', function() {
+            $('[data-toggle="popover"]').popover();
+        });
+    </script>
 
 
 
 
 @endsection
 @endsection

+ 8 - 3
resources/views/admin/products/edit.blade.php

@@ -146,7 +146,7 @@
                                         <div class="form-group">
                                         <div class="form-group">
                                             <label for="minimum_credits">Minimum {{ CREDITS_DISPLAY_NAME }} <i
                                             <label for="minimum_credits">Minimum {{ CREDITS_DISPLAY_NAME }} <i
                                                     data-toggle="popover" data-trigger="hover"
                                                     data-toggle="popover" data-trigger="hover"
-                                                    data-content="Setting to -1 will use the default value."
+                                                    data-content="Setting to -1 will use the value from configuration."
                                                     class="fas fa-info-circle"></i></label>
                                                     class="fas fa-info-circle"></i></label>
                                             <input value="{{ $product->minimum_credits }}" id="minimum_credits"
                                             <input value="{{ $product->minimum_credits }}" id="minimum_credits"
                                                 name="minimum_credits" type="number"
                                                 name="minimum_credits" type="number"
@@ -192,8 +192,8 @@
                                         </div>
                                         </div>
                                         <div class="form-group">
                                         <div class="form-group">
                                             <label for="allocations">Allocations</label>
                                             <label for="allocations">Allocations</label>
-                                            <input value="{{ $product->allocations }}" id="allocations" name="allocations"
-                                                type="number"
+                                            <input value="{{ $product->allocations }}" id="allocations"
+                                                name="allocations" type="number"
                                                 class="form-control @error('allocations') is-invalid @enderror"
                                                 class="form-control @error('allocations') is-invalid @enderror"
                                                 required="required">
                                                 required="required">
                                             @error('allocations')
                                             @error('allocations')
@@ -220,6 +220,11 @@
     </section>
     </section>
     <!-- END CONTENT -->
     <!-- END CONTENT -->
 
 
+    <script>
+        document.addEventListener('DOMContentLoaded', function() {
+            $('[data-toggle="popover"]').popover();
+        });
+    </script>
 
 
 
 
 @endsection
 @endsection