Skip to content

Commit

Permalink
Order Üye Sipariş Bölümü
Browse files Browse the repository at this point in the history
  • Loading branch information
mervegundogmus committed Aug 23, 2020
1 parent 2344af2 commit 2867789
Show file tree
Hide file tree
Showing 62 changed files with 1,128 additions and 298 deletions.
127 changes: 39 additions & 88 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file modified db.sqlite3
Binary file not shown.
Binary file modified home/__pycache__/form.cpython-38.pyc
Binary file not shown.
Binary file modified home/__pycache__/views.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions home/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from django.contrib.auth.models import User

class SearchForm(forms.Form):
query = forms.CharField(label='Search', max_length=100)
catid = forms.IntegerField()
query=forms.CharField(label='Search',max_length=100)


class SignUpForm(UserCreationForm):
username = forms.CharField(max_length=30, label='User Name :')
Expand Down
7 changes: 4 additions & 3 deletions home/templates/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2 class="title text-center">İLANLAR</h2>
<h2>{{ rs.title }}</h2>
<h4>{{ rs.description }}</h4>
<h2 class="title text-center">Fiyat:{{ rs.price }}₺</h2>
<a href="/property/{{ rs.id }}/{{ rs.slug }}" class="btn btn-default add-to-cart"><i class="fa fa-home"></i>Kirala</a>
<a href="/property/{{ rs.id }}/{{ rs.slug }}" class="btn btn-default add-to-cart"><i class="fa fa-home"></i>Görüntüle</a>


</div>
Expand All @@ -30,7 +30,8 @@ <h2 class="title text-center">Fiyat:{{ rs.price }}₺</h2>

</div>
{% endfor %}

</div>
<div class="features_items"><!--features_items-->

<h2 class="title text-center">YENİ İLANLAR</h2>

Expand All @@ -44,7 +45,7 @@ <h2 class="title text-center">YENİ İLANLAR</h2>
<h2>{{ rs.title }}</h2>
<h4>{{ rs.description }}</h4>
<h2 class="title text-center">Fiyat:{{ rs.price }}₺</h2>
<a href="/property/{{ rs.id }}/{{ rs.slug }}" class="btn btn-default add-to-cart"><i class="fa fa-home"></i>Kirala</a>
<a href="/property/{{ rs.id }}/{{ rs.slug }}" class="btn btn-default add-to-cart"><i class="fa fa-home"></i>Görüntüle</a>

</div>
<img src="{% static 'images/home/sale.png' %}" class="sale" alt=""/>
Expand Down
43 changes: 35 additions & 8 deletions home/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="row">
<div class="col-sm-4">
<div class="logo pull-left">
<a href="index.html"><img src="{% static 'images/home/simge.png' %}" alt="" /></a>
<a href="/"><img src="{% static 'images/home/simge.png' %}" alt="" /></a>
</div>
<div class="btn-group pull-right">

Expand All @@ -51,9 +51,7 @@
<li><img src=""></li>
<li><a href="#">{{ user.first_name }}</a></li>
<li><a href="/user/"><i class="fa fa-user"></i> Account</a></li>
<li><a href="/user/comments/"><i class="fa fa-star"></i> Comments</a></li>
<li><a href="checkout.html"><i class="fa fa-crosshairs"></i> Checkout</a></li>
<li><a href="cart.html"><i class="fa fa-shopping-cart"></i> Cart</a></li>
<li><a href="/user/shopcart"><i class="fa fa-shopping-cart"></i> Cart</a></li>
<li><a href="/logout/"><i class="fa fa-lock"></i>Log out</a></li>
</ul>
{% else %}
Expand Down Expand Up @@ -134,12 +132,41 @@
<div class="header-search clearfix">
<form action="/search/" method="post">
{% csrf_token %}
<button class="search-icon" type="submit">
<img src="{% static 'images/icons/search.png'%} " alt="">
<button style="width:30px ;
height:30px;
background-color: #8fd19e;
border:0px solid #fff;border-radius: 3px;"
class="search-icon" type="submit">
<i class="fa fa-search"></i>
</button>
<input name="query" type="text" placeholder="Search...">
<input id ="query" name="query" type="text" placeholder="Anahtar Kelime">
</form>
<script>

$(function() {
$("#query").autocomplete({
source: "/search_auto/",
select: function (event, ui) { //item selected
AutoCompleteSelectHandler(event, ui)
},
minLength: 2,
});
});

function AutoCompleteSelectHandler(event, ui)
{
var selectedObj = ui.item;
}

</script>
</div>
</div>
</div><!--/header-bottom-->
</header><!--/header-->
</header><!--/header-->
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{message.tags}}" role="alert">
{{ message }}
</div>
{% endfor %}
{% endif %}
8 changes: 0 additions & 8 deletions home/templates/iletisim.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{% block head %}
<link rel='shortcut icon' type='image/x-icon' href='{{setting.icon.url}}' />
{% endblock %}
{% block sidebar %} {% include 'sidebar.html' %} {% endblock %}

{% block content %}

Expand All @@ -21,13 +20,6 @@
<h3 class="title">İletişim Formu</h3>

</div>
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }}" role="alert">
{{ message }}
</div>
{% endfor %}
{% endif %}

<form action="" method="post">
{% csrf_token %}
Expand Down
85 changes: 27 additions & 58 deletions home/templates/property_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,18 @@ <h2>{{ property.title }}</h2>
<span>Fiyat:{{ property.price }}₺</span>
<label>Star:</label>
<input type="text" value="{{ property.rate }}" />
<button type="button" class="btn btn-fefault cart">
<form action="/order/addurun/{{property.id}}" method="post">
{% csrf_token %}
<br>
<b>Ay:</b>
<input name="ay" class="input-box" style="width:50px;"type="number" min='1' value="1">
<button type="submit" class="btn btn-fefault cart">
<i class="fa fa-shopping-cart"></i>
Kirala
Evi Kutuya Ekle
</button>

</form>

</span>
<h2><b>Room:</b>{{ property.room }}</h2>
<h2><b>Floor:</b>{{ property.floor }}</h2>
Expand All @@ -64,58 +72,25 @@ <h2><b>m²:</b>{{ property.square_metre }}</h2>
</div>
</div><!--/product-details-->

<div class="recommended_items"><!--recommended_items-->
<h2 class="title text-center">Ürün Galerisi</h2>

<div id="recommended-item-carousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<h2 class="title text-center">Ev Resim Galerisi</h2>
<div style="height:600px">
{% for rs in images %}
<img id="urun_image" style="margin-bottom: 5px;" src="{{ rs.image.url }}" >

<div class="item active">
<div class="col-sm-4">
<div class="product-image-wrapper">
<div class="single-products">
<div class="productinfo text-center">
{% for rs in images %}
<img src="{{ rs.image.url }}" height="90px" width="70px" alt="" />
{% endfor %}
{% endfor %}
<style>

#urun_image{
width: 400px;
position:relative;
float: left;
margin-left: 5px;
}
</style>
</div>

</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="product-image-wrapper">
<div class="single-products">
<div class="productinfo text-center">
{% for rs in images %}
<img src="{{ rs.image.url }}" height="90px" width="70px" alt="" />
{% endfor %}
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="product-image-wrapper">
<div class="single-products">
<div class="productinfo text-center">
{% for rs in images %}
<img src="{{ rs.image.url }}" height="90px" width="70px" alt="" />
{% endfor %}
</div>
</div>
</div>
</div>
</div>

</div>
<a class="left recommended-item-control" href="#recommended-item-carousel" data-slide="prev">
<i class="fa fa-angle-left"></i>
</a>
<a class="right recommended-item-control" href="#recommended-item-carousel" data-slide="next">
<i class="fa fa-angle-right"></i>
</a>
</div>
</div><!--/recommended_items-->


<div class="socials-share">
Expand Down Expand Up @@ -158,21 +133,15 @@ <h4 class="media-heading">{{ rs.user.first_name }}</h4>
<div class="row">
<div class="col-sm-4">
<h2>Leave a replay</h2>
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{message.tags}}" role="alert">
{{ message }}
</div>
{% endfor %}
{% endif %}

<form action="/property/addcomment/{{ property.id }}" method="post">

<div class="blank-arrow">
<label>Your Name</label>
</div>
<span>*</span>
{% csrf_token %}
<input type="text" name="subject" placeholder="write your name...">
<input style="color:black !important;" type="text" name="subject" placeholder="write your name...">
<div class="blank-arrow">
<label>Email Address</label>
</div>
Expand Down
3 changes: 1 addition & 2 deletions home/templates/propertys.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ <h4>{{ rs.description }}</h4>
<h2 class="title text-center">Fiyat:{{ rs.price }}₺</h2>
<p>
<p class="title text-center">m²:{{ rs.square_metre }}</p>
<a href="/property/{{ rs.id }}/{{ rs.slug }}" class="btn btn-default add-to-cart"><i
class="fa fa-home"></i>Kirala</a>
<a href="/property/{{ rs.id }}/{{ rs.slug }}" class="btn btn-default add-to-cart"><i class="fa fa-home"></i>Görüntüle</a>

</div>

Expand Down
7 changes: 2 additions & 5 deletions home/templates/propertys_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
<div class="row">
<div class="col-xs-12">
<div class="breadcrumbs">
<h2 class="breadcrumbs-title">Ev Arama Sonuclari</h2>
<h2 class="breadcrumbs-title">{{ aratilan_kelime }} Sonuclari</h2>
<ul class="breadcrumbs-list">
<li><a href="/">Anasayfa</a></li>
<li>Ev Arama Sonuclari</li>
</ul>
</div>
</div>
Expand All @@ -45,7 +44,7 @@ <h2 class="breadcrumbs-title">Ev Arama Sonuclari</h2>
<th>Category</th>
<th>Price</th>
</tr>
{% for rs in properties %}
{% for rs in products %}
<tr>
<td><a href="/property/{{ rs.id }}//{{ rs.slug }}/"><img src="{{ rs.image.url }}" style="width:350px;height:250px;" alt=""></a></td>
<td><h4 class="product-name"><a href="/property/{{ rs.id }}/{{ rs.slug }}"> {{ rs.title }} </a></h4></td>
Expand All @@ -58,8 +57,6 @@ <h2 class="breadcrumbs-title">Ev Arama Sonuclari</h2>
</div>
</div>
</div>
<!-- CONTACT AREA END -->
<p>{{ setting.aboutus|safe }}</p>
</section>
<!-- End page content -->

Expand Down
Loading

0 comments on commit 2867789

Please sign in to comment.