cleaned up group edit a little

This commit is contained in:
Daniel Vincent Grippi 2010-09-06 13:01:24 -07:00
parent 9a4edc419c
commit 48415b4de8
3 changed files with 68 additions and 7 deletions

View file

@ -9,13 +9,20 @@
= "Editing Groups" = "Editing Groups"
%ul#group_list %ul#group_list
- for group in @groups - for group in @groups
%li{:class => 'group'}
= group.name %li.group
%h3= group.name
%ul{:id => group.id} %ul{:id => group.id}
dummy person for dropping onto -if group.people.size < 1
%li.grey Drag to add people
-else
-for person in group.people -for person in group.people
%li{:class => 'person', :id => person.id, :from_group_id => group.id}
%li.person{:id => person.id, :from_group_id => group.id}
= image_tag(person.profile.image_url(:thumb_small),:size => "30x30") unless person.profile.image_url.nil? = image_tag(person.profile.image_url(:thumb_small),:size => "30x30") unless person.profile.image_url.nil?
= person.real_name = person.real_name
%p %p

View file

@ -577,3 +577,25 @@ h1.big_text {
.editing, .editing:hover { .editing, .editing:hover {
background-color: yellow; background-color: yellow;
border: 1px #666666 solid; } border: 1px #666666 solid; }
.group {
list-style: none; }
.group ul {
min-height: 20px;
margin: 0;
margin-left: 1em;
margin-bottom: 25px;
background-color: #efefef;
border: 1px solid #cccccc;
border-radius: 3px;
list-style: none;
padding: 15px; }
.group ul li {
margin-left: 0;
padding: 5px;
cursor: move; }
.group ul li img {
display: inline-block; }
.group ul .grey {
font-style: italic;
color: #666666; }

View file

@ -748,3 +748,35 @@ h1.big_text
:background :background
:color yellow :color yellow
:border 1px #666 solid :border 1px #666 solid
.group
:list
:style none
ul
:min-height 20px
:margin 0
:left 1em
:bottom 25px
:background
:color #efefef
:border 1px solid #ccc
:border
:radius 3px
:list
:style none
:padding 15px
li
:margin
:left 0
:padding 5px
:cursor move
img
:display inline-block
.grey
:font
:style italic
:color #666