Sha256: c7f142f4b762978db4887758bd784d8701f9784fb4422b5edc25d0ae4ec4a909

Contents?: true

Size: 2 KB

Versions: 13

Compression:

Stored size: 2 KB

Contents

<td class="adm_icon">
  <%= unless @virtual_class.new_record?
    link_to_remote _('btn_x'), :url => virtual_class_path(@virtual_class), :method => :get
  else
    link_to_function _('btn_x'), "['add_virtual_class', 'add_virtual_class_form'].each(Element.toggle)"
  end %>
</td>
<td class="add" colspan="6">
  <div id='virtual_class_errors'><%= error_messages_for(@virtual_class) %></div>
  <% if @virtual_class.new_record? %>
  <%= form_remote_tag(:url => virtual_classes_path ) %>
  <% else %>
  <%= form_remote_tag(:url => virtual_class_path(@virtual_class), :method => :put ) %>
  <% end %>
  <table cellspacing='0' class='edit_virtual_class'>
    <tr><td class='label'><%= _("name")%>      </td><td><%= text_field('virtual_class', 'name',        :size=>15 ) %></td></tr>
    <tr><td class='label'><%= _("icon")%>      </td><td><%= text_field('virtual_class', 'icon',        :size=>15 ) %></td></tr>
    <tr><td class='label'><%= _("superclass")%></td><td><%= select('virtual_class', 'superclass',  Node.classes_for_form(:without => (@virtual_class.new_record? ? nil : @virtual_class.to_s)), :selected => @virtual_class.superclass.to_s ) %></td></tr>
    <tr><td class='label'><%= _("create group")%></td><td><%= select('virtual_class', 'create_group_id',  visitor.groups.map{|g| [g.name, g.id]} ) %></td></tr>
    <tr><td class='label'><%= _("auto create discussion")%></td><td><%= check_box('virtual_class', 'auto_create_discussion') %></td></tr>
    <tr><td class='label'><%= _("dyn_keys")%></td><td><%= text_field('virtual_class', 'dyn_keys') %></td></tr>
    <tr><td colspan='2'><p class='btn_validate'><input type='submit' value='<%= _('validate') %>'/></p></td></tr>
  </table>
  </form>
  <% if false && !@virtual_class.new_record? -%>
  <%= form_remote_tag(:url => virtual_class_path(@virtual_class), :method => :delete, :confirm => _('Are you sure you want to destroy this virtual class ?') ) %>
  <p class='destroy'><%= _('destroy virtual class') %> <input type='submit' value='<%= _('destroy') %>'></p>
  </form>
  <% end -%>
</td>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zena-0.16.9 app/views/virtual_classes/_form.erb
zena-0.16.8 app/views/virtual_classes/_form.erb
zena-0.16.7 app/views/virtual_classes/_form.erb
zena-0.16.6 app/views/virtual_classes/_form.erb
zena-0.16.5 app/views/virtual_classes/_form.erb
zena-0.16.4 app/views/virtual_classes/_form.erb
zena-0.16.3 app/views/virtual_classes/_form.erb
zena-0.16.2 app/views/virtual_classes/_form.erb
zena-0.16.1 app/views/virtual_classes/_form.erb
zena-0.16.0 app/views/virtual_classes/_form.erb
zena-0.15.2 app/views/virtual_classes/_form.erb
zena-0.15.1 app/views/virtual_classes/_form.erb
zena-0.15.0 app/views/virtual_classes/_form.erb