Kosmetyczne poprawki frontu

This commit is contained in:
Klaudia 2020-12-21 10:59:19 +01:00
parent d4ecffc0a2
commit 4dcb598519
4 changed files with 118 additions and 35 deletions

View File

@ -2,8 +2,8 @@
{% load static %} {% load static %}
{% block content %} {% block content %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" class="h-100">
<body> <body class="h-100">
<!--================Categories Banner Area =================--> <!--================Categories Banner Area =================-->
<section class="solid_banner_area"> <section class="solid_banner_area">
@ -25,46 +25,73 @@
<div class="track_inner"> <div class="track_inner">
<form class="track_form row"> <form class="track_form row">
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="cun">Rodzaj ogłoszenia <span>*</span></label> <label for="cun">Rodzaj ogłoszenia <span>*</span></label>
<select id="cun" name="offer"> <select id="cun" name="offer">
<option value="1">Usługa</option> <option value="1">Usługa</option>
<option value="2">Przedmiot</option> <option value="2">Przedmiot</option>
</select> </select>
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="cun">Typ ogłoszenia <span>*</span></label> <label for="cun">Typ ogłoszenia <span>*</span></label>
<select id="cun" name="type"> <select id="cun" name="type">
<option value="2">Oddam</option> <option value="2">Oddam</option>
<option value="1">Potrzebuję</option> <option value="1">Potrzebuję</option>
</select> </select>
</div> </div>
</div>
<div class="col-lg-12 form-group">
<label for="name">Tytył <span>*</span></label>
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="title">
</div> </div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Tytuł <span>*</span></label>
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="title">
</div>
</div>
</div>
<div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Miejscowość <span>*</span></label> <label for="name">Miejscowość <span>*</span></label>
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="place"> <input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="place">
</div> </div>
</div>
<div class="col-lg-12 form-group"> </div>
<div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="order">Opis <span>*</span></label> <label for="order">Opis <span>*</span></label>
<textarea class="form-control" id="order" rows="3" name="script"></textarea> <textarea class="form-control" id="order" rows="3" name="script"></textarea>
</div> </div>
</div>
<div class="col-lg-12 form-group"> </div>
<div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<div class="file-field"> <div class="file-field">
<span>Wybierz zdjęcie</span> <span>Wybierz zdjęcie</span>
<input name="file" type="file" accept="image/*"> <input name="file" type="file" accept="image/*">
</div> </div>
</div>
</div>
</div>
</div> </div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<input type="submit" class="btn btn-primary update_btn" value="Dodaj"> <input type="submit" class="btn btn-primary update_btn" value="Dodaj">
</div> </div>
</div>
</div>
</form> </form>
</div> </div>
</div> </div>

View File

@ -25,19 +25,31 @@
<div class="track_inner"> <div class="track_inner">
<form class="track_form row"> <form class="track_form row">
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Email: <span>*</span></label> <label for="name">Email: <span>*</span></label>
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="email"> <input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="email">
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Hasło: <span>*</span></label> <label for="name">Hasło: <span>*</span></label>
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="password"> <input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="password">
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<input type="submit" class="btn btn-primary update_btn" value="Rejestruj"> <input type="submit" class="btn btn-primary update_btn" value="Rejestruj">
</div> </div>
</div>
</div>
</form> </form>
</div> </div>
</div> </div>

View File

@ -25,7 +25,9 @@
<div class="track_inner"> <div class="track_inner">
<form class="track_form row"> <form class="track_form row">
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="cun">Rodzaj ogłoszenia<span>*</span></label> <label for="cun">Rodzaj ogłoszenia<span>*</span></label>
<select id="cun" name="offer"> <select id="cun" name="offer">
{% if offer.type == types.0.0 %} {% if offer.type == types.0.0 %}
@ -37,8 +39,12 @@
{% endif %} {% endif %}
</select> </select>
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="cun">Typ ogłoszenia <span>*</span></label> <label for="cun">Typ ogłoszenia <span>*</span></label>
<select id="cun" name="type"> <select id="cun" name="type">
{% if offer.offer == types_o.0.0 %} {% if offer.offer == types_o.0.0 %}
@ -49,37 +55,59 @@
<option selected value="2">Potrzebuję</option> <option selected value="2">Potrzebuję</option>
{% endif %} {% endif %}
</select> </select>
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Tytył <span>*</span></label> <label for="name">Tytył <span>*</span></label>
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="title" value={{ offer.title }}> <input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="title" value={{ offer.title }}>
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Miejscowość <span>*</span></label> <label for="name">Miejscowość <span>*</span></label>
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="place" value={{ offer.place }}> <input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="place" value={{ offer.place }}>
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="order">Opis <span>*</span></label> <label for="order">Opis <span>*</span></label>
<textarea class="form-control" id="order" rows="3" name="script" >{{ offer.description }}</textarea> <textarea class="form-control" id="order" rows="3" name="script" >{{ offer.description }}</textarea>
</div> </div>
</div>
</div>
<div class="col-lg-4 col-md-6"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<div class="c_product_img"> <div class="c_product_img">
<img class="img-fluid" src="{{ offer.picture.url }}"> <img class="img-fluid" src="{{ offer.picture.url }}">
</div> </div>
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<div class="file-field"> <div class="file-field">
<span>Wybierz zdjęcie</span> <span>Wybierz zdjęcie</span>
<input name="file" type="file" accept="image/*" value={{ offer.picture.url }}> <input name="file" type="file" accept="image/*" value={{ offer.picture.url }}>
</div> </div>
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="col-lg-12 form-group">
<input type="submit" class="btn btn-primary update_btn" value="Edytuj"> <input type="submit" class="btn btn-primary update_btn" value="Zapisz">
</div> </div>
</form> </form>
</div> </div>

View File

@ -27,25 +27,41 @@
<div class="track_inner"> <div class="track_inner">
<form class="track_form row"> <form class="track_form row">
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Email: <span>*</span></label> <label for="name">Email: <span>*</span></label>
<input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="email"> <input type="text" class="form-control" id="name" aria-describedby="name" placeholder="" name="email">
</div> </div>
</div>
</div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Hasło: <span>*</span></label> <label for="name">Hasło: <span>*</span></label>
<input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="password"> <input type="password" class="form-control" id="name" aria-describedby="name" placeholder="" name="password">
</div> </div>
</div>
<div class="col-lg-12 form-group">
<input type="submit" class="btn btn-primary update_btn" value="Logowanie">
</div> </div>
<div class="col-lg-12 form-group"> <div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<input type="submit" class="btn btn-primary update_btn" value="Logowanie">
</div>
</div>
</div>
<div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="col-10 col-md-8 col-lg-6">
<label for="name">Jeśli nie masz konta możesz je utworzyć tutaj:</label> <br> <label for="name">Jeśli nie masz konta możesz je utworzyć tutaj:</label> <br>
<a href="create_user"><button type="button" class="btn btn-primary update_btn">REJESTRACJA</button></a> <a href="create_user"><button type="button" class="btn btn-primary update_btn">REJESTRACJA</button></a>
</div> </div>
</div>
</div>
</form> </form>
</div> </div>