{% set showScrapedListingControls = listing.canChangeScrapedListing() and listing.validateScrapedListingHash(app.request.get('hash')) %}
{% set isNotLiveListing = listing.status != STATUS_LIVE_CONSTANT %}
{# Scraped Listing actions #}
{% if showScrapedListingControls %}
<div class="col-md-12 col-xs-12" style="text-align: center">
<input
type="button"
ng-click="editScrapedListing()"
class="btn btn-primary btn-lg"
value="{{ 'listing.edit'|trans }}"
/>
<input
type="button"
ng-click="removeScrapedListing()"
class="btn btn-danger btn-lg"
value="{{ 'listing.delete'|trans }}"
/>
</div>
{% endif %}
{# Listing status message #}
{% if isNotLiveListing %}
<div class="col-sm-12 col-md-12">
<div
class="alert alert-warning"
style="background-image: url({{ asset('images/web_pattern.png') }}); background-repeat: no-repeat; height: 175px; background-position: center;"
role="alert"
>
<h3
class="text-center"
style="color: #c1994d; padding-top: 30px">
{{ "listing.listing_status_message" |trans({'%listing_status%': listing.statusLabel|trans|lower}) }}
</h3>
</div>
</div>
{% endif %}
{# After lead is created alert #}
{% if LEAD_LISTING %}
<div class="alert alert-info hidden-xs hidden-sm col-sm-12 col-md-12" ng-show="showPhoneMessage">
<span class="fa fa-info" aria-hidden="true"></span> {{ 'listing.show_phone_message'|trans }}
</div>
{% endif %}