Add wish price field placeholder

This commit is contained in:
grandeljay 2022-06-13 08:50:54 +02:00
parent 07e38ced91
commit 3456456ea4
3 changed files with 26 additions and 0 deletions

View file

@ -511,6 +511,17 @@ $(function () {
var validateURL = true;
function validateWishURL(formAddOrEdit, buttonAddOrSave, modalAddOrEdit) {
/**
* Validate Form
*/
formAddOrEdit
.form({
fields: {
wish_price : ['number'],
}
})
.form('validate form');
/**
* Validate URL
*/

View file

@ -67,6 +67,17 @@ $scriptPart = '/src/assets/js/parts/wish-add.js';
</select>
</div>
<div class="field disabled">
<label><?= __('Price') ?></label>
<input type="text"
name="wish_price"
placeholder="<?= $wish->price ?? '' ?>"
value="<?= $wish->price ?? '' ?>"
maxlength="9"
/>
</div>
<div class="grouped fields">
<label><?= __('Properties') ?></label>

View file

@ -175,6 +175,8 @@ $page->navigation();
<div class="ui two column grid">
<?php include 'parts/wish-add.php' ?>
</div>
<div class="ui error message"></div>
</form>
</div>
</div>
@ -202,6 +204,8 @@ $page->navigation();
<div class="ui two column grid">
<?php include 'parts/wish-add.php' ?>
</div>
<div class="ui error message"></div>
</form>
</div>
</div>