Skip to content

Commit

Permalink
Slight update
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentG committed Feb 25, 2019
1 parent c25e446 commit b2c4fa9
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 140 deletions.
2 changes: 1 addition & 1 deletion src/Controller/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function showBienById(ProprieteBien $proprieteBien, Request $request, Con
// Send notification
$contactNotification->notification($contact);
// Add flash message
$this->addFlash('success', 'Votre email à été bien envoyer');
$this->addFlash('success', 'Votre email à bien été envoyé');
}

return $this->render('show.html.twig', [
Expand Down
35 changes: 35 additions & 0 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,41 @@
</div>
</nav>
{% block body %}{% endblock %}

{% block footer %}
<div id="footer" class="mt-5">
<div class="container">
<div id="footer-center" class="row pt-5 pb-5">
<div class="col-md-3 text-light">
<h2>Sylab</h2>
<p>Slogan du site mdrr</p>
</div>

<div class="col-md-3">
<a href="{{ path('buy') }}"><h5>Acheter</h5></a>
<a href="{{ path('sell') }}"><h5>Vendre</h5></a>
</div>

<div class="col-md-3">
<h5 class="text-light">Réseaux sociaux</h5>
<a href="https://www.facebook.com" target="_blank">Facebook</a><br>
<a href="https://www.twitter.com" target="_blank">Twitter</a><br>
</div>

<div class="col-md-3">
<h5 class="text-light">Contact</h5>
<a href="tel:0556900010">Tél : 05 56 90 00 10</a><br>
<a href="mailto:[email protected]">Email : [email protected]</a><br>
</div>
</div>
</div>
</div>

<div id="copyright">
<p>Copyright - Quentin Gans & Lucas Consejo</p>
</div>
{% endblock %}

<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
Expand Down
34 changes: 1 addition & 33 deletions templates/buy.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="row flex">
<!-- Condition for -->
{% for property in properties %}
<div class="col-4">
<div class="col-4 mt-3">
<a href="{{ path('show', {id: property.id }) }}" class="text-dark card-hover">
<div class="card">
<div class="card-body">
Expand All @@ -34,38 +34,6 @@
</div>
</div>

<div id="footer" class="mt-5">
<div class="container">
<div id="footer-center" class="row pt-5 pb-5">
<div class="col-md-3 text-light">
<h2>Sylab</h2>
<p>Slogan du site mdrr</p>
</div>

<div class="col-md-3">
<a href="{{ path('buy') }}"><h5>Acheter</h5></a>
<a href="{{ path('sell') }}"><h5>Vendre</h5></a>
</div>

<div class="col-md-3">
<h5 class="text-light">Réseaux sociaux</h5>
<a href="https://www.facebook.com" target="_blank">Facebook</a><br>
<a href="https://www.twitter.com" target="_blank">Twitter</a><br>
</div>

<div class="col-md-3">
<h5 class="text-light">Contact</h5>
<a href="tel:0556900010">Tél : 05 56 90 00 10</a><br>
<a href="mailto:[email protected]">Email : [email protected]</a><br>
</div>
</div>
</div>
</div>

<div id="copyright">
<p>Copyright - Quentin Gans & Lucas Consejo</p>
</div>

{% endblock %}

{% block javascripts %}
Expand Down
32 changes: 0 additions & 32 deletions templates/home.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -70,38 +70,6 @@
</div>
</div>

<div id="footer" class="mt-5">
<div class="container">
<div id="footer-center" class="row pt-5 pb-5">
<div class="col-md-3 text-light">
<h2>Sylab</h2>
<p>Slogan du site mdrr</p>
</div>

<div class="col-md-3">
<a href="{{ path('buy') }}"><h5>Acheter</h5></a>
<a href="{{ path('sell') }}"><h5>Vendre</h5></a>
</div>

<div class="col-md-3">
<h5 class="text-light">Réseaux sociaux</h5>
<a href="https://www.facebook.com" target="_blank">Facebook</a><br>
<a href="https://www.twitter.com" target="_blank">Twitter</a><br>
</div>

<div class="col-md-3">
<h5 class="text-light">Contact</h5>
<a href="tel:0556900010">Tél : 05 56 90 00 10</a><br>
<a href="mailto:[email protected]">Email : [email protected]</a><br>
</div>
</div>
</div>
</div>

<div id="copyright">
<p>Copyright - Quentin Gans & Lucas Consejo</p>
</div>

{% endblock %}

{% block javascripts %}
Expand Down
32 changes: 0 additions & 32 deletions templates/sell.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,6 @@
{{ form_end(form) }}
</div>

<div id="footer" class="mt-5">
<div class="container">
<div id="footer-center" class="row pt-5 pb-5">
<div class="col-md-3 text-light">
<h2>Sylab</h2>
<p>Slogan du site mdrr</p>
</div>

<div class="col-md-3">
<a href="{{ path('buy') }}"><h5>Acheter</h5></a>
<a href="{{ path('sell') }}"><h5>Vendre</h5></a>
</div>

<div class="col-md-3">
<h5 class="text-light">Réseaux sociaux</h5>
<a href="https://www.facebook.com" target="_blank">Facebook</a><br>
<a href="https://www.twitter.com" target="_blank">Twitter</a><br>
</div>

<div class="col-md-3">
<h5 class="text-light">Contact</h5>
<a href="tel:0556900010">Tél : 05 56 90 00 10</a><br>
<a href="mailto:[email protected]">Email : [email protected]</a><br>
</div>
</div>
</div>
</div>

<div id="copyright">
<p>Copyright - Quentin Gans & Lucas Consejo</p>
</div>

{% endblock %}

{% block javascripts %}
Expand Down
56 changes: 14 additions & 42 deletions templates/show.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends 'base.html.twig' %}

{% block title %} Sylab - Tu achètes !{% endblock %}
{% block title %} Sylab {% endblock %}

{% block stylesheets %}
{{ parent() }}
Expand All @@ -14,7 +14,8 @@
{{ message }}
</div>
{% endfor %}
<div class="container">

<div class="container mt-5">
<div class="row">
<div class="col-md-8">
<img id="img-size" src="{{ asset('upload/img/image_bien/') }}{{ propriety.image }}" alt="picture proprety">
Expand All @@ -26,13 +27,15 @@
<div id="myBtn" class="btn btn-primary mt-3"> Contacter l'agence</div>
</div>

{# Modal bootstrap #}
{# Modal #}
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4><span class="glyphicon glyphicon-lock"></span>Contacter</h4>
<h5 class="modal-title">Contacter</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
{{ form_start(form) }}
Expand All @@ -46,8 +49,8 @@
</div>
{{ form_rest(form) }}
</div>
<div class="form-group">
<button id="btnSubmit" class="btn btn-primary btn-block">Envoyer le mail</button>
<div class="modal-footer justify-content-center">
<button id="btnSubmit" class="btn btn-primary ">Envoyer le mail</button>
</div>
{{ form_end(form) }}
</div>
Expand All @@ -68,11 +71,11 @@
</tr>
<tr>
<td>Pieces</td>
<td>{{ propriety.nbrrooms }} pieces</td>
<td>{{ propriety.nbrrooms }} piece{% if propriety.nbrrooms > 1 %}s{% endif %}</td>
</tr>
<tr>
<td>Chambres</td>
<td>{{ propriety.nbrbedrooms }} chambres</td>
<td>{{ propriety.nbrbedrooms }} chambre{% if propriety.nbrbedrooms > 1 %}s{% endif %}</td>
</tr>
<tr>
<td>Adresse</td>
Expand All @@ -87,48 +90,17 @@
</div>
</div>

<div id="footer" class="mt-5">
<div class="container">
<div id="footer-center" class="row pt-5 pb-5">
<div class="col-md-3 text-light">
<h2>Sylab</h2>
<p>Slogan du site mdrr</p>
</div>

<div class="col-md-3">
<a href="{{ path('buy') }}"><h5>Acheter</h5></a>
<a href="{{ path('sell') }}"><h5>Vendre</h5></a>
</div>

<div class="col-md-3">
<h5 class="text-light">Réseaux sociaux</h5>
<a href="https://www.facebook.com" target="_blank">Facebook</a><br>
<a href="https://www.twitter.com" target="_blank">Twitter</a><br>
</div>

<div class="col-md-3">
<h5 class="text-light">Contact</h5>
<a href="tel:0556900010">Tél : 05 56 90 00 10</a><br>
<a href="mailto:[email protected]">Email : [email protected]</a><br>
</div>
</div>
</div>
</div>

<div id="copyright">
<p>Copyright - Quentin Gans & Lucas Consejo</p>
</div>
{% endblock %}

{% block javascripts %}
<script type="text/javascript">
$('.navbar').css('background-color', "#3c5b52");
$(document).ready(function(){
$(document).ready(() => {
$("#myBtn").click(function(){
$("#myModal").modal();
});
$("#btnSubmit").click(function(){
$("#btnSubmit").click(() => {
$("#myBtn").css('visibility', "hidden");
});
});
Expand Down

0 comments on commit b2c4fa9

Please sign in to comment.