Merge pull request #431 from openclassify/dia

#1031 [sahibinden-theme] Detail page design changes (pending screen)
This commit is contained in:
Fatih Alp 2020-03-18 18:50:09 +03:00 committed by GitHub
commit 9bdebbbc27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 48 additions and 4 deletions

View File

@ -19,6 +19,7 @@ return [
'fields' => [
'latest-limit',
'auto_approve',
'estimated_pending_time',
'default_published_time',
'default_adv_limit',
'default_GET',

View File

@ -22,6 +22,12 @@ return [
'default_value' => true,
],
],
'estimated_pending_time' => [
'type' => 'anomaly.field_type.integer',
'config' => [
'default_value' => 6,
],
],
'default_published_time' => [
'type' => 'anomaly.field_type.integer',
'bind' => 'adv.default_published_time',

View File

@ -1,4 +1,16 @@
.ad-detail-tabs .nav-link.active {
background-color: #FFC106 !important;
border-color: #ffc107 #ffc107 #ffc107;
}
/* Pending screen */
.pending-screen {
background-color: #f2f2f2;
color: #b31901;
}
.pending-screen img {
height: 7em;
}
.pending-screen p {
font-weight: 500;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

View File

@ -263,4 +263,12 @@ return [
"no_location" => "No location is selected.",
"continue" => 'Continue',
"gallery" => 'Gallery',
// Pending screen
'pending_message_1' => 'The Ad is in the Approval Process',
'pending_message_2' => "Ad's Update Date",
'pending_message_3' => 'Estimated Waiting Time',
'pending_message_4' => 'The time spent in the approval process will be added to the doping time.',
'pending_message_5' => 'No transactions can be made from the call center regarding the ad in the approval process.',
'hours' => 'hours'
];

View File

@ -4,6 +4,10 @@ return [
'auto_approve' => [
'name' => 'Auto Approve',
],
'estimated_pending_time' => [
'name' => 'Estimated Pending Time',
'instructions' => 'In Hours',
],
'default_published_time' => [
'name' => 'Default Publish Time',
],

View File

@ -1,6 +1,19 @@
{% if adv.status == "pending_user" or adv.status == "pending_admin" %}
<div class="alert bg-info text-white alert-dismissible">
<i class="fas fa-exclamation-triangle"></i>
{{ trans('visiosoft.module.advs::message.pending_ad_status') }}
</div>
<div class="pending-screen mt-3 text-center py-5 rounded px-2">
<img src="{{ img('visiosoft.module.advs::images/alarm.png').url }}" alt="pending icon">
<h5 class="my-3">{{ trans('visiosoft.module.advs::field.pending_message_1') }}</h5>
<div class="row">
<div class="col-6 text-right">{{ trans('visiosoft.module.advs::field.pending_message_2') }}</div>
<div class="col-6 text-left pl-0">: {{ adv.updated_at|date('d M Y H:i') }}</div>
</div>
<div class="row">
<div class="col-6 text-right">{{ trans('visiosoft.module.advs::field.pending_message_3') }}</div>
<div class="col-6 text-left pl-0">
: {{ setting_value('visiosoft.module.advs::estimated_pending_time') }} {{ trans('visiosoft.module.advs::field.hours') }}
</div>
</div>
<p class="text-dark mb-0 mt-3">{{ trans('visiosoft.module.advs::field.pending_message_4') }}</p>
<p class="text-dark">{{ trans('visiosoft.module.advs::field.pending_message_5') }}</p>
</div>
{% endif %}