-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resolution of Django template for the example sp #89
Changes from 3 commits
b228c15
e035a1c
b29f338
6d88020
2c732b7
49caab0
9032c05
5ca843b
d11bae2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,40 @@ | ||||||
{% extends "base.html" %} | ||||||
|
||||||
{%block tab_active%} active{%endblock%} | ||||||
{% block centered_container %} | ||||||
<section id="head-section"> | ||||||
<div class="container"> | ||||||
<div class="row"> | ||||||
<div class="col-lg-6 offset-lg-1 order-lg-2"> | ||||||
<img src="https://picsum.photos/800/600" title="titolo immagine" alt="descrizione immagine" class="img-fluid"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please change the following value with a static image on the local storage, using {% static "..." %}
|
||||||
</div> | ||||||
<div class="col-lg-5 order-lg-1"> | ||||||
<div class="card"> | ||||||
<div class="card-body pb-5"> | ||||||
<div class="category-top"> | ||||||
<svg class="icon"> | ||||||
<use xlink:href="/bootstrap-italia/dist/svg/sprites.svg#it-calendar"></use> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
please use {% static %}, don't use absolute webpaths There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here and in all the occurences |
||||||
</svg> | ||||||
<a class="category" href="#">Notizie</a> | ||||||
<span class="data">18 mag 2023</span> | ||||||
</div> | ||||||
<h1 class="h4 card-title">Parte l'estate con oltre 300 eventi in centro e nei quartieri, tutti gli eventi previsti</h1> | ||||||
<p class="card-text"> | ||||||
Inaugurazione lunedì 2 luglio con il concerto gratuito in piazza XX Settembre degli Sweet Soul Revue. Sul palco 20 musicisti da tutto il mondo. | ||||||
</p> | ||||||
<div class="chip chip-simple chip-primary"> | ||||||
<a href="#" class="chip-label">Estate in città</a> | ||||||
</div> | ||||||
<a class="read-more pb-3" href="/bootstrap-italia/docs/esempi/comuni/template-novita/"> | ||||||
<span class="text">Tutte le novità</span> | ||||||
<svg class="icon"> | ||||||
<use xlink:href="/bootstrap-italia/dist/svg/sprites.svg##it-arrow-right"></use> | ||||||
</svg> | ||||||
</a> | ||||||
</div> | ||||||
</div> | ||||||
</div> | ||||||
</div> | ||||||
</div> | ||||||
</section> | ||||||
{%endblock%} |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
{% load static %} | ||
|
||
{% block centered_container %} | ||
<section id="area-riservata"> | ||
<div class="nav-tabs-hidescroll mt-4 mt-md-5"> | ||
<div class="tab-content"> | ||
<div id="profile" class="tab-pane fade show active"> | ||
<h5 class="text-center mb-4">Profilo Utente</h5> | ||
<ul class="list-group"> | ||
<li class="list-group-item"><strong>Username:</strong> {{ user.username }}</li> | ||
<li class="list-group-item"><strong>Email:</strong> {{ user.email }}</li> | ||
<li class="list-group-item"><strong>Nome:</strong> {{ user.first_name }}</li> | ||
<li class="list-group-item"><strong>Cognome:</strong> {{ user.last_name }}</li> | ||
<li class="list-group-item"><strong>Attivo:</strong> {% if user.is_active %}Sì{% else %}No{% endif %}</li> | ||
<li class="list-group-item"><strong>Matricola:</strong> {% if user.matricola %}{{ user.matricola }}{% else %}N/A{% endif %}</li> | ||
<li class="list-group-item"><strong>Codice Fiscale:</strong> {% if user.codice_fiscale %}{{ user.codice_fiscale }}{% else %}N/A{% endif %}</li> | ||
<li class="list-group-item"><strong>Genere:</strong> {% if user.gender %}{{ user.gender }}{% else %}N/A{% endif %}</li> | ||
<li class="list-group-item"><strong>Data di Nascita:</strong> {% if user.birth_date %}{{ user.birth_date }}{% else %}N/A{% endif %}</li> | ||
<li class="list-group-item"><strong>Luogo di Nascita:</strong> {% if user.place_of_birth %}{{ user.place_of_birth }}{% else %}N/A{% endif %}</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.