Skip to content

Commit

Permalink
interim save
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderZagaynov committed May 23, 2019
1 parent 36f4bd4 commit 4a38fab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
- prefix ||= "default"
- input_type ||= "text"
- prefix ||= 'default'
- input_type ||= 'text'
- input_name ||= ''
- input_desc ||= ''
- input_emsg ||= ''
- input_id ||= [prefix, input_name].select(&:present?).join("_")

%div
.form-group{"ng-class" => "{'has-error': angularForm.#{input_id}.$invalid}"} |
%label.col-md-2.control-label{"for" => "#{input_id}"}
%label.col-md-2.control-label{"for" => input_id}
= _(input_desc)
.col-md-4
%input.form-control{"type" => input_type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
.col-md-12{"ng-if" => "#{ng_model}" == "emsCommonModel" && "#{ng_model}.emstype == 'ec2'"}
= render :partial => "layouts/angular-bootstrap/endpoints_for_url",
:locals => {:prefix => "default", :ng_model => "#{ng_model}"}
= render :partial => "layouts/angular-bootstrap/endpoints_any_field",
= render :partial => "layouts/angular-bootstrap/any_field",
:locals => {:prefix => "",
:input_name => "service_account",
:input_desc => "Assume role ARN",
Expand Down

0 comments on commit 4a38fab

Please sign in to comment.