Sha256: 68d2f7a8d746cd8ad5bfc605486bd4d76e07c5419550d5ed1296a5e426880abb
Contents?: true
Size: 1.58 KB
Versions: 82
Compression:
Stored size: 1.58 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"> $("#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
82 entries across 82 versions & 1 rubygems
Version | Path |
---|---|
fullstack-cms-0.2.2 | app/views/admin/photos/edit.html.erb |
fullstack-cms-0.2.1 | app/views/admin/photos/edit.html.erb |