-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cf044d
commit aaaa945
Showing
3 changed files
with
260 additions
and
33 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
169 changes: 169 additions & 0 deletions
169
src/design/plone/contenttypes/browser/utils/templates/check_persone.pt
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 |
---|---|---|
@@ -0,0 +1,169 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
xmlns:metal="http://xml.zope.org/namespaces/metal" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
lang="en" | ||
metal:use-macro="context/prefs_main_template/macros/master" | ||
xml:lang="en" | ||
i18n:domain="plone" | ||
> | ||
|
||
<body> | ||
<metal:block fill-slot="javascript_head_slot"> | ||
|
||
</metal:block> | ||
<metal:block fill-slot="style_slot"> | ||
<link crossorigin="anonymous" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" | ||
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" | ||
referrerpolicy="no-referrer" | ||
rel="stylesheet" | ||
/> | ||
<style> | ||
li.categoria{margin-bottom:2em} | ||
#content-header, | ||
#mainnavigation-wrapper, | ||
#above-content-wrapper{display:none} | ||
.container{margin-top:2em} | ||
|
||
table.people{ | ||
border: 1px solid #ddd; | ||
padding: 8px; | ||
} | ||
table.people tr:nth-child(even){background-color: #f2f2f2;} | ||
table.people tr:hover {background-color: #ddd;} | ||
table.people th { | ||
text-align: left; | ||
background-color: #ccc; | ||
color: #000; | ||
padding: 10px; | ||
} | ||
table.people td{ | ||
padding: 10px; | ||
} | ||
table.people th{ | ||
position: -webkit-sticky; | ||
position: sticky; | ||
top: 0; | ||
z-index: 2; | ||
} | ||
table.people thead tr th.person_title{ | ||
width: 250px; | ||
} | ||
.forms{ | ||
margin-top: 1em; | ||
margin-bottom: 1em; | ||
text-align:center; | ||
} | ||
.forms button, | ||
.forms input{ | ||
border: none; /* Remove borders */ | ||
color: white; /* Add a text color */ | ||
padding: 14px 28px; /* Add some padding */ | ||
cursor: pointer; /* Add a pointer cursor on mouse-over */ | ||
background-color: #2196F3; | ||
border-radius: 4px; | ||
} | ||
.forms input:hover{ | ||
background: #0b7dda; | ||
} | ||
.download_button{ | ||
margin-top: 1em; | ||
margin-bottom: 1em; | ||
text-align:right; | ||
} | ||
</style> | ||
</metal:block> | ||
<tal:main metal:fill-slot="prefs_configlet_wrapper"> | ||
|
||
<tal:main metal:fill-slot="prefs_configlet_main"> | ||
<h1>Verifica dello stato delle persone</h1> | ||
<div tal:condition="view/is_anonymous"> | ||
Non hai i permessi per vedere questo elenco di informazioni. Se pensi | ||
che questo non sia corretto verifica di essere autenticato oppure rivolgiti | ||
agli amministratori del sito. | ||
</div> | ||
|
||
<div class="lista_persone" | ||
tal:define=" | ||
persone view/get_persone; | ||
" | ||
tal:condition="not:view/is_anonymous" | ||
> | ||
<p class="lead" | ||
tal:condition="persone" | ||
> | ||
La lista seguente elenca tutte quelle persone per le quali non sono | ||
ancora stati aggiunti i campi che AGID indica come obbligatori. | ||
Ogni redattore può vedere in questa lista tutte le persone e, | ||
cliccando su ognuna, andare alla vista di dettaglio della persona, | ||
editarla e compilare tutti i campi obbligatori.</p> | ||
<p class="lead" | ||
tal:condition="persone" | ||
>Si fa notare, infine, che la seguente lista di persone | ||
presenta tutte quelle persone in stato pubblicato e | ||
<strong>non scadute</strong> | ||
secondo | ||
le logiche di pubblicazione del CMS Plone, ovvero con una data di scadenza ancora da raggiugnere.</p> | ||
|
||
<div class="forms"> | ||
<div class="download_button"> | ||
<form action="${context/absolute_url}/@@download-check-persone"> | ||
<!-- <input type="Submit" value="Download" /> --> | ||
<button class="download-button" | ||
type="submit" | ||
> | ||
<i class="fas fa-download"></i> | ||
Download persone | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<ul> | ||
<li class="categoria" | ||
tal:repeat="categoria persone" | ||
> | ||
<tal:block tal:define=" | ||
categoria_url python:persone[categoria]['url']; | ||
"> | ||
<h2><a href="${categoria_url}" | ||
target="_blank" | ||
>${categoria}</a></h2> | ||
<ul tal:condition="nothing"> | ||
<li class="persona" | ||
tal:repeat="persona python:persone[categoria]['children']" | ||
> | ||
<h5><a href="${persona/url}" | ||
target="_blank" | ||
>${persona/title}</a></h5> | ||
</li> | ||
</ul> | ||
<table class="people"> | ||
<thead> | ||
<tr> | ||
<th class="person_title"><span>Titolo</span></th> | ||
<th><span>Organizzazione di riferimento</span></th> | ||
<th><span>Incarichi</span></th> | ||
<th><span>Contatti</span></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr tal:repeat="persona python:persone[categoria]['children']"> | ||
<td><a href="${persona/url}" | ||
target="_blank" | ||
>${persona/title}</a></td> | ||
<td><span tal:content="structure persona/data/organizzazione_riferimento"></span></td> | ||
<td><span tal:content="structure persona/data/incarichi_persona"></span></td> | ||
<td><span tal:content="structure persona/data/contact_info"></span></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</tal:block> | ||
</li> | ||
</ul> | ||
</div> | ||
</tal:main> | ||
</tal:main> | ||
</body> | ||
</html> |