Sha256: 166cd5bc5470f3be15ddd7f4d384bb81f3b0ff55e9f718373741a4cdba041c67

Contents?: true

Size: 1.25 KB

Versions: 16

Compression:

Stored size: 1.25 KB

Contents

<!-- 
take the style block out.  this is duplicated in users/_data.html.erb
without this, the user group selection is just no good
-->
<style>
.checklist{
  overflow: auto;
  border: 1px solid #ccc;
  list-style: none;
  height: 300px;
  height: 600px;
  text-align: left;
  list-style: none;
  margin-left: 12px;
}

.checklist li{
  padding-left: 6px;
}

li.even_checked,
li.even{
  background: #DFDFDF;
}

li.even_checked,
li.odd_checked{
  color: red;
}
</style>

<p>
  <b>Name</b><br />
  <%%= user_group_name_value %>
</p>
<p>
  <b>Permissions</b><br />
  <%%= user_group_permissions_value %>
</p>
<%% if <%= action_name %> == "show" %>
	<p>
		<b>Users in user group:</b><br />
		<%%= user_group_users_value  %>
	</p>
<%% end%>

<!--
Take this out and place in your application.js.  
This is duplicated in users/_data.html.erb
-->
<script type="text/javascript">

  function do_highlight(id){
    li = document.getElementById("li_"+id);
    i = document.getElementById(id);
    if (i.checked){
      li.style.backgroundColor = "#ddd";
      li.style.color = "#fff";
    }else{
      if (li.className == "odd"){
        li.style.backgroundColor = "#fff";
      }else{
        li.style.backgroundColor = "#ccc";
      } 
      li.style.color = "#000";
    }
  }
</script>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lockdown-0.5.18 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.10 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.11 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.12 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.13 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.14 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.16 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.17 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.19 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.20 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.21 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.5.22 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.6.0 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.6.1 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.6.2 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb
lockdown-0.6.3 rails_generators/lockdown/templates/app/views/user_groups/_data.html.erb