30 lines
708 B
Plaintext
30 lines
708 B
Plaintext
|
<%= form_for(@client) do |f| %>
|
||
|
<% if @client.errors.any? %>
|
||
|
<div id="error_explanation">
|
||
|
<h2><%= pluralize(@client.errors.count, "error") %> prohibited this client from being saved:</h2>
|
||
|
|
||
|
<ul>
|
||
|
<% @client.errors.full_messages.each do |msg| %>
|
||
|
<li><%= msg %></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
|
||
|
<div class="field">
|
||
|
<%= f.label :site_name %><br>
|
||
|
<%= f.text_field :site_name %>
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<%= f.label :site_token %><br>
|
||
|
<%= f.text_field :site_token %>
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<%= f.label :site_id %><br>
|
||
|
<%= f.text_field :site_id %>
|
||
|
</div>
|
||
|
<div class="actions">
|
||
|
<%= f.submit %>
|
||
|
</div>
|
||
|
<% end %>
|