mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
#3553 Ad post contact - Options Design
This commit is contained in:
parent
ba324de564
commit
664d27ce13
@ -23,7 +23,6 @@ return [
|
|||||||
'ads' => [
|
'ads' => [
|
||||||
'title' => 'visiosoft.module.advs::section.ads',
|
'title' => 'visiosoft.module.advs::section.ads',
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'detailed_product_options',
|
|
||||||
'latest-limit',
|
'latest-limit',
|
||||||
'popular_ads_limit',
|
'popular_ads_limit',
|
||||||
'ads_image_limit',
|
'ads_image_limit',
|
||||||
@ -51,6 +50,7 @@ return [
|
|||||||
'create_ad' => [
|
'create_ad' => [
|
||||||
'title' => 'visiosoft.module.advs::section.create_ad',
|
'title' => 'visiosoft.module.advs::section.create_ad',
|
||||||
'fields' => [
|
'fields' => [
|
||||||
|
'detailed_product_options',
|
||||||
'steps_color',
|
'steps_color',
|
||||||
'create_ad_button_color',
|
'create_ad_button_color',
|
||||||
'hide_standard_price_field',
|
'hide_standard_price_field',
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
/* Main styles */
|
||||||
|
label {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
/* End Main styles */
|
||||||
|
|
||||||
#pageTitle {
|
#pageTitle {
|
||||||
margin: 4rem 0;
|
margin: 4rem 0;
|
||||||
|
|
||||||
@ -14,7 +20,7 @@
|
|||||||
|
|
||||||
#contactInfo {
|
#contactInfo {
|
||||||
background-color: #FBFBFD;
|
background-color: #FBFBFD;
|
||||||
padding: 2.4rem 4rem 4.3rem;
|
padding: 2.4rem 4rem 5.5rem;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
color: #6E5DDB;
|
color: #6E5DDB;
|
||||||
@ -29,14 +35,14 @@
|
|||||||
p {
|
p {
|
||||||
color: #4A4A4A;
|
color: #4A4A4A;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
div {
|
div {
|
||||||
label {
|
label {
|
||||||
color: #505050;
|
color: #505050;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 400;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -49,7 +55,7 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #4A4A4A;
|
color: #4A4A4A;
|
||||||
width: 32.4%;
|
width: 32.4%;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
|
||||||
@ -92,7 +98,7 @@
|
|||||||
font-family: 'Poppins', sans-serif;
|
font-family: 'Poppins', sans-serif;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #4A4A4A;
|
color: #4A4A4A;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
|
||||||
@ -127,7 +133,7 @@
|
|||||||
label {
|
label {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: .25rem;
|
top: .25rem;
|
||||||
font-weight: 400;
|
font-weight: 500;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -168,12 +174,11 @@
|
|||||||
&:last-child {
|
&:last-child {
|
||||||
width: 50.75%;
|
width: 50.75%;
|
||||||
|
|
||||||
input {
|
select, .decimal-price {
|
||||||
width: 83%;
|
width: 17%;
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
width: 17%;
|
|
||||||
padding: 1.1rem 1rem;
|
padding: 1.1rem 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -104,27 +104,26 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</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>
|
<label>
|
||||||
{{ form.fields.standard_price.label }}
|
{{ form.fields.standard_price.label }}
|
||||||
<span class="required">*</span>
|
<span class="required">*</span>
|
||||||
</label>
|
</label>
|
||||||
<div class="d-flex">
|
|
||||||
{# TODO add decimal input to standard price#}
|
<div class="col-12 standard-price-hidden d-none">
|
||||||
{# {% 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>#}
|
|
||||||
{{ form.fields.standard_price.setAttributes({
|
{{ form.fields.standard_price.setAttributes({
|
||||||
'required': true,
|
'required' :true
|
||||||
'class': 'mt-3 border-0',
|
|
||||||
}).input|raw }}
|
}).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>
|
<select name="currency" class="mt-3 border-0 ml-2" id="currency" required>
|
||||||
{% for currency in config_get('streams::currencies.enabled') %}
|
{% for currency in config_get('streams::currencies.enabled') %}
|
||||||
<option value="{{ currency }}">
|
<option value="{{ currency }}">
|
||||||
@ -161,11 +160,12 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="row form-group product-options">
|
<div class="product-options">
|
||||||
<label for="productOptions" class="col-sm-2">
|
<label for="productOptions">
|
||||||
{{ trans('visiosoft.module.advs::field.product_option.name') }}
|
{{ trans('visiosoft.module.advs::field.product_option.name') }}
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-10">
|
<div class="mt-3">
|
||||||
|
{# {{ dd(form.fields.product_options_value) }}#}
|
||||||
{{ form.fields.product_options_value.configSet('cat1', adv.cat1).input|raw }}
|
{{ form.fields.product_options_value.configSet('cat1', adv.cat1).input|raw }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,167 +1,15 @@
|
|||||||
<?php namespace Visiosoft\BaseTheme;
|
<?php namespace Visiosoft\BaseTheme;
|
||||||
|
|
||||||
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
||||||
use Illuminate\Routing\Router;
|
|
||||||
|
|
||||||
class BaseThemeServiceProvider extends AddonServiceProvider
|
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 = [
|
protected $mobile = [
|
||||||
'streams::errors/404' => 'visiosoft.theme.base::errors/404',
|
'streams::errors/404' => 'visiosoft.theme.base::errors/404',
|
||||||
'streams::errors/403' => 'visiosoft.theme.base::errors/403',
|
'streams::errors/403' => 'visiosoft.theme.base::errors/403',
|
||||||
'anomaly.module.users::login' => 'visiosoft.theme.base::addons/anomaly/users-module/login',
|
'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::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/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.
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user