projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Autocomplete enterprise name in profile edition. (Closes #836)
[platal.git]
/
templates
/
admin
/
valider.tpl
diff --git
a/templates/admin/valider.tpl
b/templates/admin/valider.tpl
index
d98d67d
..
67ad572
100644
(file)
--- a/
templates/admin/valider.tpl
+++ b/
templates/admin/valider.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-200
7
Polytechnique.org *}
+{* Copyright (C) 2003-200
8
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 *}
@@
-15,13
+15,22
@@
{* *}
{* You should have received a copy of the GNU General Public License *}
{* along with this program; if not, write to the Free Software *}
{* *}
{* You should have received a copy of the GNU General Public License *}
{* along with this program; if not, write to the Free Software *}
-{* Foundation, Inc., *}
+
{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
{* *}
{**************************************************************************}
{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
{* *}
{**************************************************************************}
+{javascript name="jquery"}
+<script type="text/javascript">//<![CDATA[
+{literal}
+function toggleField(name, id, obj) {
+ $("#" + name + "_" + id).toggle();
+}
+{/literal}
+//]]></script>
+
<h1>Validation</h1>
<h1>Validation</h1>
-
+
{if $vit->total()}
{if $vit->total()}
@@
-39,7
+48,7
@@
<td class="titre" style="width: 20%">Demandeur :</td>
<td>
<a href="profile/{$valid->bestalias}" class="popup2">
<td class="titre" style="width: 20%">Demandeur :</td>
<td>
<a href="profile/{$valid->bestalias}" class="popup2">
- {$valid->prenom
|utf8_encode} {$valid->nom|utf8_encode
} (X{$valid->promo})
+ {$valid->prenom
} {$valid->nom
} (X{$valid->promo})
</a>
</td>
</tr>
</a>
</td>
</tr>
@@
-51,28
+60,42
@@
</tr>
{include file=$valid->formu()}
{if $valid->editor()}
</tr>
{include file=$valid->formu()}
{if $valid->editor()}
- <tr>
+ <tr onclick="toggleField('edit', '{$valid->id()}')" style="cursor: pointer">
+ <th colspan="2">
+ {if $preview_id neq $valid->id()}
+ <div style="float: left">
+ {icon name="add"}
+ </div>
+ {/if}
+ Éditer
+ </th>
+ </tr>
+ <tr {if $preview_id neq $valid->id()}style="display: none"{/if} id="edit_{$valid->id()}">
<td colspan="2" class="center">
<td colspan="2" class="center">
- {if $preview_id == $valid->id()}
- <form enctype="multipart/form-data" action="{$platal->pl_self()}#valid{$valid->id()}" method="post">
+ <form enctype="multipart/form-data" action="{$platal->pl_self(0)}/edit/{$valid->id()}#valid{$valid->id()}" method="post">
+ {xsrf_token_field}
<div>
{include file=$valid->editor()}
<input type="hidden" name="uid" value="{$valid->uid}" />
<input type="hidden" name="type" value="{$valid->type}" />
<input type="hidden" name="stamp" value="{$valid->stamp}" />
<br />
<div>
{include file=$valid->editor()}
<input type="hidden" name="uid" value="{$valid->uid}" />
<input type="hidden" name="type" value="{$valid->type}" />
<input type="hidden" name="stamp" value="{$valid->stamp}" />
<br />
- <input type="submit" name="edit" value="
E
diter" />
+ <input type="submit" name="edit" value="
É
diter" />
</div>
</form>
</div>
</form>
- {else}
- <span class="smaller">
- <a href="admin/validate/edit/{$valid->id()}#valid{$valid->id()}">{icon name=page_edit}Editer cette demande avant validation</a>
- </span>
- {/if}
</td>
</tr>
{/if}
</td>
</tr>
{/if}
- <tr><th colspan='2'>Commentaires</th></tr>
+ <tr onclick="toggleField('comment', '{$valid->id()}')" style="cursor: pointer">
+ <th colspan='2'>
+ {if $valid->comments|@count eq 0}
+ <div style="float: left">
+ {icon name="add"}
+ </div>
+ {/if}
+ Commentaires
+ </th>
+ </tr>
{foreach from=$valid->comments item=c}
<tr class="{cycle values="impair,pair"}">
<td class="titre">
{foreach from=$valid->comments item=c}
<tr class="{cycle values="impair,pair"}">
<td class="titre">
@@
-81,9
+104,10
@@
<td>{$c[1]|nl2br}</td>
</tr>
{/foreach}
<td>{$c[1]|nl2br}</td>
</tr>
{/foreach}
- <tr>
+ <tr
{if $valid->comments|@count eq 0}style="display: none"{/if} id="comment_{$valid->id()}"
>
<td colspan='2' class='center'>
<form action="admin/validate" method="post">
<td colspan='2' class='center'>
<form action="admin/validate" method="post">
+ {xsrf_token_field}
<div>
<input type="hidden" name="uid" value="{$valid->uid}" />
<input type="hidden" name="type" value="{$valid->type}" />
<div>
<input type="hidden" name="uid" value="{$valid->uid}" />
<input type="hidden" name="type" value="{$valid->type}" />
@@
-96,22
+120,32
@@
</form>
</td>
</tr>
</form>
</td>
</tr>
- <tr><th colspan='2'>Réponse</th></tr>
<tr>
<tr>
- <td colspan='2' {popup caption="Règles de validation" text=$valid->rules}>
+ <th colspan='2'>
+ {if $preview_id neq $valid->id()}
+ <div style="float: left">
+ {icon name="null"}
+ </div>
+ {/if}
+ Réponse
+ </th>
+ </tr>
+ <tr>
+ <td colspan='2' {popup caption="Règles de validation" text=$valid->ruleText()}>
<form action="admin/validate" method="post">
<form action="admin/validate" method="post">
+ {xsrf_token_field}
<div>
<div>
- Réponse préremplie
:
+ Réponse préremplie
:
<select onchange="this.form.comm.value=this.value">
<option value=""></option>
{foreach from=$valid->answers() item=automatic_answer}
<option value="{$automatic_answer.answer}">{$automatic_answer.title}</option>
{/foreach}
</select>
<select onchange="this.form.comm.value=this.value">
<option value=""></option>
{foreach from=$valid->answers() item=automatic_answer}
<option value="{$automatic_answer.answer}">{$automatic_answer.title}</option>
{/foreach}
</select>
- <a href="admin/validate/answers">{icon name="page_edit" title="
E
diter les réponses automatiques"}</a>
+ <a href="admin/validate/answers">{icon name="page_edit" title="
É
diter les réponses automatiques"}</a>
</div>
<div class='center'>
</div>
<div class='center'>
- Ajouté dans l'email
:<br />
+ Ajouté dans l'email
:<br />
<textarea rows="5" cols="50" name="comm"></textarea><br />
<input type="hidden" name="uid" value="{$valid->uid}" />
<textarea rows="5" cols="50" name="comm"></textarea><br />
<input type="hidden" name="uid" value="{$valid->uid}" />
@@
-141,7
+175,7
@@
{/if}
<p>
{/if}
<p>
- Afficher seulement les validation suivantes
:
+ Afficher seulement les validation suivantes
:
</p>
<form action="admin/validate" method="post">
</p>
<form action="admin/validate" method="post">