{% extends layout('new-create') %} {% block styles %} {% endblock %} {% block content %} {% include 'visiosoft.module.advs::new-ad/partials/steps' with {'step': 'new-create'} %} {% for cat in cats_d %} {{ cat }} {% endfor %} {{ trans('visiosoft.module.advs::field.edit_category') }} Listing Details Create the ad flawlessly by entering detailed information about your ad. {% set requiredFields = setting_value('visiosoft.module.advs::make_all_fields_required') %} {% set form = form('advs', 'advs').entry(id).actions({'update': { 'text': trans('visiosoft.module.advs::button.publish') }}).get() %} {{ form_open({ 'id': 'createEditAdvForm', 'class': 'form ' ~ form.options.class , 'enctype': 'multipart/form-data', 'url': 'advs/save_adv', })|raw }} {% include 'visiosoft.module.advs::new-ad/partials/contact-info' %} {{ trans('visiosoft.module.advs::field.ad_info') }} {% set fields = form.fields.base().pluck('field_name').all() %} {% for field in form.fields.translations('name') %} {{ field.setAttributes({ 'class': 'd-block mt-3 w-100 border-0' }).render({'form': form})|raw }} {% endfor %} {% if setting_value('visiosoft.module.advs::market_place') %} {{ addBlock('new-ad/fields', {'adv': adv})|raw }} {% endif %} Fiyat {{ form.fields.standard_price.label }} * {{ form.fields.standard_price.setAttributes({ 'class': 'mt-3 border-0', 'required': true, }).input|raw }} TL {% for currency in config_get('streams::currencies.enabled') %} {% if currency == "TRY" %} {{ currency_symbol(currency) }} {% else %} {{ currency }} {% endif %} {% endfor %} Opsiyonlar {% set standardPriceValue = form.fields.standard_price.value|split('.') %} {{ form.fields.price.label|raw }} * {{ form.fields.price.setAttributes({ 'required' :true }).input|raw }} {% set PriceValue = form.fields.price.value|split('.') %} {% if setting_value('visiosoft.field_type.decimal::showDecimal') %} {% endif %} {% if not setting_value('visiosoft.module.advs::hide_options_field') %} {% if not setting_value('visiosoft.module.advs::detailed_product_options') %} {{ trans('visiosoft.module.advs::field.options') }} {% if count(options) %} {% for option in options %} {{ option.name }} {% endfor %} {% endif %} {% if auth_check() and auth_user().hasRole('admin') %} {{ trans('visiosoft.module.advs::message.disabled_detailed_options_for_admin_role') }} {% endif %} {% else %} {{ trans('visiosoft.module.advs::field.product_option.name') }} {{ form.fields.product_options_value.configSet('cat1',adv.cat1).input|raw }} {% endif %} {% endif %} {{ trans('visiosoft.module.advs::field.ad_desc') }} {% for field in form.fields.translations('advs_desc') %} {{ field.render({'form': form})|raw }} {% endfor %} {{ trans('visiosoft.module.advs::field.upload_photos') }} {{ form.fields.files.input |raw }} {% for docs in form.fields.doc_files.value %} {{ docs.name }} {% endfor %} {% set other_fields = addBlock('new-ad/other-fields',{'custom_fields':custom_fields,'id':id}) %} {% if other_fields or (custom_fields and count(custom_fields)) %} {{ trans('visiosoft.module.advs::field.additional_fields') }} {{ other_fields|raw }} {% endif %} {{ trans('visiosoft.module.advs::field.ad_location') }} {% include "visiosoft.module.location::new-ad/map" %} {% if setting_value('visiosoft.module.advs::show_post_ad_agreement') %} {{ trans('visiosoft.module.advs::message.agreement') }} {% endif %} {{ form.actions|raw }} {{ form.close|raw }} {% include "visiosoft.module.advs::new-ad/partials/modals" %} {{ addBlock('new-ad/modals')|raw }} {% if setting_value('visiosoft.module.advs::make_map_required') %} {{ asset_add("scripts.js", "visiosoft.module.advs::js/required-map.js") }} {% endif %} {{ asset_add("scripts.js", "visiosoft.module.advs::js/new-create.js") }} {{ asset_add("scripts.js", "streams::js/form/form.js") }} {{ asset_add("scripts.js", "streams::js/form/translations.js") }} {% endblock %}
{{ trans('visiosoft.module.advs::message.disabled_detailed_options_for_admin_role') }}