Sha256: 210ea62b5b07c70cf86d8adea63ec0181c21ce36352d19201b4617063e83f4cb

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

<script>
<%= select_pane.name %>_array = [
<% select_pane.each do |o| %>
  "<%= o.class.name %>",
<% end %> "" ];
</script>

<table>
  <tr>
    <td>
      <%= select_pane.description %>
    </td>
    <td>
      <%= text_or_select(@edit, 
            :name => "#{select_pane.name}_selected", 
            :values => select_pane, 
            :onchange => "showElement(this.value, #{select_pane.name}_array)") %>
    </td>
  </tr>
</table>

<% select_pane.each do |o| %>
  <div id="<%= o.class.name %>" style="<% if(o.selected?)%>display:block<%else%>display:none<%end%>">
    <%= render_object(o, select_pane.name, @edit) %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
damagecontrol-0.5.0.1392 app/views/project/_select_pane.rhtml
damagecontrol-0.5.0.1393 app/views/project/_select_pane.rhtml
damagecontrol-0.5.0.1391 app/views/project/_select_pane.rhtml
damagecontrol-0.5.0.1404 app/views/project/_select_pane.rhtml