diff --git a/gears/carto_gears_api/app/views/shared/form/_input_text.html.erb b/gears/carto_gears_api/app/views/shared/form/_input_text.html.erb new file mode 100644 index 0000000000..eef1da9c3b --- /dev/null +++ b/gears/carto_gears_api/app/views/shared/form/_input_text.html.erb @@ -0,0 +1,3 @@ +<%-# @param form [ActionView::Helpers::FormBuilder] Current form -%> +<%-# @param field [Symbol] Model attribute for the field -%> +<%= form.text_field field, :class => "CDB-InputText CDB-Text FormAccount-input FormAccount-input--med" %> diff --git a/gears/carto_gears_api/app/views/shared/form/_label.html.erb b/gears/carto_gears_api/app/views/shared/form/_label.html.erb new file mode 100644 index 0000000000..765f09abf4 --- /dev/null +++ b/gears/carto_gears_api/app/views/shared/form/_label.html.erb @@ -0,0 +1,4 @@ +<%-# @param text [String] Text for the label -%> +
+ +
diff --git a/gears/carto_gears_api/app/views/shared/form/_row.html.erb b/gears/carto_gears_api/app/views/shared/form/_row.html.erb new file mode 100644 index 0000000000..d31bdece99 --- /dev/null +++ b/gears/carto_gears_api/app/views/shared/form/_row.html.erb @@ -0,0 +1,3 @@ +
+ <%= yield %> +
diff --git a/gears/carto_gears_api/app/views/shared/form/_row_data.html.erb b/gears/carto_gears_api/app/views/shared/form/_row_data.html.erb new file mode 100644 index 0000000000..2f78bced28 --- /dev/null +++ b/gears/carto_gears_api/app/views/shared/form/_row_data.html.erb @@ -0,0 +1,3 @@ +
+ <%= yield %> +
diff --git a/gears/carto_gears_api/app/views/shared/form/_submit_button.html.erb b/gears/carto_gears_api/app/views/shared/form/_submit_button.html.erb new file mode 100644 index 0000000000..ac555820f1 --- /dev/null +++ b/gears/carto_gears_api/app/views/shared/form/_submit_button.html.erb @@ -0,0 +1,6 @@ +<%-# @param form [ActionView::Helpers::FormBuilder] Current form -%> +<%-# @param text [String] Text for the button -%> +<%= button_tag(class: "CDB-Button CDB-Button--primary") do %> + <%= text %> +<% end %> +