Sha256: b926517076006dd35f4c1bda257387dc4160820a4185982b7b841a77cd27c892

Contents?: true

Size: 1.24 KB

Versions: 4

Compression:

Stored size: 1.24 KB

Contents

<%
# WontoMedia - a wontology web application
# Copyright (C) 2011 - Glen E. Ivey
#    www.wontology.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version
# 3 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program in the file COPYING and/or LICENSE.  If not,
# see "http://www.gnu.org/licenses/".
%>

<div id='inline-add-<%= id -%>-link'>
  <div style='font-size: 70%;'>
    <%= link_to_function 'Add new',
          "$('inline-add-#{id}-link').style.display = 'none'; " +
          "$('inline-add-#{id}-form').style.display = 'block';" +
          "$('object-item-#{id}').style.listStyleType = 'circle';"
     %>
    <script type='text/javascript'>
      $('object-item-<%= id -%>').style.listStyleType = 'none';
    </script>
  </div>
</div>
<div id='inline-add-<%= id -%>-form' style='display: none;'>
  <%= yield %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wontomedia-1.0.7 app/views/items/_inline_add_popopen.html.erb
wontomedia-1.0.6 app/views/items/_inline_add_popopen.html.erb
wontomedia-1.0.5 app/views/items/_inline_add_popopen.html.erb
wontomedia-1.0.4 app/views/items/_inline_add_popopen.html.erb