<%= content_for(:title) do %> Protected embed <% end %> <%= content_for(:header_title) do %> This embed is protected with password <% end %> <%= content_for(:password_form) do %> <%= form_tag(CartoDB.url(self, 'protected_embed_map', params: { :protocol => Rails.env.development? ? 'http' : 'https' }) + '?' + request.query_string, {:method=>'POST',:authenticity_token=>false}) do %>
<%= password_field_tag 'password', params[:password], class: "PublicPage-form--inputText RoundBorders-all CDB-Text CDB-Size-medium is-light u-whiteTextColor #{ flash[:error].present? ? 'is-alert' : ''}", placeholder: 'Insert your password'%> <%- if flash[:error].present? %>

<%= flash[:error] %>

<% end %>
<% end %> <% end %> <%= content_for(:ua) do %> embeds <% end %>