Add wish price field placeholder
This commit is contained in:
parent
07e38ced91
commit
3456456ea4
3 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue