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.4.6 app/views/admin/photos/edit.html.erb
fullstack-cms-0.4.5 app/views/admin/photos/edit.html.erb
fullstack-cms-0.4.4 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.8.fix app/views/admin/photos/edit.html.erb
fullstack-cms-0.2.32.fix app/views/admin/photos/edit.html.erb
fullstack-cms-0.4.3 app/views/admin/photos/edit.html.erb
fullstack-cms-0.4.2 app/views/admin/photos/edit.html.erb
fullstack-cms-0.4.1 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.39 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.38 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.37 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.36 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.35 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.34 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.33 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.32 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.31 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.30 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.29 app/views/admin/photos/edit.html.erb
fullstack-cms-0.3.28 app/views/admin/photos/edit.html.erb