Adds address edition in entreprise validation.
[platal.git] / templates / admin / jobs.tpl
CommitLineData
4d336f59
SJ
1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2009 Polytechnique.org *}
4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
23<h1>Entreprises</h1>
24
25{if $jobs}
26<p>
27 Liste des entreprises correspondant à ta recherche&nbsp;:
28 <ul>
29 {foreach from=$jobs item=job}
30 <li>{$job.name}{if $job.acronym} ({$job.acronym}){/if}&nbsp;
31 <a href="admin/jobs/{$job.id}">{icon name="page_edit" title="Éditer"}</a></li>
32 {/foreach}
33 </ul>
34{/if}
35
36{if $selectedJob}
37<form action="admin/jobs/{$selectedJob.id}" method="post">
38{xsrf_token_field}
39 <table class="bicol">
40 <tr>
41 <th colspan="2">Entreprise n° {$selectedJob.id}</th>
42 </tr>
43 <tr>
44 <td>Nom</td>
45 <td><input type="text" name="name" value="{$selectedJob.name}" /></td>
46 </tr>
47 <td>Acronyme</td>
48 <td><input type="text" name="acronym" value="{$selectedJob.acronym}" /></td>
49 </tr>
50 </tr>
51 <td>Page web</td>
52 <td><input type="text" name="url" value="{$selectedJob.url}" /></td>
53 </tr>
54 </tr>
55 <td>Adresse email</td>
56 <td><input type="text" name="email" value="{$selectedJob.email}" /></td>
57 </tr>
58 </tr>
59 <td>Code NAF</td>
60 <td><input type="text" name="NAF_code" value="{$selectedJob.NAF_code}" /></td>
61 </tr>
62 </tr>
63 <td>Code AX</td>
64 <td><input type="text" name="AX_code" value="{$selectedJob.AX_code}" /></td>
65 </tr>
66 </tr>
67 <td>Identifiant de la holding</td>
68 <td><input type="text" name="holdingId" value="{$selectedJob.holdingId}" /></td>
69 </tr>
70 </tr>
71 <td>Nom de la holding</td>
72 <td>{$selectedJob.holdingName}</td>
73 </tr>
74 </tr>
75 <td>Acronyme de la holding</td>
76 <td>{$selectedJob.holdingAcronym}</td>
77 </tr>
78 <tr>
79 <td>Remplacer par l'entreprise n°</td>
80 <td><input type="text" name="newJobId" /></td>
81 </tr>
82 </table>
83 <p>
84 Confirmation du remplacement de cette entreprise&nbsp;:&nbsp;
85 <input type="checkbox" name="change" /><br />
86 <input type="submit" name="edit" value="Éditer" />
87 </p>
88</form>
89{/if}
90
91<form action="" method="get">
92 <p>
93 Nom ou acronyme de l'entreprise&nbsp;:
94 <input type="text" name="job" value="{$askedJob}" /><br />
95 <input type="submit" name="search" value="Rechercher" />
96 </p>
97</form>
98
99{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}