anchor.diff:                  }
               });
           });
  +        $('.btn-edit').click(function (e) {
  +            var id = $(this).parents('tr').first().data('roomid');
  +            $.ajax({
  +                url: '/room/find/'+id,
  +                type: 'GET',
  +                success: function (data) {
  +                    $('#editroomName').val(data.name);
  +                    $('#editroomDesc').val(data.description);
  +                    $('#editid').val(data.id);
  +                    //TODO: Group handling
  +                    $('#editmodal').modal('show');
  +                },
  +                error: function(res) {
  +                    $('#alerts').html('<div class="alert alert-error span12">Could not edit room: '+res.responseJSON.error+'</div>');
  +                }
  +
  +            });
  +        });
  +        $('#edit-form').submit(function (e) {
  +            e.preventDefault();
  +            var id = $('#editid').val();
  +            //TODO: Group management
  +            var data = {
  +                name: $('#editroomName').val(),
  +                description: $('#editroomDesc').val()
  +            };
  +            $.ajax({
  +                url: '/room/'+id,
  +                type: 'PUT',
  +                data: data,
  +                success: function (data) {
  +                    var html = '<td><a href="/room/'+data.slug+'">'+data.name+'</a></td><td>'+data.slug+'</td><td>'+data.description+'</td><td>0</td><td><div class="btn-group"><a class="btn btn-edit" href="#"><i class="icon-pencil"></i></a><a class="btn btn-danger" href="#"><i class="icon-trash icon-white"></i></a></div></td>';
  +                    console.log(data);
  +                    $('#editmodal').modal('hide');
  +                    $('tr[data-roomid='+data.id+']').html(html);
  +                },
  +                error: function(res) {
  +                    $('#alerts').html('<div class="alert alert-error span12">Room could not be updated: '+res.responseJSON.error+'</div>');
  +                }
  +            });
  +        });
           $('#new-form').submit(function (e) {
               e.preventDefault();
  -            var nameElement = document.getElementById('roomName');
  -            var descElement = document.getElementById('roomDesc');
  -            var groupsElement = document.getElementById('roomGroups');
  +            //TODO: Group management
               var data = {
  -                name: nameElement.value,
  -                description: descElement.value,
  -                groupsElement: groupsElement.value
  +                name: $('#addroomName').val(),
  +                description: $('#addroomDesc').val()
               };
               $.ajax({
                   url: '/room',
  
positive.code:                 data: data,
                  success: function (data) {
                      var html = '<tr data-roomid="'+data.id+'"><td><a href="/room/'+data.slug+'">'+data.name+'</a></td><td>'+data.slug+'</td><td>'+data.description+'</td><td>0</td><td><div class="btn-group"><a class="btn btn-edit" href="#"><i class="icon-pencil"></i></a><a class="btn btn-danger" href="#"><i class="icon-trash icon-white"></i></a></div></td></tr>';
                      $('#addroom .close').click();
                      $('#room-table-data').append(html);
                  },
                  error: function(res) {
  
negative.code:         #alerts.row-fluid.span12
          .row-fluid.well
              .lead Room Management
              a.btn.btn-primary(href="#", data-toggle="modal", data-target="#addmodal") <i class="icon-plus icon-white"></i> Add Room
              hr
              table.table
                  thead
  