         {{> form}}
       '''
     }
+
+  onCreateNew: ->
+
+    if @codeBlock.getData().initial
+      getKdCmd (err, kdCmd) =>
+        @codeBlock.setData { kdCmd, initial: no }  unless err
+
+    super

kd = require 'kd'
JView = require 'app/jview'
CredentialForm = require './credentialform'
copyToClipboard = require 'app/util/copyToClipboard'
getCopyToClipboardShortcut = require 'app/util/getCopyToClipboardShortcut'



  getScrollableContent: ->

    @codeBlock = new JView
      tagName   : 'code'
      cssClass  : 'block'
      pistachio : """
        {{#(kdCmd)}}
        <cite>#{getCopyToClipboardShortcut()}</cite>
      """
      click    : ->
        copyToClipboard @getElement().querySelector 'span'
    , {
      initial  : yes
      kdCmd    : 'Generating install url...'
    }

    return new JView {
      pistachioParams : { @codeBlock, @form }
      pistachio       : '''
        <article>
          <p>
