2022-01-17 05:53:32 +00:00
< form class = "form-horizontal" style = "margin-top: 15px" >
2017-11-06 08:47:31 +00:00
< div class = "form-group" >
2022-01-17 05:53:32 +00:00
< div class = "col-sm-12" style = "margin-top: 5px" >
2017-11-06 08:47:31 +00:00
< label class = "control-label text-left" > Configs< / label >
2022-07-26 23:20:21 +00:00
< span class = "label label-default interactive" style = "margin-left: 10px" ng-click = "addConfig()" >
< pr-icon icon = "'plus'" mode = "'alt'" feather = "true" > < / pr-icon > add a config
< / span >
2017-11-06 08:47:31 +00:00
< / div >
2021-12-17 12:22:50 +00:00
<!-- info message -->
2022-01-17 05:53:32 +00:00
< div class = "form-group" ng-show = "formValues.Configs.$invalid" style = "margin-bottom: 0px" >
2022-07-25 23:04:01 +00:00
< div class = "col-sm-12 small" style = "padding-left: 35px; padding-top: 20px" >
< pr-icon icon = "'alert-triangle'" mode = "'warning'" feather = "true" > < / pr-icon > {{ formValues.Configs.$error }}
2021-12-17 12:22:50 +00:00
< / div >
< / div >
2022-01-17 05:53:32 +00:00
< div class = "col-sm-12 form-inline" style = "margin-top: 10px" >
< div ng-repeat = "config in formValues.Configs" style = "margin-top: 2px" >
2017-11-06 08:47:31 +00:00
< div class = "input-group col-sm-4 input-group-sm" >
< span class = "input-group-addon" > config< / span >
2021-12-17 12:22:50 +00:00
< select class = "form-control" ng-model = "config.model" ng-change = "checkIfConfigDuplicated()" ng-options = "config.Name for config in availableConfigs | orderBy: 'Name'" >
2017-11-06 08:47:31 +00:00
< option value = "" selected = "selected" > Select a config< / option >
< / select >
< / div >
< div class = "input-group col-sm-4 input-group-sm" >
< span class = "input-group-addon" > Path in container< / span >
< input class = "form-control" ng-model = "config.FileName" placeholder = "e.g. /path/in/container" / >
< / div >
2022-07-26 23:18:06 +00:00
< button class = "btn btn-sm btn-light" type = "button" ng-click = "removeConfig($index)" >
2022-08-03 00:56:29 +00:00
< pr-icon icon = "'trash-2'" feather = "true" class-name = "'icon-secondary icon-md'" > < / pr-icon >
2017-11-06 08:47:31 +00:00
< / button >
< / div >
< / div >
< / div >
< / form >