fluentd-ui/app/views/shared/vue/_aws_credential.html.haml
Kenji Okimoto 93e2acb316 Add separated setting view for AWS credentials
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-18 11:50:53 +09:00

23 lines
932 B
Plaintext

= render "shared/vue/config_field"
%script{type: "text/x-template", id: "vue-aws-credential"}
.form-group.card.bg-light.mb-3
.card-body
%label{"for" => "aws-credential"}
AWS credential
%select{"id" => "aws-credential",
"class" => "form-control mb-3",
"v-model" => "credentialType",
"v-on:change" => "onChange"}
%option{"v-for" => "option in options",
"v-bind:value" => "option",
"v-bind:selected" => "credentialType===option"}
{{ option }}
%template{"v-for" => "option in credentialOptions"}
%template{"v-if" => 'credentialType==="simple"'}
%config-field{"v-bind:plugin-type" => '"output"',
"v-bind:option" => "option"}
%template(v-else)
%config-field{"v-bind:plugin-type" => 'credentialType',
"v-bind:option" => "option"}