소스 검색

fix: 🐛 Merge missing hidden product in form

IceToast 2 년 전
부모
커밋
25db97d0a4
1개의 변경된 파일10개의 추가작업 그리고 6개의 파일을 삭제
  1. 10 6
      themes/default/views/servers/create.blade.php

+ 10 - 6
themes/default/views/servers/create.blade.php

@@ -223,13 +223,17 @@
                                     </div>
                                     <div class="mt-auto border rounded border-secondary">
                                         <div class="d-flex justify-content-between p-2">
-                                            <span class="d-inline-block mr-4" x-text="'{{ __('Price') }}' + ' (' + product.billing_period + ')'">
+                                            <span class="d-inline-block mr-4"
+                                                x-text="'{{ __('Price') }}' + ' (' + product.billing_period + ')'">
                                             </span>
                                             <span class="d-inline-block"
                                                 x-text="product.price + ' {{ CREDITS_DISPLAY_NAME }}'"></span>
                                         </div>
                                     </div>
-									<div>
+                                    <div>
+                                        <input type="hidden" name="product" x-model="selectedProduct">
+                                    </div>
+                                    <div>
                                         <button type="submit" x-model="selectedProduct" name="product"
                                             :disabled="product.minimum_credits > user.credits || product.doesNotFit == true ||
                                                 product.price > user.credits || submitClicked"
@@ -240,14 +244,14 @@
                                         </button>
                                     </div>
 
+                                </div>
                             </div>
+                        </template>
                     </div>
-                    </template>
                 </div>
-        </div>
 
-        </form>
-        <!-- END FORM -->
+            </form>
+            <!-- END FORM -->
 
         </div>
     </section>