]> git.agnieray.net Git - galette.git/blob - galette/includes/fields_defs/members_fields.php
Add member number; closes #190
[galette.git] / galette / includes / fields_defs / members_fields.php
1 <?php
2
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * Member's table fields declarations
7 *
8 * PHP version 5
9 *
10 * Copyright © 2012-2014 The Galette Team
11 *
12 * This file is part of Galette (http://galette.tuxfamily.org).
13 *
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
26 *
27 * @category Functions
28 * @package Galette
29 *
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31 * @copyright 2012-2014 The Galette Team
32 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
33 * @link http://galette.tuxfamily.org
34 * @since 0.7.2.8 - 2012-12-18
35 */
36
37 use Galette\Entity\FieldsConfig;
38 use Galette\Entity\FieldsCategories;
39
40 $members_fields = array(
41 'id_adh' => array(
42 'label' => _T("Member id:"),
43 'propname' => 'id',
44 'required' => false,
45 'visible' => FieldsConfig::NOBODY,
46 'position' => 0,
47 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY,
48 'list_visible' => true,
49 'list_position' => 0
50 ),
51 'id_statut' => array(
52 'label' => _T("Status:"),
53 'propname' => 'status',
54 'required' => false,
55 'visible' => FieldsConfig::STAFF,
56 'position' => 27,
57 'category' => FieldsCategories::ADH_CATEGORY_GALETTE,
58 'list_visible' => true,
59 'list_position' => 3
60 ),
61 'nom_adh' => array(
62 'label' => _T("Name:"),
63 'propname' => 'name',
64 'required' => true,
65 'visible' => FieldsConfig::USER_WRITE,
66 'position' => 3,
67 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
68 ),
69 'prenom_adh' => array(
70 'label' => _T("First name:"),
71 'propname' => 'surname',
72 'required' => false,
73 'visible' => FieldsConfig::USER_WRITE,
74 'position' => 4,
75 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
76 ),
77 'societe_adh' => array(
78 'label' => _T("Company:"),
79 'propname' => 'company_name',
80 'required' => false,
81 'visible' => FieldsConfig::USER_WRITE,
82 'position' => 5,
83 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
84 ),
85 'pseudo_adh' => array(
86 'label' => _T("Nickname:"),
87 'propname' => 'nickname',
88 'required' => false,
89 'visible' => FieldsConfig::USER_WRITE,
90 'position' => 6,
91 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY,
92 'list_visible' => true,
93 'list_position' => 2
94 ),
95 'titre_adh' => array(
96 'label' => _T("Title:"),
97 'propname' => 'title',
98 'required' => false,
99 'visible' => FieldsConfig::USER_WRITE,
100 'position' => 1,
101 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
102 ),
103 'ddn_adh' => array(
104 'label' => _T("Birth date:"),
105 'propname' => 'birthdate',
106 'required' => false,
107 'visible' => FieldsConfig::USER_WRITE,
108 'position' => 7,
109 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
110 ),
111 'sexe_adh' => array(
112 'label' => _T("Gender:"),
113 'propname' => 'gender',
114 'required' => false,
115 'visible' => FieldsConfig::USER_WRITE,
116 'position' => 2,
117 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
118 ),
119 'adresse_adh' => array(
120 'label' => _T("Address:"),
121 'propname' => 'address',
122 'required' => true,
123 'visible' => FieldsConfig::USER_WRITE,
124 'position' => 11,
125 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
126 ),
127 /** TODO remove second address... */
128 'adresse2_adh' => array(
129 'label' => _T("Address (continuation)"),
130 'propname' => 'address_continuation',
131 'required' => false,
132 'visible' => FieldsConfig::USER_WRITE,
133 'position' => 12,
134 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
135 ),
136 'cp_adh' => array(
137 'label' => _T("Zip Code:"),
138 'propname' => 'zipcode',
139 'required' => true,
140 'visible' => FieldsConfig::USER_WRITE,
141 'position' => 13,
142 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
143 ),
144 'ville_adh' => array(
145 'label' => _T("City:"),
146 'propname' => 'town',
147 'required' => true,
148 'visible' => FieldsConfig::USER_WRITE,
149 'position' => 14,
150 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
151 ),
152 'pays_adh' => array(
153 'label' => _T("Country:"),
154 'propname' => 'country',
155 'required' => false,
156 'visible' => FieldsConfig::USER_WRITE,
157 'position' => 15,
158 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
159 ),
160 'tel_adh' => array(
161 'label' => _T("Phone:"),
162 'propname' => 'phone',
163 'required' => false,
164 'visible' => FieldsConfig::USER_WRITE,
165 'position' => 16,
166 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
167 ),
168 'gsm_adh' => array(
169 'label' => _T("Mobile phone:"),
170 'propname' => 'gsm',
171 'required' => false,
172 'visible' => FieldsConfig::USER_WRITE,
173 'position' => 17,
174 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
175 ),
176 'email_adh' => array(
177 'label' => _T("E-Mail:"),
178 'propname' => 'email',
179 'required' => false,
180 'visible' => FieldsConfig::USER_WRITE,
181 'position' => 18,
182 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
183 ),
184 'info_adh' => array(
185 'label' => _T("Other information (admin):"),
186 'propname' => 'others_infos_admin',
187 'required' => false,
188 'visible' => FieldsConfig::STAFF,
189 'position' => 33,
190 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
191 ),
192 'info_public_adh' => array(
193 'label' => _T("Other information:"),
194 'propname' => 'others_infos',
195 'required' => false,
196 'visible' => FieldsConfig::USER_WRITE,
197 'position' => 34,
198 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
199 ),
200 'prof_adh' => array(
201 'label' => _T("Profession:"),
202 'propname' => 'job',
203 'required' => false,
204 'visible' => FieldsConfig::USER_WRITE,
205 'position' => 9,
206 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
207 ),
208 'login_adh' => array(
209 'label' => _T("Username:"),
210 'propname' => 'login',
211 'required' => true,
212 'visible' => FieldsConfig::USER_WRITE,
213 'position' => 30,
214 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
215 ),
216 'mdp_adh' => array(
217 'label' => _T("Password:"),
218 'propname' => 'password',
219 'required' => true,
220 'visible' => FieldsConfig::USER_WRITE,
221 'position' => 31,
222 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
223 ),
224 'date_crea_adh' => array(
225 'label' => _T("Creation date:"),
226 'propname' => 'creation_date',
227 'required' => false,
228 'visible' => FieldsConfig::STAFF,
229 'position' => 32,
230 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
231 ),
232 'date_modif_adh' => array(
233 'label' => _T("Modification date:"),
234 'propname' => 'modification_date',
235 'required' => false,
236 'visible' => FieldsConfig::USER_WRITE,
237 'position' => 35,
238 'category' => FieldsCategories::ADH_CATEGORY_GALETTE,
239 'list_visible' => true,
240 'list_position' => 5
241 ),
242 'activite_adh' => array(
243 'label' => _T("Account:"),
244 'propname' => 'active',
245 'required' => false,
246 'visible' => FieldsConfig::STAFF,
247 'position' => 26,
248 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
249 ),
250 'bool_admin_adh' => array(
251 'label' => _T("Galette Admin:"),
252 'propname' => 'admin',
253 'required' => false,
254 'visible' => FieldsConfig::ADMIN,
255 'position' => 28,
256 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
257 ),
258 'bool_exempt_adh' => array(
259 'label' => _T("Freed of dues:"),
260 'propname' => 'due_free',
261 'required' => false,
262 'visible' => FieldsConfig::STAFF,
263 'position' => 29,
264 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
265 ),
266 'bool_display_info' => array(
267 'label' => _T("Be visible in the members list:"),
268 'propname' => 'appears_in_list',
269 'required' => false,
270 'visible' => FieldsConfig::USER_WRITE,
271 'position' => 25,
272 'category' => FieldsCategories::ADH_CATEGORY_GALETTE
273 ),
274 'date_echeance' => array(
275 'label' => _T("Due date:"),
276 'propname' => 'due_date',
277 'required' => false,
278 'visible' => FieldsConfig::STAFF,
279 'position' => 36,
280 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
281 ),
282 'pref_lang' => array(
283 'label' => _T("Language:"),
284 'propname' => 'language',
285 'required' => false,
286 'visible' => FieldsConfig::USER_WRITE,
287 'position' => 10,
288 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
289 ),
290 'lieu_naissance' => array(
291 'label' => _T("Birthplace:"),
292 'propname' => 'birth_place',
293 'required' => false,
294 'visible' => FieldsConfig::USER_WRITE,
295 'position' => 8,
296 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
297 ),
298 'gpgid' => array(
299 'label' => _T("Id GNUpg (GPG):"),
300 'propname' => 'gnupgid',
301 'required' => false,
302 'visible' => FieldsConfig::USER_WRITE,
303 'position' => 23,
304 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
305 ),
306 'fingerprint' => array(
307 'label' => _T("fingerprint:"),
308 'propname' => 'fingerprint',
309 'required' => false,
310 'visible' => FieldsConfig::NOBODY,
311 'position' => 24,
312 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
313 ),
314 'parent_id' => array(
315 'label' => _T("Parent:"),
316 'propname' => 'parent',
317 'required' => false,
318 'visible' => FieldsConfig::NOBODY,
319 'position' => 25,
320 'category' => FieldsCategories::ADH_CATEGORY_CONTACT
321 ),
322 'num_adh' => array(
323 'label' => _T("Member number:"),
324 'propname' => 'number',
325 'required' => false,
326 'visible' => FieldsConfig::MANAGER,
327 'position' => 26,
328 'category' => FieldsCategories::ADH_CATEGORY_IDENTITY
329 ),
330 'list_adh_name' => array(
331 'label' => _T("Name"),
332 'propname' => 'sname',
333 'required' => false,
334 'visible' => FieldsConfig::NOBODY,
335 'position' => -1, //not a db field
336 'category' => FieldsCategories::ADH_CATEGORY_GALETTE,
337 'list_visible' => true,
338 'list_position' => 1
339 ),
340 'list_adh_contribstatus' => array(
341 'label' => _T("State of dues"),
342 'propname' => 'contribstatus',
343 'required' => false,
344 'visible' => FieldsConfig::NOBODY,
345 'position' => -1, //not a db field
346 'category' => FieldsCategories::ADH_CATEGORY_GALETTE,
347 'list_visible' => true,
348 'list_position' => 4
349 )
350 );