diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-01-08 02:08:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-01-08 02:08:23 +0100 |
commit | ccbdbe9e8469e3ae5e9e55a3e86db6f225f4fde8 (patch) | |
tree | 146747bc425feab1bd8de4c6b0f498fb13f8d61a | |
parent | dfe75c20106e95e91dcc94c6311139f0a453851e (diff) | |
download | Ishtar-ccbdbe9e8469e3ae5e9e55a3e86db6f225f4fde8.tar.bz2 Ishtar-ccbdbe9e8469e3ae5e9e55a3e86db6f225f4fde8.zip |
Add a "delete" widget. Update of translation.
-rw-r--r-- | ishtar/furnitures/forms.py | 16 | ||||
-rw-r--r-- | ishtar/furnitures/widgets.py | 11 | ||||
-rw-r--r-- | ishtar/locale/fr/LC_MESSAGES/django.po | 462 | ||||
-rw-r--r-- | static/media/style.css | 27 |
4 files changed, 297 insertions, 219 deletions
diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index e294a00ac..e6a085c07 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -28,7 +28,8 @@ from django.core.exceptions import ObjectDoesNotExist from django.utils.translation import ugettext_lazy as _ from django.template import Context, RequestContext from django.shortcuts import render_to_response -from django.forms.formsets import formset_factory, BaseFormSet +from django.forms.formsets import formset_factory, BaseFormSet, \ + DELETION_FIELD_NAME from django.db.models import Max from django import forms @@ -48,7 +49,10 @@ class FinalForm(forms.Form): form_label = _("Confirm") class FormSet(BaseFormSet): - pass + def add_fields(self, form, index): + super(FormSet, self).add_fields(form, index) + form.fields[DELETION_FIELD_NAME].label = '' + form.fields[DELETION_FIELD_NAME].widget = widgets.DeleteWidget() class Wizard(NamedUrlSessionFormWizard): model = None @@ -204,10 +208,12 @@ class Wizard(NamedUrlSessionFormWizard): def render_next_step(self, request, storage, form, **kwargs): """ - Manage the modify button in formset: next_step = current_step + Manage the modify or delete button in formset: next_step = current_step """ - if request.POST.has_key('formset_modify') and \ - request.POST['formset_modify']: + if request.POST.has_key('formset_modify') \ + and request.POST['formset_modify'] \ + or [key for key in request.POST.keys() + if key.endswith('DELETE') and request.POST[key]]: return self.render(request, storage, form, **kwargs) return super(Wizard, self).render_next_step(request, storage, form, **kwargs) diff --git a/ishtar/furnitures/widgets.py b/ishtar/furnitures/widgets.py index 899d66307..8a60fba61 100644 --- a/ishtar/furnitures/widgets.py +++ b/ishtar/furnitures/widgets.py @@ -19,11 +19,22 @@ # See the file COPYING for details.
from django import forms
+from django.utils.safestring import mark_safe
from django.forms.widgets import flatatt
from django.utils.encoding import smart_unicode
from django.utils.html import escape
from django.utils.simplejson import JSONEncoder
from django.core.urlresolvers import resolve
+from django.utils.translation import ugettext_lazy as _
+
+class DeleteWidget(forms.CheckboxInput):
+ def render(self, name, value, attrs=None):
+ final_attrs = flatatt(self.build_attrs(attrs, name=name,
+ value='1'))
+ output = ['<tr class="delete"><td colspan="2">']
+ output.append(u"<button%s>%s</button>" % (final_attrs, _("Delete")))
+ output.append('</td></tr>')
+ return mark_safe('\n'.join(output))
class JQueryAutoComplete(forms.TextInput):
def __init__(self, source, associated_model=None, options={}, attrs={}):
diff --git a/ishtar/locale/fr/LC_MESSAGES/django.po b/ishtar/locale/fr/LC_MESSAGES/django.po index 72b20e2af..7ee1f6993 100644 --- a/ishtar/locale/fr/LC_MESSAGES/django.po +++ b/ishtar/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: alpha\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-01-04 15:46+0100\n" +"POT-Creation-Date: 2011-01-08 01:58+0100\n" "PO-Revision-Date: 2010-12-09\n" "Last-Translator: Étienne Loks <etienne.loks at peacefrogs net>\n" "Language-Team: \n" @@ -18,73 +18,99 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n>1;\n" -#: furnitures/forms.py:44 +#: furnitures/forms.py:50 msgid "Confirm" msgstr "Confirmation" -#: furnitures/forms.py:141 +#: furnitures/forms.py:63 +msgid "Delete" +msgstr "Supprimer" + +#: furnitures/forms.py:303 msgid "General" msgstr "Général" -#: furnitures/forms.py:144 furnitures/models.py:226 furnitures/models.py:476 +#: furnitures/forms.py:306 furnitures/models.py:231 furnitures/models.py:489 msgid "Person in charge" msgstr "Responsable" -#: furnitures/forms.py:148 furnitures/models.py:220 +#: furnitures/forms.py:310 furnitures/forms.py:362 furnitures/models.py:224 +#: furnitures/models.py:313 msgid "Year" msgstr "Année" -#: furnitures/forms.py:150 furnitures/models.py:222 +#: furnitures/forms.py:312 furnitures/models.py:227 msgid "Internal reference" msgstr "Référence interne" -#: furnitures/forms.py:152 furnitures/models.py:231 +#: furnitures/forms.py:314 furnitures/models.py:236 msgid "Creation date" msgstr "Date de création" -#: furnitures/forms.py:154 furnitures/models.py:224 +#: furnitures/forms.py:316 furnitures/models.py:229 msgid "File type" msgstr "Type de dossier" -#: furnitures/forms.py:156 furnitures/models.py:59 furnitures/models.py:244 -#: furnitures/models.py:286 furnitures/models.py:477 furnitures/models.py:545 +#: furnitures/forms.py:318 furnitures/models.py:71 furnitures/models.py:249 +#: furnitures/models.py:291 furnitures/models.py:490 furnitures/models.py:558 msgid "Comment" msgstr "Commentaire" -#: furnitures/forms.py:160 furnitures/forms.py:162 furnitures/models.py:104 -#: furnitures/models.py:243 +#: furnitures/forms.py:322 furnitures/forms.py:324 furnitures/models.py:116 +#: furnitures/models.py:248 msgid "Address" msgstr "Adresse" -#: furnitures/forms.py:161 furnitures/models.py:240 +#: furnitures/forms.py:323 furnitures/models.py:245 msgid "Total surface" msgstr "Surface totale" -#: furnitures/forms.py:165 furnitures/forms.py:174 furnitures/models.py:577 +#: furnitures/forms.py:327 furnitures/forms.py:351 furnitures/models.py:591 msgid "Towns" msgstr "Communes" -#: furnitures/forms.py:168 furnitures/models.py:109 furnitures/models.py:576 +#: furnitures/forms.py:330 furnitures/forms.py:356 furnitures/models.py:121 +#: furnitures/models.py:315 furnitures/models.py:590 msgid "Town" msgstr "Commune" -#: furnitures/forms.py:177 +#: furnitures/forms.py:347 +msgid "There are identical towns." +msgstr "Il y a des communes identiques." + +#: furnitures/forms.py:354 furnitures/forms.py:400 furnitures/models.py:321 +msgid "Parcels" +msgstr "Parcelles" + +#: furnitures/forms.py:358 furnitures/models.py:316 +msgid "Section" +msgstr "Section" + +#: furnitures/forms.py:360 furnitures/models.py:317 +msgid "Parcel number" +msgstr "Numéro de parcelle" + +#: furnitures/forms.py:395 +msgid "There are identical parcels." +msgstr "Il y a des parcelles identiques." + +#: furnitures/forms.py:403 msgid "Preventive informations" msgstr "Information archéologie préventive" -#: furnitures/forms.py:180 furnitures/models.py:228 +#: furnitures/forms.py:406 furnitures/models.py:233 msgid "General contractor" msgstr "Aménageur" -#: furnitures/forms.py:186 furnitures/models.py:241 +#: furnitures/forms.py:412 furnitures/models.py:246 msgid "Total developed surface" msgstr "Surface totale aménagée" -#: furnitures/forms.py:188 +#: furnitures/forms.py:414 msgid "Saisine type" msgstr "Type de saisine" -#: furnitures/forms.py:190 furnitures/models.py:233 +#: furnitures/forms.py:416 furnitures/models.py:238 msgid "Reception date" msgstr "Date de réception" @@ -104,696 +130,704 @@ msgstr "Modification de dossier" msgid "File deletion" msgstr "Suppression de dossier" -#: furnitures/models.py:43 -msgid "Not a valid person." -msgstr "Personne invalide." +#: furnitures/models.py:44 +msgid "Not a valid item." +msgstr "Élément invalide." + +#: furnitures/models.py:54 +msgid "This item already exist." +msgstr "Cet élément existe déjà." -#: furnitures/models.py:56 furnitures/models.py:93 furnitures/models.py:353 -#: furnitures/models.py:402 furnitures/models.py:426 +#: furnitures/models.py:68 furnitures/models.py:105 furnitures/models.py:364 +#: furnitures/models.py:415 furnitures/models.py:439 msgid "Label" msgstr "Libellé" -#: furnitures/models.py:57 +#: furnitures/models.py:69 msgid "Textual identifier" msgstr "Identifiant textuel" -#: furnitures/models.py:60 +#: furnitures/models.py:72 msgid "Available" msgstr "Disponible" -#: furnitures/models.py:75 +#: furnitures/models.py:87 msgid "Last modifier" msgstr "Dernier modifieur" -#: furnitures/models.py:94 +#: furnitures/models.py:106 msgid "Number" msgstr "Nombre" -#: furnitures/models.py:97 +#: furnitures/models.py:109 msgid "Departement" msgstr "Département" -#: furnitures/models.py:98 +#: furnitures/models.py:110 msgid "Departements" msgstr "Départements" -#: furnitures/models.py:105 +#: furnitures/models.py:117 msgid "Address complement" msgstr "Complément d'adresse" -#: furnitures/models.py:107 +#: furnitures/models.py:119 msgid "Postal code" msgstr "Code postal" -#: furnitures/models.py:110 +#: furnitures/models.py:122 msgid "Country" msgstr "Pays" -#: furnitures/models.py:112 +#: furnitures/models.py:124 msgid "Phone" msgstr "Téléphone" -#: furnitures/models.py:113 +#: furnitures/models.py:125 msgid "Mobile phone" msgstr "Téléphone portable" -#: furnitures/models.py:122 +#: furnitures/models.py:134 msgid "Organization type" msgstr "Type d'organisation" -#: furnitures/models.py:123 +#: furnitures/models.py:135 msgid "Organization types" msgstr "Types d'organisation" -#: furnitures/models.py:126 furnitures/models.py:160 furnitures/models.py:270 -#: furnitures/models.py:472 furnitures/models.py:567 +#: furnitures/models.py:138 furnitures/models.py:168 furnitures/models.py:275 +#: furnitures/models.py:485 furnitures/models.py:580 msgid "Name" msgstr "Nom" -#: furnitures/models.py:128 furnitures/models.py:162 furnitures/models.py:385 +#: furnitures/models.py:140 furnitures/models.py:170 furnitures/models.py:396 msgid "Type" msgstr "Type" -#: furnitures/models.py:131 +#: furnitures/models.py:143 msgid "Organization" msgstr "Organisation" -#: furnitures/models.py:132 +#: furnitures/models.py:144 msgid "Organizations" msgstr "Organisations" -#: furnitures/models.py:134 +#: furnitures/models.py:146 msgid "Can view own Organization" msgstr "Peut voir sa propre Organisation" -#: furnitures/models.py:135 +#: furnitures/models.py:147 msgid "Can add own Organization" msgstr "Peut ajouter sa propre Organisation" -#: furnitures/models.py:136 +#: furnitures/models.py:148 msgid "Can change own Organization" msgstr "Peut changer sa propre Organisation" -#: furnitures/models.py:137 +#: furnitures/models.py:149 msgid "Can delete own Organization" msgstr "Peut supprimer sa propre Organisation" -#: furnitures/models.py:149 +#: furnitures/models.py:157 msgid "Person type" msgstr "Type d'individu" -#: furnitures/models.py:150 +#: furnitures/models.py:158 msgid "Person types" msgstr "Types d'individu" -#: furnitures/models.py:153 +#: furnitures/models.py:161 msgid "Mr" msgstr "M" -#: furnitures/models.py:154 +#: furnitures/models.py:162 msgid "Miss" msgstr "Mlle" -#: furnitures/models.py:155 +#: furnitures/models.py:163 msgid "Mrs" msgstr "Mme" -#: furnitures/models.py:156 +#: furnitures/models.py:164 msgid "Doctor" msgstr "Dr" -#: furnitures/models.py:158 furnitures/models.py:384 +#: furnitures/models.py:166 furnitures/models.py:395 msgid "Title" msgstr "Titre" -#: furnitures/models.py:159 +#: furnitures/models.py:167 msgid "Surname" msgstr "Prénom" -#: furnitures/models.py:161 +#: furnitures/models.py:169 msgid "Email" msgstr "Courriel" -#: furnitures/models.py:164 +#: furnitures/models.py:172 msgid "Is attached to" msgstr "Est rattaché à" -#: furnitures/models.py:165 +#: furnitures/models.py:173 msgid "Is an author?" msgstr "Est un auteur ?" -#: furnitures/models.py:167 +#: furnitures/models.py:175 msgid "In charge of a storage?" msgstr "Est responsable d'un dépôt ?" -#: furnitures/models.py:171 furnitures/models.py:191 furnitures/models.py:598 -#: furnitures/models.py:622 furnitures/models.py:637 +#: furnitures/models.py:179 furnitures/models.py:195 furnitures/models.py:609 +#: furnitures/models.py:633 furnitures/models.py:648 msgid "Person" msgstr "Individu" -#: furnitures/models.py:172 +#: furnitures/models.py:180 msgid "Persons" msgstr "Individus" -#: furnitures/models.py:174 +#: furnitures/models.py:182 msgid "Can view Person" msgstr "Peut voir les Personnes" -#: furnitures/models.py:175 +#: furnitures/models.py:183 msgid "Can view own Person" msgstr "Peut voir sa propre Personne" -#: furnitures/models.py:176 +#: furnitures/models.py:184 msgid "Can add own Person" msgstr "Peut ajouter sa propre Personne" -#: furnitures/models.py:177 +#: furnitures/models.py:185 msgid "Can change own Person" msgstr "Peut changer sa propre Personne" -#: furnitures/models.py:178 +#: furnitures/models.py:186 msgid "Can delete own Person" msgstr "Peut supprimer sa propre Personne" -#: furnitures/models.py:190 +#: furnitures/models.py:194 msgid "User" msgstr "Utilisateur" -#: furnitures/models.py:194 +#: furnitures/models.py:198 msgid "Ishtar user" msgstr "Utilisateur d'Ishtar" -#: furnitures/models.py:195 +#: furnitures/models.py:199 msgid "Ishtar users" msgstr "Utilisateurs d'Ishtar" -#: furnitures/models.py:200 +#: furnitures/models.py:204 msgid "Archaeological file type" msgstr "Type de dossier archéologique" -#: furnitures/models.py:201 +#: furnitures/models.py:205 msgid "Archaeological file types" msgstr "Types de dossier archéologique" -#: furnitures/models.py:214 +#: furnitures/models.py:218 msgid "Delay (in days)" msgstr "Delai (en jours)" -#: furnitures/models.py:229 +#: furnitures/models.py:226 +msgid "Numeric reference" +msgstr "Référence numérique" + +#: furnitures/models.py:234 msgid "Is active?" msgstr "Est actif ?" -#: furnitures/models.py:238 +#: furnitures/models.py:243 msgid "Reference number" msgstr "Référence" -#: furnitures/models.py:248 +#: furnitures/models.py:253 msgid "Archaeological file" msgstr "Dossier archéologique" -#: furnitures/models.py:249 +#: furnitures/models.py:254 msgid "Archaeological files" msgstr "Dossiers archéologiques" -#: furnitures/models.py:251 +#: furnitures/models.py:256 msgid "Can view own Archaelogical file" msgstr "Peut voir son propre Dossier archéologique" -#: furnitures/models.py:252 +#: furnitures/models.py:257 msgid "Can add own Archaelogical file" msgstr "Peut ajouter son propre Dossier archéologique" -#: furnitures/models.py:253 +#: furnitures/models.py:258 msgid "Can change own Archaelogical file" msgstr "Peut changer son propre Dossier archéologique" -#: furnitures/models.py:254 +#: furnitures/models.py:259 msgid "Can delete own Archaelogical file" msgstr "Peut supprimer son propre Dossier archéologique" -#: furnitures/models.py:261 furnitures/models.py:279 +#: furnitures/models.py:266 furnitures/models.py:284 msgid "Operation type" msgstr "Type d'opération" -#: furnitures/models.py:262 +#: furnitures/models.py:267 msgid "Operation types" msgstr "Types d'opération" -#: furnitures/models.py:266 +#: furnitures/models.py:271 msgid "Vestige type" msgstr "Type de vestige" -#: furnitures/models.py:267 +#: furnitures/models.py:272 msgid "Vestige types" msgstr "Types de vestige" -#: furnitures/models.py:271 furnitures/models.py:319 furnitures/models.py:342 -#: furnitures/models.py:456 furnitures/models.py:599 furnitures/models.py:638 +#: furnitures/models.py:276 furnitures/models.py:330 furnitures/models.py:353 +#: furnitures/models.py:469 furnitures/models.py:610 furnitures/models.py:649 msgid "Start date" msgstr "Date de début" -#: furnitures/models.py:272 furnitures/models.py:320 furnitures/models.py:343 -#: furnitures/models.py:457 furnitures/models.py:600 furnitures/models.py:639 +#: furnitures/models.py:277 furnitures/models.py:331 furnitures/models.py:354 +#: furnitures/models.py:470 furnitures/models.py:611 furnitures/models.py:650 msgid "End date" msgstr "Date de fin" -#: furnitures/models.py:274 +#: furnitures/models.py:279 msgid "In charge" msgstr "Responsable" -#: furnitures/models.py:275 +#: furnitures/models.py:280 msgid "Operation code" msgstr "Code de l'opération" -#: furnitures/models.py:277 +#: furnitures/models.py:282 furnitures/models.py:310 msgid "File" msgstr "Dossier" -#: furnitures/models.py:290 furnitures/models.py:305 furnitures/models.py:508 +#: furnitures/models.py:295 furnitures/models.py:312 furnitures/models.py:521 msgid "Operation" msgstr "Opération" -#: furnitures/models.py:291 +#: furnitures/models.py:296 msgid "Operations" msgstr "Opérations" -#: furnitures/models.py:293 +#: furnitures/models.py:298 msgid "Can view own Operation" msgstr "Peut voir sa propre Opération" -#: furnitures/models.py:294 +#: furnitures/models.py:299 msgid "Can add own Operation" msgstr "Peut ajouter sa propre Opération" -#: furnitures/models.py:295 +#: furnitures/models.py:300 msgid "Can change own Operation" msgstr "Peut changer sa propre Opération" -#: furnitures/models.py:296 +#: furnitures/models.py:301 msgid "Can delete own Operation" msgstr "Peut supprimer sa propre Opération" -#: furnitures/models.py:306 -msgid "Section" -msgstr "Section" - -#: furnitures/models.py:307 -msgid "Parcel number" -msgstr "Numéro de parcelle" - -#: furnitures/models.py:310 furnitures/models.py:352 furnitures/models.py:455 +#: furnitures/models.py:320 furnitures/models.py:363 furnitures/models.py:468 msgid "Parcel" msgstr "Parcelle" -#: furnitures/models.py:311 -msgid "Parcels" -msgstr "Parcelles" - -#: furnitures/models.py:318 furnitures/models.py:425 +#: furnitures/models.py:329 furnitures/models.py:438 msgid "Order" msgstr "Ordre" -#: furnitures/models.py:321 +#: furnitures/models.py:332 msgid "Parent period" msgstr "Période parente" -#: furnitures/models.py:324 furnitures/models.py:341 -msgid "Period" -msgstr "Période" +#: furnitures/models.py:335 +msgid "Type Period" +msgstr "Type de période" -#: furnitures/models.py:325 -msgid "Periods" -msgstr "Périodes" +#: furnitures/models.py:336 +msgid "Types Period" +msgstr "Types de période" -#: furnitures/models.py:332 furnitures/models.py:344 +#: furnitures/models.py:343 furnitures/models.py:355 msgid "Dating type" msgstr "Type de datation" -#: furnitures/models.py:333 +#: furnitures/models.py:344 msgid "Dating types" msgstr "Types de datation" -#: furnitures/models.py:337 +#: furnitures/models.py:348 msgid "Dating quality" msgstr "Qualité de datation" -#: furnitures/models.py:338 +#: furnitures/models.py:349 msgid "Dating qualities" msgstr "Qualités de datation" -#: furnitures/models.py:345 +#: furnitures/models.py:352 +msgid "Period" +msgstr "Période" + +#: furnitures/models.py:356 msgid "Quality" msgstr "Qualité" -#: furnitures/models.py:348 furnitures/models.py:437 +#: furnitures/models.py:359 furnitures/models.py:450 msgid "Dating" msgstr "Datation" -#: furnitures/models.py:349 +#: furnitures/models.py:360 msgid "Datings" msgstr "Datations" -#: furnitures/models.py:354 furnitures/models.py:403 furnitures/models.py:427 +#: furnitures/models.py:365 furnitures/models.py:416 furnitures/models.py:440 msgid "Description" msgstr "Description" -#: furnitures/models.py:355 furnitures/models.py:529 +#: furnitures/models.py:366 furnitures/models.py:542 msgid "Lenght" msgstr "Longueur" -#: furnitures/models.py:356 furnitures/models.py:530 +#: furnitures/models.py:367 furnitures/models.py:543 msgid "Width" msgstr "Largeur" -#: furnitures/models.py:357 +#: furnitures/models.py:368 msgid "Thickness" msgstr "Épaisseur" -#: furnitures/models.py:358 +#: furnitures/models.py:369 msgid "Depth" msgstr "Profondeur" -#: furnitures/models.py:360 +#: furnitures/models.py:371 msgid "Interpretation" msgstr "Interpretation" -#: furnitures/models.py:361 +#: furnitures/models.py:372 msgid "Filling" msgstr "Remplissage" -#: furnitures/models.py:366 furnitures/models.py:405 +#: furnitures/models.py:377 furnitures/models.py:418 msgid "Registration Unit" msgstr "Unité d'Enregistrement" -#: furnitures/models.py:367 +#: furnitures/models.py:378 msgid "Registration Units" msgstr "Unités d'Enregistrement" -#: furnitures/models.py:369 +#: furnitures/models.py:380 msgid "Can view own Registration Unit" msgstr "Peut voir sa propre Unité d'Enregistrement" -#: furnitures/models.py:370 +#: furnitures/models.py:381 msgid "Can add own Registration Unit" msgstr "Peut ajouter sa propre Unité d'Enregistrement" -#: furnitures/models.py:371 +#: furnitures/models.py:382 msgid "Can change own Registration Unit" msgstr "Peut changer sa propre Unité d'Enregistrement" -#: furnitures/models.py:372 +#: furnitures/models.py:383 msgid "Can delete own Registration Unit" msgstr "Peut supprimer sa propre Unité d'Enregistrement" -#: furnitures/models.py:380 +#: furnitures/models.py:391 msgid "Source type" msgstr "Type de source" -#: furnitures/models.py:381 +#: furnitures/models.py:392 msgid "Source types" msgstr "Types de source" -#: furnitures/models.py:388 furnitures/models.py:623 +#: furnitures/models.py:399 furnitures/models.py:634 msgid "Source" msgstr "Source" -#: furnitures/models.py:389 +#: furnitures/models.py:400 msgid "Sources" msgstr "Sources" -#: furnitures/models.py:395 +#: furnitures/models.py:406 msgid "Recommendation" msgstr "Recommendation" -#: furnitures/models.py:398 furnitures/models.py:429 +#: furnitures/models.py:408 +msgid "Parent material" +msgstr "Matériau parent" + +#: furnitures/models.py:411 furnitures/models.py:442 msgid "Material type" msgstr "Type de matériaux" -#: furnitures/models.py:399 +#: furnitures/models.py:412 msgid "Material types" msgstr "Types de matériaux" -#: furnitures/models.py:406 +#: furnitures/models.py:419 msgid "Is isolated?" msgstr "Est isolé ?" -#: furnitures/models.py:411 furnitures/models.py:424 +#: furnitures/models.py:424 furnitures/models.py:437 msgid "Base item" msgstr "Élément de base" -#: furnitures/models.py:412 +#: furnitures/models.py:425 msgid "Base items" msgstr "Éléments de base" -#: furnitures/models.py:414 +#: furnitures/models.py:427 msgid "Can view own Base item" msgstr "Peut voir son propre Élément de base" -#: furnitures/models.py:415 +#: furnitures/models.py:428 msgid "Can add own Base item" msgstr "Peut ajouter son propre Élément de base" -#: furnitures/models.py:416 +#: furnitures/models.py:429 msgid "Can change own Base item" msgstr "Peut changer son propre Élément de base" -#: furnitures/models.py:417 +#: furnitures/models.py:430 msgid "Can delete own Base item" msgstr "Peut supprimer son propre Élément de base" -#: furnitures/models.py:430 furnitures/models.py:532 +#: furnitures/models.py:443 furnitures/models.py:545 msgid "Volume" msgstr "Volume" -#: furnitures/models.py:431 +#: furnitures/models.py:444 msgid "Weight" msgstr "Poids" -#: furnitures/models.py:432 +#: furnitures/models.py:445 msgid "Item number" msgstr "Nombre d'éléments" -#: furnitures/models.py:434 +#: furnitures/models.py:447 msgid "Upstream treatment" msgstr "Traitement amont" -#: furnitures/models.py:436 +#: furnitures/models.py:449 msgid "Downstream treatment" msgstr "Traitement aval" -#: furnitures/models.py:441 furnitures/models.py:634 +#: furnitures/models.py:454 furnitures/models.py:645 msgid "Item" msgstr "Élément" -#: furnitures/models.py:442 +#: furnitures/models.py:455 msgid "Items" msgstr "Éléments" -#: furnitures/models.py:444 +#: furnitures/models.py:457 msgid "Can view own Item" msgstr "Peut voir son propre Élément" -#: furnitures/models.py:445 +#: furnitures/models.py:458 msgid "Can add own Item" msgstr "Peut ajouter son propre Élément" -#: furnitures/models.py:446 +#: furnitures/models.py:459 msgid "Can change own Item" msgstr "Peut changer son propre Élément" -#: furnitures/models.py:447 +#: furnitures/models.py:460 msgid "Can delete own Item" msgstr "Peut supprimer son propre Élément" -#: furnitures/models.py:454 +#: furnitures/models.py:467 msgid "Owner" msgstr "Propriétaire" -#: furnitures/models.py:460 +#: furnitures/models.py:473 msgid "Parcel owner" msgstr "Propriétaire de parcelle" -#: furnitures/models.py:461 +#: furnitures/models.py:474 msgid "Parcel owners" msgstr "Propriétaires de parcelle" -#: furnitures/models.py:468 furnitures/models.py:474 +#: furnitures/models.py:481 furnitures/models.py:487 msgid "Warehouse type" msgstr "Type de dépôt" -#: furnitures/models.py:469 +#: furnitures/models.py:482 msgid "Warehouse types" msgstr "Types de dépôts" -#: furnitures/models.py:480 +#: furnitures/models.py:493 msgid "Warehouse" msgstr "Dépôt" -#: furnitures/models.py:481 +#: furnitures/models.py:494 msgid "Warehouses" msgstr "Dépôts" -#: furnitures/models.py:483 +#: furnitures/models.py:496 msgid "Can view own Warehouse" msgstr "Peut voir son propre Dépôt" -#: furnitures/models.py:484 +#: furnitures/models.py:497 msgid "Can add own Warehouse" msgstr "Peut ajouter son propre Dépôt" -#: furnitures/models.py:485 +#: furnitures/models.py:498 msgid "Can change own Warehouse" msgstr "Peut changer son propre Dépôt" -#: furnitures/models.py:486 +#: furnitures/models.py:499 msgid "Can delete own Warehouse" msgstr "Peut supprimer son propre Dépôt" -#: furnitures/models.py:494 furnitures/models.py:498 +#: furnitures/models.py:507 furnitures/models.py:511 msgid "Act type" msgstr "Type d'acte" -#: furnitures/models.py:495 +#: furnitures/models.py:508 msgid "Act types" msgstr "Types d'acte" -#: furnitures/models.py:500 +#: furnitures/models.py:513 msgid "Person in charge of the operation" msgstr "Responsable d'opération" -#: furnitures/models.py:502 +#: furnitures/models.py:515 msgid "Archaeological preventive operator" msgstr "Opérateur d'archéologie préventive" -#: furnitures/models.py:504 +#: furnitures/models.py:517 msgid "Person in charge of the scientific part" msgstr "Responsable scientifique" -#: furnitures/models.py:506 +#: furnitures/models.py:519 msgid "Signatory" msgstr "Signataire" -#: furnitures/models.py:509 +#: furnitures/models.py:522 msgid "Signature date" msgstr "Date de signature" -#: furnitures/models.py:510 +#: furnitures/models.py:523 msgid "Object" msgstr "Objet" -#: furnitures/models.py:516 furnitures/models.py:636 +#: furnitures/models.py:529 furnitures/models.py:647 msgid "Administrative act" msgstr "Acte administratif" -#: furnitures/models.py:517 +#: furnitures/models.py:530 msgid "Administrative acts" msgstr "Actes administratifs" -#: furnitures/models.py:519 +#: furnitures/models.py:532 msgid "Can view own Administrative act" msgstr "Peut voir son propre Acte administratif" -#: furnitures/models.py:520 +#: furnitures/models.py:533 msgid "Can add own Administrative act" msgstr "Peut ajouter son propre Acte administratif" -#: furnitures/models.py:521 +#: furnitures/models.py:534 msgid "Can change own Administrative act" msgstr "Peut changer son propre Acte administratif" -#: furnitures/models.py:522 +#: furnitures/models.py:535 msgid "Can delete own Administrative act" msgstr "Peut supprimer son propre Acte administratif" -#: furnitures/models.py:531 +#: furnitures/models.py:544 msgid "Height" msgstr "Hauteur" -#: furnitures/models.py:533 furnitures/models.py:540 furnitures/models.py:544 +#: furnitures/models.py:546 furnitures/models.py:553 furnitures/models.py:557 msgid "Reference" msgstr "Référence" -#: furnitures/models.py:536 furnitures/models.py:543 +#: furnitures/models.py:549 furnitures/models.py:556 msgid "Container type" msgstr "Type de contenant" -#: furnitures/models.py:537 +#: furnitures/models.py:550 msgid "Container types" msgstr "Types de contenant" -#: furnitures/models.py:541 furnitures/models.py:597 +#: furnitures/models.py:554 furnitures/models.py:608 msgid "Location" msgstr "Lieu" -#: furnitures/models.py:548 furnitures/models.py:594 +#: furnitures/models.py:561 furnitures/models.py:605 msgid "Container" msgstr "Contenant" -#: furnitures/models.py:549 +#: furnitures/models.py:562 msgid "Containers" msgstr "Contenants" -#: furnitures/models.py:568 +#: furnitures/models.py:581 msgid "Surface" msgstr "Surface" -#: furnitures/models.py:569 +#: furnitures/models.py:582 msgid "Localisation" msgstr "Localisation" -#: furnitures/models.py:590 furnitures/models.py:596 +#: furnitures/models.py:599 +msgid "Virtual" +msgstr "Virtuel" + +#: furnitures/models.py:601 furnitures/models.py:607 msgid "Treatment type" msgstr "Type de traitement" -#: furnitures/models.py:591 +#: furnitures/models.py:602 msgid "Treatment types" msgstr "Types de traitements" -#: furnitures/models.py:604 +#: furnitures/models.py:615 msgid "Treatment" msgstr "Traitement" -#: furnitures/models.py:605 +#: furnitures/models.py:616 msgid "Treatments" msgstr "Traitements" -#: furnitures/models.py:607 +#: furnitures/models.py:618 msgid "Can view own Treatment" msgstr "Peut voir son propre Traitement" -#: furnitures/models.py:608 +#: furnitures/models.py:619 msgid "Can add own Treatment" msgstr "Peut ajouter son propre Traitement" -#: furnitures/models.py:609 +#: furnitures/models.py:620 msgid "Can change own Treatment" msgstr "Peut changer son propre Traitement" -#: furnitures/models.py:610 +#: furnitures/models.py:621 msgid "Can delete own Treatment" msgstr "Peut supprimer son propre traitement" -#: furnitures/models.py:618 furnitures/models.py:624 +#: furnitures/models.py:629 furnitures/models.py:635 msgid "Author type" msgstr "Type d'auteur" -#: furnitures/models.py:619 +#: furnitures/models.py:630 msgid "Author types" msgstr "Types d'auteur" -#: furnitures/models.py:627 +#: furnitures/models.py:638 msgid "Author" msgstr "Auteur" -#: furnitures/models.py:628 +#: furnitures/models.py:639 msgid "Authors" msgstr "Auteurs" -#: furnitures/models.py:642 +#: furnitures/models.py:653 msgid "Property" msgstr "Propriété" -#: furnitures/models.py:643 +#: furnitures/models.py:654 msgid "Properties" msgstr "Propriétés" @@ -827,11 +861,11 @@ msgstr "Vous avez entré les informations suivantes :" msgid "Would you like to save them?" msgstr "Voulez vous sauver ces informations ?" -#: templates/confirm_wizard.html:22 templates/default_wizard.html:28 +#: templates/confirm_wizard.html:22 templates/default_wizard.html:29 msgid "Validate" msgstr "Valider" -#: templates/default_wizard.html:19 +#: templates/default_wizard.html:20 msgid "Modify" msgstr "Modifier" diff --git a/static/media/style.css b/static/media/style.css index 8fc5c8001..bb8816bdb 100644 --- a/static/media/style.css +++ b/static/media/style.css @@ -28,6 +28,22 @@ td{ text-align:left; } +button{ + background-color:#EEE; + border:1px solid #AAA; + color:#444; +} + +input[type=submit]{ + background-color:#FFF; + border:1px solid #AAA; + color:#922; +} + +button:hover, input[type=submit]:hover{ + cursor:pointer; +} + .hidden{ display:none; } @@ -163,3 +179,14 @@ div.form .errorlist{ width:300px; } +.delete td{ + text-align:center; + border-bottom:1px solid #CCC; + padding:6px; +} + +.modify td{ + text-align:center; +} + + |