     e.preventDefault()
     @hide()
 
-  validate: () ->
-    @$el.validate(@validationRules)
-    @$el.valid()
-
-class EntryListView extends Backbone.View
+class EntryListView extends ValidatableView
   template: _.template($("#entryListTemplate").html())
   entries: null
   controller: null

    @$el.hide()
    e.preventDefault()

  valid: () ->
    @$el.find('form').validate(@validationRules)
    @$el.find('form').valid()


class Application extends Backbone.Router
  constants:

      @$header.find("#showDone").addClass('doneNotShown')
      @$header.find("#showDone").removeClass('doneShown')

class ValidatableView extends Backbone.View
  valid: () ->
    @$form.validate(@validationRules)
    @$form.valid()

class ApplicationModel extends Backbone.Model

