|
|
|
@ -177,4 +177,10 @@ class EditOrderSchema(CSRFSchema):
@@ -177,4 +177,10 @@ class EditOrderSchema(CSRFSchema):
|
|
|
|
|
'css_class': 'form-horizontal' |
|
|
|
|
} |
|
|
|
|
settings.update(override) |
|
|
|
|
return super().as_form(request, **settings) |
|
|
|
|
form = super().as_form(request, **settings) |
|
|
|
|
if not 'role:purchaser' in request.user.role_principals: |
|
|
|
|
form['order_information']['status'].widget = \ |
|
|
|
|
deform.widget.TextInputWidget( |
|
|
|
|
template='textinput_disabled.pt' |
|
|
|
|
) |
|
|
|
|
return form |
|
|
|
|