#3553 Ad post contact - Options Design

This commit is contained in:
Diatrex 2021-04-27 17:52:53 +03:00
parent ba324de564
commit 664d27ce13
4 changed files with 35 additions and 182 deletions

View File

@ -23,7 +23,6 @@ return [
'ads' => [
'title' => 'visiosoft.module.advs::section.ads',
'fields' => [
'detailed_product_options',
'latest-limit',
'popular_ads_limit',
'ads_image_limit',
@ -51,6 +50,7 @@ return [
'create_ad' => [
'title' => 'visiosoft.module.advs::section.create_ad',
'fields' => [
'detailed_product_options',
'steps_color',
'create_ad_button_color',
'hide_standard_price_field',

View File

@ -1,3 +1,9 @@
/* Main styles */
label {
margin-bottom: 0;
}
/* End Main styles */
#pageTitle {
margin: 4rem 0;
@ -14,7 +20,7 @@
#contactInfo {
background-color: #FBFBFD;
padding: 2.4rem 4rem 4.3rem;
padding: 2.4rem 4rem 5.5rem;
h3 {
color: #6E5DDB;
@ -29,14 +35,14 @@
p {
color: #4A4A4A;
font-size: 14px;
font-weight: 500;
font-weight: 600;
}
div {
label {
color: #505050;
font-size: 18px;
font-weight: 400;
font-weight: 500;
}
}
}
@ -49,7 +55,7 @@
font-size: 14px;
color: #4A4A4A;
width: 32.4%;
font-weight: 500;
font-weight: 600;
input {
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
@ -92,7 +98,7 @@
font-family: 'Poppins', sans-serif;
font-size: 14px;
color: #4A4A4A;
font-weight: 500;
font-weight: 600;
input {
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
@ -127,7 +133,7 @@
label {
position: relative;
top: .25rem;
font-weight: 400;
font-weight: 500;
font-size: 16px;
}
}
@ -168,12 +174,11 @@
&:last-child {
width: 50.75%;
input {
width: 83%;
select, .decimal-price {
width: 17%;
}
select {
width: 17%;
padding: 1.1rem 1rem;
}
}

View File

@ -104,27 +104,26 @@
{% endif %}
</div>
</div>
<div class="{{ setting_value('visiosoft.module.advs::hide_standard_price_field') or setting_value('visiosoft.module.advs::market_place') != true ? 'd-none' }}">
<div class="select-price{{ setting_value('visiosoft.module.advs::hide_standard_price_field') or setting_value('visiosoft.module.advs::market_place') != true ? ' d-none' }}">
<label>
{{ form.fields.standard_price.label }}
<span class="required">*</span>
</label>
<div class="d-flex">
{# TODO add decimal input to standard price#}
{# {% set standardPriceValue = form.fields.standard_price.value|split('.') %}#}
{# <div class="col-8 pr-0 col-md-3">#}
{# <input class="form-control standard-price-field whole-price"#}
{# value="{{ standardPriceValue|first }}">#}
{# </div>#}
{# <div class="col-4 col-md-1">#}
{# <input class="form-control standard-price-decimal-field decimal-price"#}
{# placeholder="00" maxlength="2"#}
{# value="{{ standardPriceValue[1] }}">#}
{# </div>#}
<div class="col-12 standard-price-hidden d-none">
{{ form.fields.standard_price.setAttributes({
'required': true,
'class': 'mt-3 border-0',
'required' :true
}).input|raw }}
</div>
<div class="d-flex">
{% set standardPriceValue = form.fields.standard_price.value|split('.') %}
<input class="mt-3 border-0 text-right standard-price-field whole-price flex-fill"
placeholder="0" value="{{ standardPriceValue|first }}" type="text">
{% if setting_value('visiosoft.field_type.decimal::showDecimal') %}
<input class="mt-3 border-0 ml-2 text-center standard-price-decimal decimal-price"
placeholder="00" type="text" value="{{ standardPriceValue[1] }}" maxlength="2">
{% endif %}
<select name="currency" class="mt-3 border-0 ml-2" id="currency" required>
{% for currency in config_get('streams::currencies.enabled') %}
<option value="{{ currency }}">
@ -161,12 +160,13 @@
</div>
{% endif %}
{% else %}
<div class="row form-group product-options">
<label for="productOptions" class="col-sm-2">
<div class="product-options">
<label for="productOptions">
{{ trans('visiosoft.module.advs::field.product_option.name') }}
</label>
<div class="col-sm-10">
{{ form.fields.product_options_value.configSet('cat1',adv.cat1).input|raw }}
<div class="mt-3">
{# {{ dd(form.fields.product_options_value) }}#}
{{ form.fields.product_options_value.configSet('cat1', adv.cat1).input|raw }}
</div>
</div>
{% endif %}

View File

@ -1,167 +1,15 @@
<?php namespace Visiosoft\BaseTheme;
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
use Illuminate\Routing\Router;
class BaseThemeServiceProvider extends AddonServiceProvider
{
/**
* Additional addon plugins.
*
* @type array|null
*/
protected $plugins = [];
/**
* The addon Artisan commands.
*
* @type array|null
*/
protected $commands = [];
/**
* The addon's scheduled commands.
*
* @type array|null
*/
protected $schedules = [];
/**
* The addon API routes.
*
* @type array|null
*/
protected $api = [];
/**
* The addon routes.
*
* @type array|null
*/
protected $routes = [];
/**
* The addon middleware.
*
* @type array|null
*/
protected $middleware = [
//Visiosoft\TestbootTheme\Http\Middleware\ExampleMiddleware::class
];
/**
* Addon group middleware.
*
* @var array
*/
protected $groupMiddleware = [
//'web' => [
// Visiosoft\TestbootTheme\Http\Middleware\ExampleMiddleware::class,
//],
];
/**
* Addon route middleware.
*
* @type array|null
*/
protected $routeMiddleware = [];
/**
* The addon event listeners.
*
* @type array|null
*/
protected $listeners = [
//Visiosoft\TestbootTheme\Event\ExampleEvent::class => [
// Visiosoft\TestbootTheme\Listener\ExampleListener::class,
//],
];
/**
* The addon alias bindings.
*
* @type array|null
*/
protected $aliases = [
//'Example' => Visiosoft\TestbootTheme\Example::class
];
/**
* The addon class bindings.
*
* @type array|null
*/
protected $bindings = [];
/**
* The addon singleton bindings.
*
* @type array|null
*/
protected $singletons = [];
/**
* Additional service providers.
*
* @type array|null
*/
protected $providers = [
//\ExamplePackage\Provider\ExampleProvider::class
];
/**
* The addon view overrides.
*
* @type array|null
*/
protected $overrides = [
//'streams::errors/404' => 'module::errors/404',
//'streams::errors/500' => 'module::errors/500',
];
/**
* The addon mobile-only view overrides.
*
* @type array|null
*/
protected $mobile = [
'streams::errors/404' => 'visiosoft.theme.base::errors/404',
'streams::errors/403' => 'visiosoft.theme.base::errors/403',
'anomaly.module.users::login' => 'visiosoft.theme.base::addons/anomaly/users-module/login',
'anomaly.module.users::register' => 'visiosoft.theme.base::addons/anomaly/users-module/register',
'anomaly.module.users::password/forgot' => 'visiosoft.theme.base::addons/anomaly/users-module/password/forgot',
'anomaly.module.users::password/reset' => 'visiosoft.theme.base::addons/anomaly/users-module/password/reset'
'anomaly.module.users::password/reset' => 'visiosoft.theme.base::addons/anomaly/users-module/password/reset',
];
/**
* Register the addon.
*/
public function register()
{
// Run extra pre-boot registration logic here.
// Use method injection or commands to bring in services.
}
/**
* Boot the addon.
*/
public function boot()
{
// Run extra post-boot registration logic here.
// Use method injection or commands to bring in services.
}
/**
* Map additional addon routes.
*
* @param Router $router
*/
public function map(Router $router)
{
// Register dynamic routes here for example.
// Use method injection or commands to bring in services.
}
}