#2916 emlak24 acil yapılması gereken maddeler

This commit is contained in:
Diatrex 2020-12-17 15:32:59 +03:00
parent c9a899abfd
commit a96537e10b
14 changed files with 64 additions and 19 deletions

View File

@ -37,6 +37,8 @@ return [
'create_ad' => [ 'create_ad' => [
'title' => 'visiosoft.module.advs::section.create_ad', 'title' => 'visiosoft.module.advs::section.create_ad',
'fields' => [ 'fields' => [
'steps_color',
'create_ad_button_color',
'hide_standard_price_field', 'hide_standard_price_field',
'hide_options_field', 'hide_options_field',
'hide_village_field', 'hide_village_field',

View File

@ -350,4 +350,16 @@ return [
'bind' => 'override_text', 'bind' => 'override_text',
'env' => 'OVERRIDE_TEXT', 'env' => 'OVERRIDE_TEXT',
], ],
'steps_color' => [
"type" => "anomaly.field_type.colorpicker",
"config" => [
"default_value" => '#209579',
]
],
'create_ad_button_color' => [
"type" => "anomaly.field_type.colorpicker",
"config" => [
"default_value" => '#00a651',
]
],
]; ];

View File

@ -52,8 +52,9 @@
display: none; display: none;
} }
.next-stap img { .next-stap svg {
width: 60px; width: 60px;
height: 60px;
} }
.next-stap p { .next-stap p {
@ -62,7 +63,7 @@
} }
.btn-1 { .btn-1 {
background-color: #00a651; background-color: {{ setting_value('visiosoft.module.advs::create_ad_button_color') }};
padding: 5px 30px 7px; padding: 5px 30px 7px;
color: #fff; color: #fff;
border: 1px solid #dadada; border: 1px solid #dadada;

View File

@ -6,16 +6,10 @@
min-width: 0; min-width: 0;
&.current { &.current {
&::after {
background: linear-gradient(to right, #209579 50%, #dfdfdf 50%);
}
.bullet { .bullet {
color: #209579;
background-color: #fff; background-color: #fff;
border: .2rem solid #209579;
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
border: .3rem solid #209579; border-width: .3rem;
} }
} }
@ -43,7 +37,6 @@
left: 0; left: 0;
z-index: -1; z-index: -1;
width: 100%; width: 100%;
background-color: #209579;
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
height: .3rem; height: .3rem;
top: 1.4rem; top: 1.4rem;
@ -58,7 +51,6 @@
display: inline-block; display: inline-block;
position: relative; position: relative;
line-height: 20px; line-height: 20px;
background-color: #209579;
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
height: 3rem; height: 3rem;
width: 3rem; width: 3rem;

View File

@ -0,0 +1,18 @@
{% set stepsColor = setting_value('visiosoft.module.advs::steps_color') %}
#stepProgressBar .step.current .bullet {
color: {{ stepsColor }};
border: 0.2rem solid {{ stepsColor }};
}
#stepProgressBar .step .bullet {
background-color: {{ stepsColor }};
}
#stepProgressBar .step.current::after {
background: linear-gradient(to right, {{ stepsColor }} 50%, #dfdfdf 50%);
}
#stepProgressBar .step::after {
background-color: {{ stepsColor }};
}

View File

@ -26,7 +26,7 @@ $(document).ready(function () {
success: function (response) { success: function (response) {
hideLoader(); hideLoader();
if(response['title'] != undefined){ if(response['title'] != undefined){
response['success'] ? $('.cross-icon').hide() : $('.check-icon').hide(); response['success'] ? $('.post-icon > svg:last-of-type').hide() : $('.post-icon > svg:first-of-type').hide();
let btn = '<button type="submit" class="btn-1">'+response['continueBtn']+'</button>'; let btn = '<button type="submit" class="btn-1">'+response['continueBtn']+'</button>';
if (response['link']) { if (response['link']) {

View File

@ -211,4 +211,12 @@ return [
'name' => 'Override Text', 'name' => 'Override Text',
'instructions' => 'Old Value:New Value' 'instructions' => 'Old Value:New Value'
], ],
'steps_color' => [
'name' => 'Steps Color',
'instructions' => 'Changes the progressive steps color.'
],
'create_ad_button_color' => [
'name' => 'Create Ad Button Color',
'instructions' => 'Changes the button that shows up when the new ad category selection is finished.'
],
]; ];

View File

@ -1,4 +1,5 @@
<style> <style>
{{ asset_inline("visiosoft.module.advs::css/step2.css") }}
{{ asset_inline("visiosoft.module.advs::css/step.scss") }} {{ asset_inline("visiosoft.module.advs::css/step.scss") }}
</style> </style>

View File

@ -47,9 +47,9 @@
<div class="cat-item mb-2 shadow-sm border rounded align-items-center"> <div class="cat-item mb-2 shadow-sm border rounded align-items-center">
<div class="cat-item-3"> <div class="cat-item-3">
<div class="section next-stap post-option px-4 text-center py-2"> <div class="section next-stap post-option post-icon px-4 text-center py-2">
<img src="{{ img('visiosoft.module.advs::images/check.svg').url }}" class="check-icon"> {{ img('visiosoft.module.advs::images/check.svg').data|raw }}
<img src="{{ img('visiosoft.module.advs::images/cross.svg').url }}" class="cross-icon"> {{ img('visiosoft.module.advs::images/cross.svg').data|raw }}
<div class="next-content"></div> <div class="next-content"></div>
</div> </div>
</div> </div>

View File

@ -444,7 +444,9 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
public function extendAds($allAds, $isAdmin = false) public function extendAds($allAds, $isAdmin = false)
{ {
if (!is_numeric($allAds)) { if (is_array($allAds)) {
$advs = $this->newQuery()->whereIn('id', $allAds);
} elseif (!is_numeric($allAds)) {
if ($isAdmin && auth()->user()->hasRole('admin')) { if ($isAdmin && auth()->user()->hasRole('admin')) {
$advs = $this->newQuery(); $advs = $this->newQuery();
} else { } else {

View File

@ -1244,7 +1244,12 @@ class AdvsController extends PublicController
public function extendAll($isAdmin = null) public function extendAll($isAdmin = null)
{ {
$adsExtended = $this->adv_repository->extendAds(true, $isAdmin); if (\request()->unpublished) {
$allAds = $this->adv_model->pendingAdvsByUser()->pluck('id')->all();
} else {
$allAds = true;
}
$adsExtended = $this->adv_repository->extendAds($allAds, $isAdmin);
$this->messages->success(trans('visiosoft.module.advs::message.extended', ['number' => $adsExtended])); $this->messages->success(trans('visiosoft.module.advs::message.extended', ['number' => $adsExtended]));
return $this->redirect->back(); return $this->redirect->back();
} }

View File

@ -9,6 +9,7 @@ return [
'delete' => 'Delete', 'delete' => 'Delete',
'extend' => 'Extend', 'extend' => 'Extend',
'extend_all' => 'Extend All', 'extend_all' => 'Extend All',
'extend_unpublished' => 'Extend Unpublished',
'edit' => 'Edit', 'edit' => 'Edit',
'go_profile' => 'Go to Profile Detail', 'go_profile' => 'Go to Profile Detail',
'go_user' => 'Go to User Detail', 'go_user' => 'Go to User Detail',

View File

@ -17,11 +17,11 @@
<div class="col-sm-4 location-field city-data font-weight-bold" <div class="col-sm-4 location-field city-data font-weight-bold"
data-content="{{ adress.city }}"> data-content="{{ adress.city }}">
{{ form.fields.city|raw }} {{ form.fields.city.setPlaceholder(trans('visiosoft.module.profile::field.choose_an_option'))|raw }}
</div> </div>
<div class="col-sm-4 location-field district-data font-weight-bold" <div class="col-sm-4 location-field district-data font-weight-bold"
data-content="{{ adress.district }}"> data-content="{{ adress.district }}">
{{ form.fields.district|raw }} {{ form.fields.district.setPlaceholder(trans('visiosoft.module.profile::field.choose_an_option'))|raw }}
</div> </div>
</div> </div>
<div class="form-group location-map"> <div class="form-group location-map">

View File

@ -35,6 +35,9 @@
<a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary"> <a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary">
{{ trans('visiosoft.module.profile::button.extend_all') }} {{ trans('visiosoft.module.profile::button.extend_all') }}
</a> </a>
<a href="{{ url_route("advs::extendAll") }}?unpublished=1" class="btn btn-warning text-white">
{{ trans('visiosoft.module.profile::button.extend_unpublished') }}
</a>
{% endif %} {% endif %}
</div> </div>
<div class="tab-content py-3 px-3 px-sm-0" id="nav-tabContent"> <div class="tab-content py-3 px-3 px-sm-0" id="nav-tabContent">