1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts{{> headers/_Title title="console.scripts.edit.title"}}
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts<div class="panel panel-default panel-content">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <div class="panel-body form-horizontal">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <!-- NAME -->
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <div class="form-group">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <label class="col-sm-2 control-label" for="name">{{t "console.common.name"}}</label>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <div class="col-sm-9">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <input type="text" id="name" name="scriptName" class="form-control" value="{{entity.name}}"
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts data-field="name" placeholder="{{t 'common.form.validation.required'}}" autofocus required>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts </div>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts </div>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <!-- CONTEXT -->
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <div class="form-group">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <label class="col-sm-2 control-label" for="context">{{t "console.scripts.edit.scriptType"}}</label>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <div class="col-sm-9">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <select class="form-control" data-field="context" id="context">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts {{#each contexts}}
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <option value="{{_id}}" {{#equals /defaultContext _id}} selected {{/equals}} >
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts {{name}}
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts </option>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts {{/each}}
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts </select>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts </div>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts </div>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts </div>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <div class="panel-footer clearfix">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <div class="pull-right">
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <a class="btn btn-default" href="{{routeTo 'realmsScripts' realmPath}}">{{t "common.form.cancel"}}</a>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts <button data-save class="btn btn-primary" type="button" disabled>
1b5cb8422c825dbdc6d7669e74f285cede6ab71cJames Phillpotts {{t "common.form.create"}}
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington </button>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington </div>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington </div>
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington</div>