#1364 [packages-sahibinden] packages module fixes

This commit is contained in:
Diatrex 2020-05-01 12:41:10 +03:00
parent 7a72ac3895
commit 4a07951a21
5 changed files with 68 additions and 7 deletions

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<ellipse style="fill:#E04F5F;" cx="256" cy="256" rx="256" ry="255.832"/>
<g transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 77.26 32)">
<rect x="3.98" y="-427.615" style="fill:#FFFFFF;" width="55.992" height="285.672"/>
<rect x="-110.828" y="-312.815" style="fill:#FFFFFF;" width="285.672" height="55.992"/>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 812 B

View File

@ -22,11 +22,26 @@ $(document).ready(function () {
success: function (response) {
hideLoader();
if(response['title'] != undefined){
var btn = '<button type="submit" class="btn-1">'+response['continueBtn']+'</button>';
$('.cat-item-3 .next-content').html(
'<p class="mb-3 mt-2">'+response['title']+'</p>' +
'<div class="btn-section btn-next">' + btn + '</div>'
);
response['success'] ? $('.cross-icon').hide() : $('.check-icon').hide();
let btn = '<button type="submit" class="btn-1">'+response['continueBtn']+'</button>';
if (response['link']) {
btn = "<a class='link-unstyled btn-1 text-white' href='"+response['link']+"' role='button'>"+response['continueBtn']+"</a>";
}
let content;
if (response['msg']) {
content = `
<p class="mb-1 mt-2">${response['title']}</p>
<small class="text-muted">${response['msg']}</small>
<div class="mt-3 btn-section btn-next">${btn}</div>
`
} else {
content = `
<p class="mb-3 mt-2">${response['title']}</p>
<div class="btn-section btn-next">${btn}</div>
`
}
$('.cat-item-3 .next-content').html(content);
$('.cat-item-3').parent().css('display', 'flex');
stop();
} else {

View File

@ -285,4 +285,7 @@ return [
'update_my_contact_info' => 'update my contact info',
'contact_info' => 'Contact information',
'ad_info' => 'Ad Information',
// Select cat
'select_category_step_by_step' => 'Select Category Step by Step',
];

View File

@ -11,9 +11,11 @@ return [
'max_ad_limit' => [
'title' => "Your Free Ad Limit is Out.",
'continueBtn' => "Show Ads",
'link' => "/profile",
],
'create_ad_with_post_cat' => [
'title' => "Category selection has been completed.",
'success' => true,
'continueBtn' => "Continue",
],
'update_category_info' => 'Please update category.',

View File

@ -10,7 +10,7 @@
<div id="ad-cat-section" class="border rounded shadow-sm bg-light py-4 px-3">
<h5 class="mb-3">
<img src="{{ img('visiosoft.module.advs::images/ascend.svg').url }}" class="step-icon mr-1">
Select Category Step by Step
{{ trans('visiosoft.module.advs::field.select_category_step_by_step') }}
</h5>
<form action="{{ url_route('visiosoft.module.advs::post_cat') }}" method="post">
<div class="d-flex category-tab pb-3">
@ -77,7 +77,8 @@
<div class="cat-item mb-2 shadow-sm border rounded align-items-center">
<div class="cat-item-3">
<div class="section next-stap post-option px-4 text-center">
<img src="{{ img('visiosoft.module.advs::images/check.svg').url }}" alt="check icon">
<img src="{{ img('visiosoft.module.advs::images/check.svg').url }}" class="check-icon">
<img src="{{ img('visiosoft.module.advs::images/cross.svg').url }}" class="cross-icon">
<div class="next-content"></div>
</div>
</div>