Sha256: ccfb5cb190dbffaee4fb7d2aa2a3e3c4096879dd4ce4eef69e6ba8f139b991f6

Contents?: true

Size: 1.62 KB

Versions: 17

Compression:

Stored size: 1.62 KB

Contents

<div class='drive' id='groups'>
  <% if @node.can_drive?
    inherit_modes = [[_('inherit'),1],[_('custom'),0]]
  else
    inherit_modes = nil
  end
  groups_list = [0] + form_groups.map{|g| g[1]} %>
  <div id='groups_errors' class='errors'></div>
  <ul>
  <li class='readers'><%= readers_for(@node) %></li>
  <% if inherit_modes %>
  <%= form_remote_tag(:url => node_path(@node[:zip]), :html => { :method => :put, :rnd => rnd } ) %>
    <div class='hidden'><input type='hidden' name='drive' value='groups'/></div>
    <li><label><%= _('mode') %></label><%= select('node', 'inherit', inherit_modes, {}, {:onchange=>"Zena.update_rwp(this.value,'#{groups_list.index(@node.ref[:rgroup_id])}','#{groups_list.index(@node.ref[:wgroup_id])}','#{groups_list.index(@node.ref[:dgroup_id])}', '#{form_skins.index(@node.ref[:skin])}'); return false;"}) %></li>
    <li><label><%= _('publishers') %></label><%= select('node', 'dgroup_id', form_groups, { :include_blank => true }, {:disabled=>(@node[:inherit] != 0)}) %></li>
    <li><label><%= _('writers') %></label><%= select('node', 'wgroup_id',    form_groups, { :include_blank => true }, {:disabled=>(@node[:inherit] != 0)}) %></li>
    <li><label><%= _('readers') %></label><%= select('node', 'rgroup_id',    form_groups, { :include_blank => true }, {:disabled=>(@node[:inherit] != 0)}) %></li>
    <li><label><%= _('skin') %></label><%= select('node',    'skin_id',      form_skins, {:selected => @node.skin_zip}, {:disabled=>(@node[:inherit] == 1)}) %></li>
    <li class='submit'><%= submit_tag _('change') %></li>
  </form>
  <% else %>
  <li><%= _('rights cannot be changed') %></li>
  <% end %>
  </ul>
</div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
zena-1.2.8 app/views/nodes/_groups.rhtml
zena-1.2.7 app/views/nodes/_groups.rhtml
zena-1.2.6 app/views/nodes/_groups.rhtml
zena-1.2.5 app/views/nodes/_groups.rhtml
zena-1.2.4 app/views/nodes/_groups.rhtml
zena-1.2.3 app/views/nodes/_groups.rhtml
zena-1.2.2 app/views/nodes/_groups.rhtml
zena-1.2.1 app/views/nodes/_groups.rhtml
zena-1.2.0 app/views/nodes/_groups.rhtml
zena-1.1.3 app/views/nodes/_groups.rhtml
zena-1.1.2 app/views/nodes/_groups.rhtml
zena-1.1.1 app/views/nodes/_groups.rhtml
zena-1.1.0 app/views/nodes/_groups.rhtml
zena-1.0.0 app/views/nodes/_groups.rhtml
zena-1.0.0.rc3 app/views/nodes/_groups.rhtml
zena-1.0.0.rc2 app/views/nodes/_groups.rhtml
zena-1.0.0.rc1 app/views/nodes/_groups.rhtml