@@ -5839,37 +5839,38 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
5839
5839
"</span>\n" +
5840
5840
"</p>\n" +
5841
5841
"<div class=\"form-group\">\n" +
5842
- "<label class=\"sr-only\" ng-attr-for=\"{{id}}-add-arg\">Add {{type || 'Command'}}</label>\n" +
5842
+ "<label class=\"sr-only\" ng-attr-for=\"{{id}}-add-arg\">\n" +
5843
+ "<span ng-if=\"placeholder\">{{placeholder}}</span>\n" +
5844
+ "<span ng-if=\"!placeholder\">Add argument</span>\n" +
5845
+ "</label>\n" +
5843
5846
"\n" +
5844
5847
"<span ng-show=\"!multiline\" class=\"input-group\">\n" +
5845
- "<input type=\"text\" ng-model=\"nextArg\" name=\"nextArg\" ng-attr-id=\"{{id}}-add-arg\" on-enter=\"addArg()\" placeholder=\"Add {{type || 'command '}}\" class=\"form-control\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\">\n" +
5848
+ "<input type=\"text\" ng-model=\"nextArg\" name=\"nextArg\" ng-attr-id=\"{{id}}-add-arg\" on-enter=\"addArg()\" ng-attr- placeholder=\"{{placeholder || 'Add argument '}}\" class=\"form-control\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\">\n" +
5846
5849
"<span class=\"input-group-btn\">\n" +
5847
5850
"\n" +
5848
5851
"<a class=\"btn btn-default\" href=\"\" ng-click=\"addArg()\" ng-disabled=\"!nextArg\" ng-attr-aria-disabled=\"!nextArg\" role=\"button\">Add</a>\n" +
5849
5852
"</span>\n" +
5850
5853
"</span>\n" +
5851
5854
"\n" +
5852
5855
"<span ng-show=\"multiline\">\n" +
5853
- "<textarea ng-model=\"nextArg\" name=\"nextArg\" rows=\"10\" ng-attr-id=\"{{id}}-add-arg\" placeholder=\"Add {{type || 'command '}}\" class=\"form-control\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\">\n" +
5856
+ "<textarea ng-model=\"nextArg\" name=\"nextArg\" rows=\"10\" ng-attr-id=\"{{id}}-add-arg\" ng-attr- placeholder=\"{{placeholder || 'Add argument '}}\" class=\"form-control\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\">\n" +
5854
5857
" </textarea>\n" +
5855
5858
"<div class=\"mar-top-md\">\n" +
5856
5859
"<a class=\"btn btn-default\" href=\"\" ng-click=\"addArg()\" ng-disabled=\"!nextArg\" ng-attr-aria-disabled=\"!nextArg\" role=\"button\">Add</a>\n" +
5857
5860
"</div>\n" +
5858
5861
"</span>\n" +
5859
- "</div>\n" +
5860
5862
"<div class=\"help-block\">\n" +
5861
- "<div ng-if=\"!type\">\n" +
5862
- "Enter the command to run inside the container. The command is considered successful if its exit code is 0. Drag and drop command arguments to reorder them.\n" +
5863
- "</div>\n" +
5864
- "<div ng-if=\"type\">\n" +
5865
- "Enter the arguments that will be appended to the container's command. Drag and drop arguments to reorder them.\n" +
5863
+ "<span ng-if=\"description\">{{description}}</span>\n" +
5864
+ "<span ng-if=\"!description\">\n" +
5865
+ "Enter the command to run inside the container. The command is considered successful if its exit code is 0. Drag and drop to reorder arguments.\n" +
5866
+ "</span>\n" +
5866
5867
"</div>\n" +
5867
5868
"</div>\n" +
5868
5869
"<div class=\"mar-top-sm mar-bottom-md\">\n" +
5869
5870
"<a href=\"\" ng-click=\"multiline = !multiline\">Switch to {{multiline ? 'Single-line' : 'Multiline'}} Editor</a>\n" +
5870
5871
"<span ng-show=\"input.args.length\">\n" +
5871
5872
"<span class=\"action-divider\">|</span>\n" +
5872
- "<a href=\"\" ng-click=\"clear()\" role=\"button\">Clear {{ (type || 'Command') | sentenceCase }}</a>\n" +
5873
+ "<a href=\"\" ng-click=\"clear()\" role=\"button\">Clear {{ (type || 'Command') | upperFirst }}</a>\n" +
5873
5874
"</span>\n" +
5874
5875
"</div>\n" +
5875
5876
"\n" +
@@ -9356,12 +9357,12 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
9356
9357
"</div>\n" +
9357
9358
"<div ng-if=\"buildHookSelection.type.id === 'command' || buildHookSelection.type.id === 'commandArgs'\">\n" +
9358
9359
"<h4>Command</h4>\n" +
9359
- "<edit-command args=\"updatedBuildConfig.spec.postCommit.command\" is-required=\"true\">\n" +
9360
+ "<edit-command args=\"updatedBuildConfig.spec.postCommit.command\" placeholder=\"Add to command\" is-required=\"true\">\n" +
9360
9361
"</edit-command>\n" +
9361
9362
"</div>\n" +
9362
9363
"<div ng-if=\"buildHookSelection.type.id === 'args' || buildHookSelection.type.id === 'commandArgs' || buildHookSelection.type.id === 'scriptArgs' \">\n" +
9363
9364
"<h4>Arguments</h4>\n" +
9364
- "<edit-command args=\"updatedBuildConfig.spec.postCommit.args\" type=\"argument \" is-required=\"true\">\n" +
9365
+ "<edit-command args=\"updatedBuildConfig.spec.postCommit.args\" type=\"arguments\" description=\"getArgumentsDescription() \" is-required=\"true\">\n" +
9365
9366
"</edit-command>\n" +
9366
9367
"</div>\n" +
9367
9368
"</fieldset>\n" +
0 commit comments