aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/view_tiers.mako
diff options
context:
space:
mode:
authortr4ck3ur <tr4ck3ur@style-python.fr>2015-02-13 02:29:37 +0100
committertr4ck3ur <tr4ck3ur@style-python.fr>2015-02-13 02:29:37 +0100
commitfa4a9859c57de6b7894ff4b84b75d242f2b796f5 (patch)
treec6ec352fdd634ca3e645cb2db897a127fcff299b /jm2l/templates/view_tiers.mako
downloadjm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.gz
jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.bz2
jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.xz
jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.zip
first drop
Diffstat (limited to 'jm2l/templates/view_tiers.mako')
-rw-r--r--jm2l/templates/view_tiers.mako84
1 files changed, 84 insertions, 0 deletions
diff --git a/jm2l/templates/view_tiers.mako b/jm2l/templates/view_tiers.mako
new file mode 100644
index 0000000..cbb84f2
--- /dev/null
+++ b/jm2l/templates/view_tiers.mako
@@ -0,0 +1,84 @@
+<%inherit file="jm2l:templates/layout.mako"/>
+
+<% The_entity_type = entity.get_entity_type %>
+
+ <strong>${The_entity_type.entity_type}</strong>
+ % if The_entity_type.entity_subtype!=The_entity_type.entity_type:
+ ${The_entity_type.entity_subtype}
+ % endif
+<div class="borderboxtime">
+${The_entity_type.entity_subtype}
+</div>
+%if entity.tiers_id:
+ <a href="http://jm2l.linux-azur.org/node/${entity.tiers_id}">Link</a> -
+%endif
+ <a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">Editer</a>
+ <div clear='both'></div>
+<div>
+ <a style="float:right;" href="/entities">Liste des entités</a>
+ <h3 style="line-height:30px;">${entity.name}</h3>
+</div>
+<div class="borderbox">
+ % if entity.PhotosLinks:
+ <div style="float:right;padding:5px;border: 1px solid #eee;background-color:white;">
+ % for img_path in entity.PhotosLinks:
+ <img src="${img_path}" alt="logo" />
+ % endfor
+ </div>
+ % endif
+% if entity.description :
+ ${entity.description | n}
+% else:
+ <p>Cette entité n'a pas de description.</p>
+% endif
+</div>
+
+% if 0:
+ % for media in entity.PhotosLinks:
+ <strong>Présentation</strong>:${media.filename} (${media.mime_type})
+ % endfor
+ <hr/>
+ % for media in entity.video:
+ <div style="width:480px;margin:auto;">
+ <video width="480" poster="" controls="controls" preload="metadata">
+ <source type="${media.mime_type}"
+ src="${media.filename}">
+ </source>
+ </video> <br />
+ <strong>Vidéo</strong>:${media.filename} (${media.mime_type})
+ </div>
+ % endfor
+% endif
+% for iterv in entity.members:
+<p>
+ <div class="titleborderbox">
+ Intervenant <strong><a href="/user/${iterv.slug}">${iterv.prenom} ${iterv.nom}</a></strong>.
+ % if iterv.pseudo:
+ (${iterv.pseudo})
+ %endif
+ </div>
+ <div class="borderbox">
+ % if iterv.PhotosLinks:
+ <div style="float:right;padding:5px;border: 1px solid #eee;background-color:white;">
+ % for img_path in iterv.PhotosLinks:
+ <img src="${img_path}" alt="logo" />
+ % endfor
+ </div>
+ % endif
+
+ % if iterv.bio:
+ ${iterv.bio | n}
+ %endif
+ % if iterv.website:
+ <div style="float:right;">
+ <a href="http://${iterv.website}">${iterv.website}</a>
+ </div>
+ %endif
+ </div>
+</p>
+% endfor
+
+<p style="float:right;">Créé le ${entity.created.strftime('%d %b %Y').decode('utf-8')}</p>
+<br/>
+<hr/>
+