-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed static links on dynamic ones; made one common menu in base te…
…mplate
- Loading branch information
1 parent
da2f83f
commit e1cb375
Showing
11 changed files
with
202 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html class="h-100"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | ||
<title>{% block title %}Welcome!{% endblock %}</title> | ||
{# Run `composer require symfony/webpack-encore-bundle` | ||
and uncomment the following Encore helpers to start using Symfony UX #} | ||
{% block stylesheets %} | ||
{#{{ encore_entry_link_tags('app') }}#} | ||
{% endblock %} | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | ||
<title> | ||
{% block title %}Welcome! | ||
{% endblock %} | ||
</title> | ||
{# Run `composer require symfony/webpack-encore-bundle` | ||
and uncomment the following Encore helpers to start using Symfony UX #} | ||
{% block stylesheets %} | ||
{#{{ encore_entry_link_tags('app') }}#} | ||
{% endblock %} | ||
|
||
{% block javascripts %} | ||
{#{{ encore_entry_script_tags('app') }}#} | ||
{% endblock %} | ||
</head> | ||
<body class="h-100" style="background-color: #ecf3fd;"> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/bs-custom-file-input/dist/bs-custom-file-input.min.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> | ||
{% block body %}{% endblock %} | ||
{% block javascripts %} | ||
{#{{ encore_entry_script_tags('app') }}#} | ||
{% endblock %} | ||
</head> | ||
<body class="h-100" style="background-color: #ecf3fd;"> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/bs-custom-file-input/dist/bs-custom-file-input.min.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> | ||
|
||
<script> | ||
document.addEventListener('DOMContentLoaded', function() { | ||
<header> | ||
<div class="container"> | ||
{% if app.user %} | ||
<div class="row justify-content-end"> | ||
<div class="p-2 border-bottom"> | ||
<a href="{{ path('app_logout') }}">logout</a> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% if app.request.attributes.get('_route') != "homepage" %} | ||
<ul class="nav nav-tabs mt-5"> | ||
{% block breadcrumb %} | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{ path('homepage') }}">Home</a> | ||
</li> | ||
{% endblock %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</header> | ||
|
||
{% block body %}{% endblock %} | ||
|
||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
bsCustomFileInput.init(); | ||
}); | ||
</script> | ||
</body> | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,23 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %}Hello ClientController!{% endblock %} | ||
{% block title %} | ||
{{ title }} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
{% block breadcrumb %} | ||
{{ parent() }} | ||
<li class="nav-item"> | ||
<a class="nav-link active" href="#">{{ title }}</a> | ||
</li> | ||
{% endblock %} | ||
|
||
<div class="container"> | ||
{% if app.user %} | ||
<div class="row justify-content-end"> | ||
<div class="p-2 border-bottom"> | ||
<a href="{{ path('app_logout') }}">logout</a> | ||
{% block body %} | ||
<div class="container"> | ||
<h1 class="text-center mt-4">{{ title }}</h1> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-6"> | ||
{{ form(clientForm) }} | ||
</div> | ||
</div> | ||
{% endif %} | ||
<ul class="nav nav-tabs mt-5"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/">Main</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link active" href="#">Creating client</a> | ||
</li> | ||
</ul> | ||
<h1 class="text-center mt-4">Creating client</h1> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-6"> | ||
{{ form(clientForm) }} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %}Hello ClientController!{% endblock %} | ||
{% block title %} | ||
{{ title }} | ||
{% endblock %} | ||
|
||
{% block breadcrumb %} | ||
{{ parent() }} | ||
<li class="nav-item"> | ||
<a class="nav-link active" href="#">{{ title }}</a> | ||
</li> | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<div class="container"> | ||
{% if app.user %} | ||
<div class="row justify-content-end"> | ||
<div class="p-2 border-bottom"> | ||
<a href="{{ path('app_logout') }}">logout</a> | ||
|
||
<div class="container"> | ||
<h1 class="text-center mt-4">{{ title }}</h1> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-6"> | ||
{{ form(clientForm) }} | ||
</div> | ||
</div> | ||
{% endif %} | ||
<ul class="nav nav-tabs mt-5"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/">Main</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link active" href="#">Editing client</a> | ||
</li> | ||
</ul> | ||
<h1 class="text-center mt-4">Editing client</h1> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-6"> | ||
{{ form(clientForm) }} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.