Commit 4b765e74 authored by Cosimo Antonio Volpicelli's avatar Cosimo Antonio Volpicelli
Browse files

templatetags

parent 3a5aea02
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -6,9 +6,10 @@
                  </li>
                  <li><a href="/utenti/index"><i class="fa fa-edit"></i> Nuova Richiesta </a>
                  </li>
                  <li><a><i class="fa fa-desktop"></i> Richieste Inviate <span class="fa fa-chevron-down"></span></a>
                  <li><a><i class="fa fa-desktop"></i> Richieste  <span class="fa fa-chevron-down"></span></a>
                    <ul class="nav child_menu">
                      <li><a href="general_elements.html">Da prendere in carico</a></li>
                      <li><a href="general_elements.html">Create (Non inviate )</a></li>
                      <li><a href="general_elements.html">Inviate</a></li>
                      <li><a href="media_gallery.html">In Lavorazione</a></li>
                      <li><a href="typography.html">Completate</a></li>
                      
+10 −7
Original line number Diff line number Diff line
{% extends "gbase.html" %}
{% load static %}
{% load replace_string %}

{% block css %}
{{ block.super }}
@@ -55,7 +56,7 @@
                                      </h2>
                                    
                          <div class="byline">
                            <span>13 hours ago</span> by <a>Jane Smith</a>
                            <span>{{direttore.email| replace_string }}</span> 
                          </div>
                          <p class="excerpt"> Responsabile Unico delle procedure di acquisto</a>
                          </p>
@@ -74,7 +75,7 @@
                                          <a>{{resp_cont.first_name}} {{ resp_cont.last_name}}</a>
                                      </h2>
                          <div class="byline">
                            <span>13 hours ago</span> by <a>Jane Smith</a>
                            <span>{{resp_cont.email| replace_string }}</span> 
                          </div>
                          <p class="excerpt">Film festivals used to be do-or-die moments for movie makers. They were where you met the producers that could fund your project, and if the buyers liked your flick, they’d pay to Fast-forward and… <a>Read&nbsp;More</a>
                          </p>
@@ -93,7 +94,7 @@
                                          <a>{{resp_acqu.first_name}} {{ resp_acqu.last_name}}</a>
                                      </h2>
                          <div class="byline">
                            <span>13 hours ago</span> by <a>Jane Smith</a>
                            <span>{{resp_acqu.email| replace_string }}</span> 
                          </div>
                          <p class="excerpt">Film festivals used to be do-or-die moments for movie makers. They were where you met the producers that could fund your project, and if the buyers liked your flick, they’d pay to Fast-forward and… <a>Read&nbsp;More</a>
                          </p>
@@ -110,12 +111,14 @@
                        <div class="block_content">
                          <h2 class="title">
                          {% for addetto in addetti %}
                                          <li>{{addetto.first_name}} {{ addetto.last_name}}</li>
                          {% endfor %}
                                      </h2>
                                          <li>{{addetto.first_name}} {{ addetto.last_name}}
                                          <div class="byline">
                            <span>13 hours ago</span> by <a>Jane Smith</a>
                                            <span>{{addetto.email| replace_string }}</span> 
                                          </div>
                                          </li>
                          {% endfor %}
                                      </h2>
                          
                          <p class="excerpt">Film festivals used to be do-or-die moments for movie makers. They were where you met the producers that could fund your project, and if the buyers liked your flick, they’d pay to Fast-forward and… <a>Read&nbsp;More</a>
                          </p>
                        </div>
+360 B

File added.

No diff preview for this file type.

+7 −0
Original line number Diff line number Diff line
from django import template

register = template.Library()

@register.filter
def replace_string(value):
    return value.replace("@"," at ")
 No newline at end of file