diff --git a/templates/web/prod/actions/Property/index.html.twig b/templates/web/prod/actions/Property/index.html.twig index e03fbf2f11..c8c85b4926 100644 --- a/templates/web/prod/actions/Property/index.html.twig +++ b/templates/web/prod/actions/Property/index.html.twig @@ -114,9 +114,12 @@ {% endfor %} -
+
+
@@ -139,6 +142,7 @@ $("button.submiter", $dialogBox).bind("click", function(){ var $this = $(this); var form = $(this).closest("form"); + var loader = form.find("form-action-loader"); $.ajax({ type: form.attr("method"), @@ -147,13 +151,14 @@ dataType: 'json', beforeSend:function(){ $this.attr("disabled", true); - //@todo add loader + loader.show(); }, success: function(data){ $dialog.Close(); }, complete: function(){ $this.attr("disabled", false); + loader.hide(); } }); }); diff --git a/templates/web/prod/actions/Property/type.html.twig b/templates/web/prod/actions/Property/type.html.twig index 4de2073e07..46fb859d69 100644 --- a/templates/web/prod/actions/Property/type.html.twig +++ b/templates/web/prod/actions/Property/type.html.twig @@ -1,18 +1,18 @@ -{% import 'common/thumbnail.html.twig' as thumbnail %} +{% import "common/thumbnail.html.twig" as thumbnail %} {% set typesEnum = [ - constant('\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_AUDIO'), - constant('\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_VIDEO'), - constant('\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_DOCUMENT'), - constant('\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_FLASH'), - constant('\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_IMAGE') + constant("\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_AUDIO"), + constant("\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_VIDEO"), + constant("\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_DOCUMENT"), + constant("\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_FLASH"), + constant("\\Alchemy\\Phrasea\\Media\\Type\\Type::TYPE_IMAGE") ] %} -
-
- + {% for option in typesEnum %} {% endfor %} @@ -25,12 +25,12 @@