Commit | Line | Data |
---|---|---|
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 : | |
28 | <ul> | |
29 | {foreach from=$jobs item=job} | |
30 | <li>{$job.name}{if $job.acronym} ({$job.acronym}){/if} | |
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> | |
63596a65 SJ |
79 | <td>Adresse</td> |
80 | <td<textarea cols="30" rows="4" name="address">{$selectedJob.address}</textarea></td> | |
81 | </tr> | |
82 | <tr> | |
83 | <td>Téléphone</td> | |
84 | <td><input type="text" name="tel" value="{$selectedJob.tel}" /></td> | |
85 | </tr> | |
86 | <tr> | |
87 | <td>Fax</td> | |
88 | <td><input type="text" name="fax" value="{$selectedJob.fax}" /></td> | |
89 | </tr> | |
90 | <tr> | |
4d336f59 SJ |
91 | <td>Remplacer par l'entreprise n°</td> |
92 | <td><input type="text" name="newJobId" /></td> | |
93 | </tr> | |
94 | </table> | |
95 | <p> | |
96 | Confirmation du remplacement de cette entreprise : | |
97 | <input type="checkbox" name="change" /><br /> | |
98 | <input type="submit" name="edit" value="Éditer" /> | |
99 | </p> | |
100 | </form> | |
101 | {/if} | |
102 | ||
103 | <form action="" method="get"> | |
104 | <p> | |
105 | Nom ou acronyme de l'entreprise : | |
106 | <input type="text" name="job" value="{$askedJob}" /><br /> | |
107 | <input type="submit" name="search" value="Rechercher" /> | |
108 | </p> | |
109 | </form> | |
110 | ||
111 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |