 
     elements:
       "select[name=version-select]": "version_select"
+      "input[name=patch_file]": "file_input"
       ".patch-list": "patch_list"
       "form": "upload_form"
       "a.upload.btn": "upload_button"

              title: "Successfully uploaded patch file"
              hide_after: 2000

          error: (data, textStatus, errorThrown) ->
            app.flash
              kind: "error"
              title: "Error uploading patch file: "


      @apply_button.toggleClass 'disabled', @patch_files.length == 0

      @upload_button.toggleClass 'disabled', @file_input.val() == ""

      @file_input.change (event) =>
        @upload_button.toggleClass 'disabled', @file_input.val() == ""

      @upload_button.click =>
        if @upload_button.hasClass('disabled')
          return false;

        app.flash
          kind: "info"
          title: "Uploading patch file to server"
