Sha256: a9aa60ce1107bc1db51f1b0f00b4ad0c002d9ed2030e7175bfca90bd25a27701
Contents?: true
Size: 934 Bytes
Versions: 5
Compression:
Stored size: 934 Bytes
Contents
<%= form_for(@banner) do |f| %> <% if @banner.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@banner.errors.count, "error") %> prohibited this banner from being saved:</h2> <ul> <% @banner.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :url %><br> <%= f.text_field :url %> </div> <div class="field"> <%= f.label :file %><br> <%- if f.object.file_name -%> <%= image_tag f.object.src %><br> <%= f.object.file_name %><br> <%- end -%> <%= f.file_field :file %> </div> <div class="field"> <%= f.label :active_from %><br> <%= f.datetime_select :active_from %> </div> <div class="field"> <%= f.label :active_until %><br> <%= f.datetime_select :active_until %> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems