projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'xorg/1.0.2/master' into xorg/master
[platal.git]
/
templates
/
profile
/
general.networking.tpl
diff --git
a/templates/profile/general.networking.tpl
b/templates/profile/general.networking.tpl
index
97474a8
..
7636aee
100644
(file)
--- a/
templates/profile/general.networking.tpl
+++ b/
templates/profile/general.networking.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
08
Polytechnique.org *}
+{* Copyright (C) 2003-20
10
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-20,14
+20,21
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
+{if !hasPerm('directory_private') && ($nw.pub eq 'private') && !empty($nw.address|smarty:nodefaults)}
+{assign var=hiddennw value=true}
+{else}
+{assign var=hiddennw value=false}
+{/if}
+
<tr id="networking_{$i}">
<td colspan="2">
<div style="float: left; width: 200px;">
<span class="flags">
<tr id="networking_{$i}">
<td colspan="2">
<div style="float: left; width: 200px;">
<span class="flags">
- <input type="checkbox"
+ <
label><
input type="checkbox"
{if $nw.pub neq 'private'} checked="checked"{/if}
{if $nw.pub neq 'private'} checked="checked"{/if}
+ {if $hiddennw} disabled="disabled"{/if}
name="networking[{$i}][pub]"/>
name="networking[{$i}][pub]"/>
- {icon name="flag_green" title="site public"}
+ {icon name="flag_green" title="site public"}
</label>
</span>
<input type="hidden" name="networking[{$i}][type]" value="{$nw.type}"/>
<input type="hidden" name="networking[{$i}][name]" value="{$nw.name}"/>
</span>
<input type="hidden" name="networking[{$i}][type]" value="{$nw.type}"/>
<input type="hidden" name="networking[{$i}][name]" value="{$nw.name}"/>
@@
-35,9
+42,14
@@
<span style="">{$nw.name}</span>
</div>
<div style="float: left">
<span style="">{$nw.name}</span>
</div>
<div style="float: left">
+ {if $hiddennw}
+ <input type="hidden" name="networking[{$i}][address]" value="{$nw.address}" />
+ (masqué)
+ {else}
<input type="text" name="networking[{$i}][address]" value="{$nw.address}"
{if $nw.error} class="error" {/if}
size="30"/>
<input type="text" name="networking[{$i}][address]" value="{$nw.address}"
{if $nw.error} class="error" {/if}
size="30"/>
+ {/if}
<a href="javascript:removeNetworking({$i})">
{icon name=cross title="Supprimer cet élément"}
</a>
<a href="javascript:removeNetworking({$i})">
{icon name=cross title="Supprimer cet élément"}
</a>