Sha256: 2a720128c6a566de1cbe6cd9abf3fa6e0d28e2d7c3697f57ae19e4315f3998e0
Contents?: true
Size: 1.59 KB
Versions: 8
Compression:
Stored size: 1.59 KB
Contents
<%= semantic_form_for @photo, :url => admin_photo_path(@photo), :remote => true do |f| -%> <div class="modal-header"> <a href="#" class="close" data-dismiss="modal" data-target="#photo-edit-modal">×</a> <h3><%= t('fullstack.admin.edit', :default => "Edit") %> <%= t('fullstack.admin.resources.photo', :default => "Photo") %></h3> </div> <div class="modal-body"> <%= f.inputs do %> <% if @photo.respond_to?(:tags) %> <%= f.input :tag_list, :as => :tags, :autocomplete => admin_tags_path, :input_html => {:id => "edit_tags_for_photo"} %> <script type="text/javascript" charset="utf-8"> $("#edit_tags_for_photo").each(function() { var autocomplete_url, defaultText, taglist; taglist = $(this); autocomplete_url = taglist.data("autocomplete"); defaultText = taglist.data("text") || '<%= t('fullstack.admin.add', :default => "Add") %>'; return taglist.tagsInput({ autocomplete_url: autocomplete_url, autocomplete: { minLength: 3 }, defaultText: defaultText, minChars: 3 }); }); </script> <% end %> <%= f.input :caption %> <% end -%> </div> <div class="modal-footer"> <span class="alert alert-inline hide"></span> <a href="#" class="btn" data-dismiss="modal" data-target="#photo-edit-modal"><%= t('fullstack.admin.cancel', :default => "Cancel") %></a> <button class="btn btn-primary"><%= t('fullstack.admin.update', :default => "Update") %></button> </div> <% end -%>
Version data entries
8 entries across 8 versions & 1 rubygems