   model: EntryGroup
   url: window.urls.entryGroups
 
-class EditEntryForm
+class EditEntryForm extends ValidatableView
   $el: null
   $shownInsteadOf: null
+  $form: null
   controller: null
   modelBeingEdited: null
   isActive: false


  onOkEditEntry: (e) ->
    e.preventDefault()
    if !@validate() then return
    content = @$el.find('#entryContent').val()
    @modelBeingEdited.set('content', content)
    stateId = if @$el.find('#completed').prop('checked') then @controller.constants.closedStateId else @controller.constants.openedStateId

    @$el.find('#closePopup').click($.proxy(@onCancel, @))
    @$el.find('#okEditGroup').click($.proxy(@onOk, @))
    @$el.find('#cancelEditGroup').click($.proxy(@onCancel, @))
    @$form = @$el.find('form')
    @$input = @$el.find('#groupName')

  edit: (group) ->
