 
     template: require('./templates/settings_modal')
 
+    events:
+        'click a#export': 'exportCalendar'
+        'click #show-password': 'showPassword'
+        'click #hide-password': 'hidePassword'
+
+    getRenderData: ->
+        account: @model
+
+    initialize: ->
+        @model = window.webDavAccount
+        if @model?
+            @model.placeholder = @getPlaceholder @model.token
+
     afterRender: ->
+
+        @calendar = new ComboBox
+            el: @$('#export-calendar')
+            source: app.calendars.toAutoCompleteSource()
+
+        @$('#importviewplaceholder').append new ImportView().render().$el
 
         # Show the modal.
         @$el.modal 'show'


    # Close the modal.
    close: -> @$el.modal 'close'

BaseView = require 'lib/base_view'
ImportView = require './import_view'
ComboBox = require './widgets/combobox'

module.exports = class SettingsModals extends BaseView

