diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-04-03 11:07:55 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-04-03 11:07:55 +0200 |
commit | 652e5c07c3dd2e7d825af0713c3d96c54ba56101 (patch) | |
tree | ccb7d4f888d146d91bb1978f5fd0409618ab336e | |
parent | 6b221c292ced0dc0760c5999c8005f7e3c65d64f (diff) | |
download | Ishtar-652e5c07c3dd2e7d825af0713c3d96c54ba56101.tar.bz2 Ishtar-652e5c07c3dd2e7d825af0713c3d96c54ba56101.zip |
Can modify operation code (refs #1730)
-rw-r--r-- | archaeological_operations/forms.py | 3 | ||||
-rw-r--r-- | archaeological_operations/views.py | 2 | ||||
-rw-r--r-- | 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 <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2010-2014 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> # 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 { |