fix: credits_display_name placerholder & removed old code
This commit is contained in:
parent
da57e37008
commit
0512f81b8b
1 changed files with 3 additions and 17 deletions
|
@ -145,20 +145,6 @@
|
|||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="form-group">
|
||||
<label for="product">{{ __('Resources') }}</label>
|
||||
<select name="product" required id="product" :disabled="!fetchedProducts"
|
||||
x-model="selectedProduct" @change="updateSelectedObjects()" class="custom-select">
|
||||
<option x-text="getProductInputText()" disabled selected hidden value="null"></option>
|
||||
<template x-for="product in products" :key="product.id">
|
||||
<option :disabled="product.minimum_credits > user.credits"
|
||||
x-text="getProductOptionText(product)" :value="product.id">
|
||||
</option>
|
||||
</template>
|
||||
</select>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -166,7 +152,6 @@
|
|||
|
||||
<div class="w-100"></div>
|
||||
<div class="col" x-show="selectedNode != null">
|
||||
<!-- <div class="row"><label for="product">{{ __('Resources') }}</label></div> -->
|
||||
<div class="row justify-content-center">
|
||||
<template x-for="product in products" :key="product.id">
|
||||
<div class="card col-xl-2 col-lg-3 col-md-4 col-sm-10 mr-2 ml-2 ">
|
||||
|
@ -227,7 +212,8 @@
|
|||
<span class="d-inline-block mr-4">
|
||||
{{ __('Price') }}:
|
||||
</span>
|
||||
<span class="d-inline-block" x-text="product.price + ' Credits'"></span>
|
||||
<span class="d-inline-block"
|
||||
x-text="product.price + ' {{ CREDITS_DISPLAY_NAME }}'"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -235,7 +221,7 @@
|
|||
:disabled="product.minimum_credits > user.credits"
|
||||
:class="product.minimum_credits > user.credits ? 'disabled' : ''"
|
||||
class="btn btn-primary btn-block mt-2" @click="setProduct(product.id)"
|
||||
x-text=" product.minimum_credits > user.credits ? 'Not enough credits!' : 'Create server'">
|
||||
x-text=" product.minimum_credits > user.credits ? 'Not enough {{ CREDITS_DISPLAY_NAME }}!' : 'Create server'">
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue