Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created July 18, 2013 13:21
Show Gist options
  • Save ruprict/6029241 to your computer and use it in GitHub Desktop.
Save ruprict/6029241 to your computer and use it in GitHub Desktop.
<%= label_tag "sanctioning_request[issuer][first_name]", I18n.t("forms.fields.first_name"), {"ng-model" => "sanctioningRequest.issuer.first_name"} %>
<%= text_field_tag "sanctioning_request_issuer_first_name",nil, {"name" => "sanctioning_request[issuer][first_name]", "ng-model" => "sanctioningRequest.issuer.first_name", "required" => "required"} %>
<% if @errors && @errors[:issuer_first_name] %>
<small class="error"><%= @errors[:issuer_first_name].first %></small>
<% end %>
</div>
<div>
<%= label_tag "sanctioning_request[issuer][last_name]", I18n.t("forms.fields.last_name"), {"ng-model" => "sanctioningRequest.issuer.last_name"} %>
<%= text_field_tag "sanctioning_request_issuer_last_name",nil, {"name" => "sanctioning_request[issuer][last_name]", "ng-model" => "sanctioningRequest.issuer.last_name", "required" => "required"} %>
<% if @errors && @errors[:issuer_last_name] %>
<small class="error"><%= @errors[:issuer_last_name].last %></small>
<% end %>
</div>
<div>
<%= label_tag "sanctioning_request[issuer][phone_number]", I18n.t("forms.fields.phone"), {"ng-model" => "sanctioningRequest.issuer.phone_number"} %>
<%= text_field_tag "sanctioning_request_issuer_phone_number",nil, {"name" => "sanctioning_request[issuer][phone_number]", "ng-model" => "sanctioningRequest.issuer.phone_number", "required" => "required"} %>
<% if @errors && @errors[:phone_number] %>
<small class="error"><%= @errors[:phone_number].first %></small>
<% end %>
</div>
<div>
<%= label_tag "sanctioning_request[issuer][email]", I18n.t("forms.fields.email"), {"ng-model" => "sanctioningRequest.issuer.email"} %>
<%= text_field_tag "sanctioning_request_issuer_email",nil, {"name" => "sanctioning_request[issuer][email]", "ng-model" => "sanctioningRequest.issuer.email", "required" => "required"} %>
<% if @errors && @errors[:email] %>
<small class="error"><%= @errors[:email].first %></small>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment