webpackJsonp([220],{854:function(a,n,e){var l=e(39);a.exports=(l["default"]||l).template({1:function(a,n,e,l,t,r,o){var s,c,i=null!=n?n:a.nullContext||{},d=e.helperMissing,u="function",m=a.escapeExpression;return'                    <option value="'+m((c=null!=(c=e._id||(null!=n?n._id:n))?c:d,typeof c===u?c.call(i,{name:"_id",hash:{},data:t}):c))+'" '+(null!=(s=(e.equals||n&&n.equals||d).call(i,null!=o[2]?o[2].defaultContext:o[2],null!=n?n._id:n,{name:"equals",hash:{},fn:a.program(2,t,0,r,o),inverse:a.noop,data:t}))?s:"")+" >\r\n                        "+m((c=null!=(c=e.name||(null!=n?n.name:n))?c:d,typeof c===u?c.call(i,{name:"name",hash:{},data:t}):c))+"\r\n                    </option>\r\n"},2:function(a,n,e,l,t){return" selected "},compiler:[7,">= 4.0.0"],main:function(a,n,e,l,t,r,o){var s,c=null!=n?n:a.nullContext||{},i=e.helperMissing,d=a.escapeExpression;return(null!=(s=a.invokePartial(l["headers/_Title"],n,{name:"headers/_Title",hash:{title:"console.scripts.edit.title"},data:t,helpers:e,partials:l,decorators:a.decorators}))?s:"")+'\r\n<div class="panel panel-default panel-content">\r\n\r\n    <div class="panel-body form-horizontal">\r\n        \x3c!-- NAME --\x3e\r\n        <div class="form-group">\r\n            <label class="col-sm-2 control-label" for="name">'+d((e.t||n&&n.t||i).call(c,"console.common.name",{name:"t",hash:{},data:t}))+'</label>\r\n\r\n            <div class="col-sm-9">\r\n                <input type="text" id="name" name="scriptName" class="form-control" value="'+d(a.lambda(null!=(s=null!=n?n.entity:n)?s.name:s,n))+'"\r\n                       data-field="name" placeholder="'+d((e.t||n&&n.t||i).call(c,"common.form.validation.required",{name:"t",hash:{},data:t}))+'" autofocus required>\r\n            </div>\r\n        </div>\r\n        \x3c!-- CONTEXT --\x3e\r\n        <div class="form-group">\r\n            <label class="col-sm-2 control-label" for="context">'+d((e.t||n&&n.t||i).call(c,"console.scripts.edit.scriptType",{name:"t",hash:{},data:t}))+'</label>\r\n\r\n            <div class="col-sm-9">\r\n                <select class="form-control" data-field="context" id="context">\r\n'+(null!=(s=e.each.call(c,null!=n?n.contexts:n,{name:"each",hash:{},fn:a.program(1,t,0,r,o),inverse:a.noop,data:t}))?s:"")+'                </select>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="panel-footer clearfix">\r\n        <div class="pull-right">\r\n            <a class="btn btn-default" href="'+d((e.routeTo||n&&n.routeTo||i).call(c,"realmsScripts",null!=n?n.realmPath:n,{name:"routeTo",hash:{},data:t}))+'">'+d((e.t||n&&n.t||i).call(c,"common.form.cancel",{name:"t",hash:{},data:t}))+'</a>\r\n            <button data-save class="btn btn-primary" type="button" disabled>\r\n                '+d((e.t||n&&n.t||i).call(c,"common.form.create",{name:"t",hash:{},data:t}))+"\r\n            </button>\r\n        </div>\r\n    </div>\r\n</div>\r\n"},usePartial:true,useData:true,useDepths:true})}});
//# sourceMappingURL=admin-views-realms-scripts-NewScriptTemplate.1b763b26ec.js.map