diff --git a/muranodashboard/environments/forms.py b/muranodashboard/environments/forms.py index f823d1d57..99c362519 100644 --- a/muranodashboard/environments/forms.py +++ b/muranodashboard/environments/forms.py @@ -45,13 +45,16 @@ def filter_service_by_image_type(service, request): for image in available_images: registered_murano_images.append(image.murano_property.get('type')) - for type in registered_murano_images: - if specified_image_type in type: - filtered = True - message = '' - else: - message = 'Murano image type "{0}" is not registered'.format( - specified_image_type) + if registered_murano_images: + for type in registered_murano_images: + if specified_image_type in type: + filtered = True + break + if not filtered: + message = 'Murano image type "{0}" is not registered'.format( + specified_image_type) + else: + message = '' return filtered, message diff --git a/muranodashboard/service_catalog/forms.py b/muranodashboard/service_catalog/forms.py index d0a382b08..e8af12967 100644 --- a/muranodashboard/service_catalog/forms.py +++ b/muranodashboard/service_catalog/forms.py @@ -103,7 +103,7 @@ class UploadFileForm(UploadFileKnownTypeForm): 'scripts': 'Script for agent execution' } - data_type = forms.ChoiceField(label=_('File data type'), + data_type = forms.ChoiceField(label=_('File Type'), choices=(supported_data_types.items())) def handle(self, request, data): diff --git a/muranodashboard/templates/common/form-fields/data-grid/table_field.html b/muranodashboard/templates/common/form-fields/data-grid/table_field.html index 8946a4e49..4d4817a47 100644 --- a/muranodashboard/templates/common/form-fields/data-grid/table_field.html +++ b/muranodashboard/templates/common/form-fields/data-grid/table_field.html @@ -126,8 +126,9 @@ } $(rowRef).remove(); }); - - $('.data-grid .table_caption').remove() }); -{% endif %} \ No newline at end of file +{% endif %} +