Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created July 18, 2013 13:05
Show Gist options
  • Save ruprict/6029124 to your computer and use it in GitHub Desktop.
Save ruprict/6029124 to your computer and use it in GitHub Desktop.
<div>
<%= label_tag "sanctioning_request[on_behalf_of][name]", I18n.t("forms.fields.name"), {"ng-model" => "sanctioningRequest.on_behalf_of.name"} %>
<%= text_field_tag "sanctioning_request_on_behalf_of_name",nil, {"name" => "sanctioning_request[on_behalf_of][name]", "ng-model" => "sanctioningRequest.on_behalf_of.name", "required" => "required"} %>
<% if @errors && @errors[:on_behalf_of_name] %>
<small class="error"><%= @errors[:on_behalf_of_name].first %></small>
<% end %>
</div>
<div>
<%= label_tag "sanctioning_request[on_behalf_of][phone_number]", I18n.t("forms.fields.phone"), {"ng-model" => "sanctioningRequest.on_behalf_of.phone_number"} %>
<%= text_field_tag "sanctioning_request_on_behalf_of_phone_number",nil, {"name" => "sanctioning_request[on_behalf_of][phone_number]", "ng-model" => "sanctioningRequest.on_behalf_of.phone_number", "required" => "required"} %>
<% if @errors && @errors[:phone_number] %>
<small class="error"><%= @errors[:phone_number].first %></small>
<% end %>
</div>
<div>
<%= label_tag "sanctioning_request[on_behalf_of][url]", I18n.t("forms.fields.website"), {"ng-model" => "sanctioningRequest.on_behalf_of.url"} %>
<%= text_field_tag "sanctioning_request_on_behalf_of_url",nil, {"name" => "sanctioning_request[on_behalf_of][url]", "ng-model" => "sanctioningRequest.on_behalf_of.url", "required" => "required"} %>
<% if @errors && @errors[:url] %>
<small class="error"><%= @errors[:url].first %></small>
<% end %>
</div>
<div>
<%= label_tag "sanctioning_request[target][address]", I18n.t("forms.fields.address"), {"ng-model" => "sanctioningRequest.target.address"} %>
<%= text_field_tag "sanctioning_request_target_address",nil, {"name" => "sanctioning_request[target][address]", "ng-model" => "sanctioningRequest.target.address", "required" => "required"} %>
<% if @errors && @errors[:address] %>
<small class="error"><%= @errors[:address].first %></small>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment