From 652e5c07c3dd2e7d825af0713c3d96c54ba56101 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 3 Apr 2014 11:07:55 +0200 Subject: Can modify operation code (refs #1730) --- archaeological_operations/forms.py | 3 --- archaeological_operations/views.py | 2 +- ishtar_common/static/media/style.css | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index f8aafb362..d10019aa8 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -396,9 +396,6 @@ class OperationFormGeneral(forms.Form): class OperationFormModifGeneral(OperationFormGeneral): operation_code = forms.IntegerField(label=_(u"Operation code"), initial=models.Operation.get_available_operation_code) - def __init__(self, *args, **kwargs): - super(OperationFormGeneral, self).__init__(*args, **kwargs) - self.fields['operation_code'].widget.attrs['readonly'] = True class OperationFormPreventive(forms.Form): form_label = _(u"Preventive informations - excavation") diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index b0676b45c..1f698b4e1 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2010-2013 Étienne Loks +# Copyright (C) 2010-2014 Étienne Loks # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as diff --git a/ishtar_common/static/media/style.css b/ishtar_common/static/media/style.css index bbd14dd99..be86d84cb 100644 --- a/ishtar_common/static/media/style.css +++ b/ishtar_common/static/media/style.css @@ -82,6 +82,10 @@ h3{ margin:1em 0 0.5em 0; } +select{ + max-width:550px; +} + /*label{display:block}*/ label:first-letter { -- cgit v1.2.3