This commit is contained in:
Kevin Frantz
2018-07-15 16:41:56 +02:00
parent 990d65aa9a
commit 1492282ae5
17 changed files with 129 additions and 91 deletions

View File

@@ -22,12 +22,13 @@
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
{%for link in item %}
<a class="dropdown-item {% if link.active %}active{% endif %}" href="{{ link.url }}">{{ link.name }}</a>
<a class="dropdown-item {% if link.active %}active{% endif %}"
href="{{ link.url }}"> {{ link.name }}
</a>
{% endfor %}
</div></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</div>

View File

@@ -28,8 +28,7 @@ basket
{% for key,payment in payment_methods %}
<option value="{{ key }}">{{ payment.name }}</option>
{% endfor %}
</select>
<input type="hidden" name="store" value="1" />
<input type="submit" class="btn btn-primary" value="Order" />
</select> <input type="hidden" name="store" value="1" /> <input type="submit"
class="btn btn-primary" value="Order" />
</form>
{% endblock %}

View File

@@ -23,8 +23,8 @@ product overview
</ul>
</span>
<form action="{{ add_to_basket.url }}" method="post">
<input type="hidden" name="add" value="{{ product.id }}" />
<input type="submit" class="btn btn-primary" value="Add to basket" />
<input type="hidden" name="add" value="{{ product.id }}" /> <input
type="submit" class="btn btn-primary" value="Add to basket" />
</form>
</div>
</div>

View File

@@ -1,5 +1,7 @@
{% extends "frames/default.html.twig" %}
{% block title %}Homepage{% endblock %}
{% block title %}
Homepage
{% endblock %}
{% block content %}
<h2>Welcome to the online shop!</h2>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Signs%2C_signs_and_more_signs_%282504183343%29.jpg/1280px-Signs%2C_signs_and_more_signs_%282504183343%29.jpg" />

View File

@@ -1,16 +1,20 @@
{% extends "frames/default.html.twig" %}
{% block title %}login{% endblock %}
{% block title %}
login
{% endblock %}
{% block content %}
<h1>Login</h1>
<form method='post'>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" name="email" class="form-control" id="email" aria-describedby="emailHelp" placeholder="Enter email">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" id="password" placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
<div class="form-group">
<label for="email">Email address</label> <input type="email"
name="email" class="form-control" id="email"
aria-describedby="emailHelp" placeholder="Enter email">
</div>
<div class="form-group">
<label for="password">Password</label> <input type="password"
name="password" class="form-control" id="password"
placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
{% endblock %}

View File

@@ -1,20 +1,25 @@
{% extends "frames/default.html.twig" %}
{% block title %}register{% endblock %}
{% block title %}
register
{% endblock %}
{% block content %}
<h1>Register</h1>
<form method="post">
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" aria-describedby="emailHelp" name="email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="name">Username</label>
<input type="email" class="form-control" id="name" aria-describedby="emailHelp" name="name" placeholder="Enter Username">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
<div class="form-group">
<label for="email">Email address</label> <input type="email"
class="form-control" id="email" aria-describedby="emailHelp"
name="email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="name">Username</label> <input type="email"
class="form-control" id="name" aria-describedby="emailHelp"
name="name" placeholder="Enter Username">
</div>
<div class="form-group">
<label for="password">Password</label> <input type="password"
class="form-control" id="password" name="password"
placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
{% endblock %}