mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2725 [advs-module] Add option to remove decimal field when creating an ad
This commit is contained in:
parent
7b9a76c1a1
commit
10567cd6c1
@ -102,10 +102,12 @@
|
||||
<div class="col-8 pr-0 col-md-3">
|
||||
<input class="form-control priceField whole-price" value="{{ PriceValue|first }}">
|
||||
</div>
|
||||
<div class="col-4 col-md-1">
|
||||
<input class="form-control priceDecimalField decimal-price" placeholder="00" maxlength="2"
|
||||
value="{{ PriceValue[1] }}">
|
||||
</div>
|
||||
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
|
||||
<div class="col-4 col-md-1">
|
||||
<input class="form-control priceDecimalField decimal-price" placeholder="00" maxlength="2"
|
||||
value="{{ PriceValue[1] }}">
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<select name="currency" class="custom-select form-control" data-field="currency"
|
||||
data-field_name="currency" data-provides="anomaly.field_type.select"
|
||||
|
||||
@ -491,6 +491,7 @@ class AdvsController extends PublicController
|
||||
return $this->redirect->route('visiosoft.module.advs::list');
|
||||
}
|
||||
|
||||
$complaints = null;
|
||||
if ($this->adv_model->is_enabled('complaints')) {
|
||||
$complaints = ComplaintsComplainTypesEntryModel::all();
|
||||
}
|
||||
@ -580,7 +581,7 @@ class AdvsController extends PublicController
|
||||
|
||||
if ($adv->created_by_id == isset(auth()->user()->id) or $adv->status == "approved") {
|
||||
return $this->view->make('visiosoft.module.advs::ad-detail/detail', compact('adv', 'complaints',
|
||||
'recommended_advs', 'categories', 'features', 'comments', 'qrSRC', 'options', 'configurations'));
|
||||
'recommended_advs', 'categories', 'features', 'options', 'configurations'));
|
||||
} else {
|
||||
return back();
|
||||
}
|
||||
@ -624,7 +625,7 @@ class AdvsController extends PublicController
|
||||
}
|
||||
|
||||
return $this->view->make('visiosoft.module.advs::new-ad/preview/preview',
|
||||
compact('adv', 'categories', 'features', 'isActiveDopings', 'configurations'));
|
||||
compact('adv', 'categories', 'features', 'isActiveDopings'));
|
||||
}
|
||||
|
||||
public function getLocations()
|
||||
@ -920,6 +921,7 @@ class AdvsController extends PublicController
|
||||
$options = $this->optionRepository->findAllBy('adv_id', $id);
|
||||
|
||||
//Cloudinary Module
|
||||
$Cloudinary = null;
|
||||
$isActiveCloudinary = $this->adv_model->is_enabled('cloudinary');
|
||||
if ($isActiveCloudinary) {
|
||||
$CloudinaryModel = new VideoModel();
|
||||
@ -939,7 +941,7 @@ class AdvsController extends PublicController
|
||||
|
||||
return $this->view->make(
|
||||
'visiosoft.module.advs::new-ad/new-create',
|
||||
compact('id', 'cats_d', 'cats', 'Cloudinary', 'cities', 'adv', 'custom_fields', 'options')
|
||||
compact('id', 'cats_d', 'cats', 'Cloudinary', 'adv', 'custom_fields', 'options')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user