Author: benj
Date: Thu Jan 19 15:01:38 2017
New Revision: 1787

URL: http://svn.gna.org/viewcvs/gdtc?rev=1787&view=rev
Log:
Make email gr.. clickable again (closes: #25445)

Modified:
    trunk/gdtc/css/style.css
    trunk/gdtc/templates/smarty/admin/edit_actor.tpl

Modified: trunk/gdtc/css/style.css
URL: 
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/css/style.css?rev=1787&r1=1786&r2=1787&view=diff
==============================================================================
--- trunk/gdtc/css/style.css    (original)
+++ trunk/gdtc/css/style.css    Thu Jan 19 15:01:38 2017
@@ -298,4 +298,8 @@
 
 .ui-datepicker {
     z-index: 999 !important;
+}
+
+.table-striped > tbody > tr:nth-of-type(2n+1) {
+    background-color: #e9e9f9 !important;
 }

Modified: trunk/gdtc/templates/smarty/admin/edit_actor.tpl
URL: 
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/templates/smarty/admin/edit_actor.tpl?rev=1787&r1=1786&r2=1787&view=diff
==============================================================================
--- trunk/gdtc/templates/smarty/admin/edit_actor.tpl    (original)
+++ trunk/gdtc/templates/smarty/admin/edit_actor.tpl    Thu Jan 19 15:01:38 2017
@@ -34,12 +34,27 @@
 
     {if $additional.actor_type == 'entity'}
     <div id="sc2" class="tab-pane" role="tabpanel">
-      <ul>
-       {section name=entity_contact loop=$additional.contacts_data}
-       <li> <a
-               
href="?action=edit&table=actor&id={$additional.contacts_data[entity_contact].actor_id}">{$additional.contacts_data[entity_contact].firstname}
 {$additional.contacts_data[entity_contact].name}</a>{if 
$additional.contacts_data[entity_contact].contact_position}, 
{$additional.contacts_data[entity_contact].contact_position}{/if}{if 
$additional.contacts_data[entity_contact].contact_email}, 
{$additional.contacts_data[entity_contact].contact_email}{/if}{if 
$additional.contacts_data[entity_contact].contact_email}, 
[{$additional.contacts_data[entity_contact].contact_type}]{/if}</li>
+      <table class="table table-hover table-striped">
+       <tr>
+         <th>Nom</th>
+         <th>Fonction</th>
+         <th>Courriel</th>
+         <th>Fonction</th>
+       </tr>
+       <tbody>
+         {section name=entity_contact loop=$additional.contacts_data}
+         <tr>
+           <td>
+             <a
+                
href="?action=edit&table=actor&id={$additional.contacts_data[entity_contact].actor_id}">{$additional.contacts_data[entity_contact].firstname}
 {$additional.contacts_data[entity_contact].name}</a>
+           </td>
+           
<td>{$additional.contacts_data[entity_contact].contact_position}</td>
+           <td><a 
href="mailto:{$additional.contacts_data[entity_contact].contact_email}";><span 
class="fa fa-envelope"></span> 
{$additional.contacts_data[entity_contact].contact_email}</a></td>
+           <td>{$additional.contacts_data[entity_contact].contact_type}</td>
+         </tr>
        {/section}
-      </ul>
+       </tbody>
+      </table>
     </div>
     {/if}
 
@@ -745,14 +760,15 @@
 
     <div id="sc9" class="tab-pane" role="tabpanel">
       <p>
-       <a class="btn btn-primary" 
href="?action=add&table=benevalo&actor_id={$id}"><span class="fa 
fa-plus">&nbsp;</span>Saisir une action de bénévalo</a></span>
+       <a class="btn btn-primary" 
href="?action=add&table=benevalo&actor_id={$id}"><span class="fa 
fa-plus">&nbsp;</span>Saisir une action de bénévalo</a>
       </p>
       {include file="list_benevalo.tpl"}
     </div>
 
     <div id="sc10" class="tab-pane" role="tabpanel">
 
-      <table class="table table-hover table-striped table-condensed" 
id="subscriptions" width="100%" border="0" cellspacing="0" cellpadding="6">
+      <table class="table table-hover table-striped" id="subscriptions" 
width="100%" border="0" cellspacing="0" cellpadding="6">
+       <thead>
        <tr>
          <th></th>
          <th>Début</th>
@@ -764,10 +780,12 @@
          <th></th>
          <th></th>
        </tr>
-
+       </thead>
+
+       <tbody>
        {section name=i loop=$additional.memberships}
        {strip}
-       <tr {if $smarty.section.i.index mod 2} bgcolor="palegoldenrod" {/if}>
+       <tr>
          <td width="24"><span class="caret"></span></td>
          
<td><b>{$additional.memberships[i].start_date|date_format:"%d/%m/%Y"}</b></td>
          <td colspan="3"><b>
@@ -785,7 +803,7 @@
 
        {section name=j loop=$additional.memberships[i].subscription}
        {strip}
-       <tr {if $smarty.section.i.index mod 2} bgcolor="palegoldenrod" {/if}>
+       <tr>
          <td style="color: red; font-weight: bold;">{if 
$additional.memberships[i].subscription[j].current}(C){/if}</td>
          <td>
            
{$additional.memberships[i].subscription[j].start_date|date_format:"%d/%m/%Y"}
@@ -839,7 +857,7 @@
 
        {/section}
 
-       <tr {if $smarty.section.i.index mod 2} bgcolor="palegoldenrod" {/if}>
+       <tr>
          <td>&nbsp;</td>
          <td colspan="7"><i><a 
href="?action=add&table=subscription&actor_id={$id}&membership_id={$additional.memberships[i].membership_id}">Ajouter
 une cotisation...</a></i></td>
        </tr>
@@ -853,6 +871,7 @@
        </tr>
        {/section}
 
+       </tbody>
       </table>
       
     </div>


_______________________________________________
Gdtc-commits mailing list
[email protected]
https://mail.gna.org/listinfo/gdtc-commits

Reply via email to