app/views/arcadex/tokens/_form.html.erb in arcadex-1.0.4 vs app/views/arcadex/tokens/_form.html.erb in arcadex-1.1.0
- old
+ new
@@ -2,27 +2,43 @@
<% if @token.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@token.errors.count, "error") %> prohibited this token from being saved:</h2>
<ul>
- <% @token.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
+ <% @token.errors.full_messages.each do |message| %>
+ <li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :imageable_id %><br>
- <%= f.text_field :imageable_id %>
+ <%= f.number_field :imageable_id %>
</div>
<div class="field">
<%= f.label :imageable_type %><br>
<%= f.text_field :imageable_type %>
</div>
<div class="field">
<%= f.label :auth_token %><br>
<%= f.text_field :auth_token %>
+ </div>
+ <div class="field">
+ <%= f.label :first_ip_address %><br>
+ <%= f.text_field :first_ip_address %>
+ </div>
+ <div class="field">
+ <%= f.label :current_ip_address %><br>
+ <%= f.text_field :current_ip_address %>
+ </div>
+ <div class="field">
+ <%= f.label :times_used %><br>
+ <%= f.number_field :times_used %>
+ </div>
+ <div class="field">
+ <%= f.label :expiration_minutes %><br>
+ <%= f.number_field :expiration_minutes %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>