       content = null
 
     delegate = @getDelegate()
+    @searhText = null
+    if @canUpdate
+      @addSubView new StackScriptSearchView
 
     @addSubView @editorView = new StackTemplateEditorView {
       delegate: this, content, contentType, showHelpContent

  setReadOnly: ->
    @setClass 'readonly'
    @editorView.aceView.ace.editor.setReadOnly yes

kd = require 'kd'
KDButtonView = kd.ButtonView
Encoder = require 'htmlencode'
curryIn = require 'app/util/curryIn'
StackTemplateEditorView = require './stacktemplateeditorview'
StackScriptSearchView = require './stackscriptsearchview'


module.exports = class StackTemplateView extends kd.View
