96063ecc68810ffad7aa7bdf77de84d46f234c3aJulian Kigwana{{> headers/_TitleWithSubAndIcon title=entity.name type="console.scripts.edit.script" icon="code" }}
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg<div class="panel panel-default panel-content">
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <!-- NAME -->
5cbf11801912f4169fe23132932743d35c668b74Pavel Shapovalov <label class="col-sm-2 control-label" for="name">{{t "console.common.name"}}</label>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <input type="text" id="name" name="scriptName" class="form-control" value="{{entity.name}}"
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg data-field="name" placeholder="{{t 'common.form.validation.required'}}" autofocus required>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <!-- DESCRIPTION -->
5cbf11801912f4169fe23132932743d35c668b74Pavel Shapovalov <label class="col-sm-2 control-label" for="description">{{t "console.common.description"}}</label>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <textarea id="description" class="form-control pull-left script-text" rows="3"
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg data-field="description">{{entity.description}}</textarea>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <!-- CONTEXT -->
5cbf11801912f4169fe23132932743d35c668b74Pavel Shapovalov <label class="col-sm-2 control-label" for="context">{{t "console.scripts.edit.scriptType"}}</label>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <span class="form-control" id="context">{{contextName}}</span>
b9b5cea7f57c5ee5cefa129237b8a3c5353eba98Pavel Shapovalov <button type="button" class="btn fr-btn-secondary pull-right" data-change-context>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <i class="fa fa-gear"></i> {{t "common.form.change"}}
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <!-- LANGUAGE -->
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <label class="col-sm-2 control-label">{{t "console.scripts.edit.language"}}</label>
d1d91a3232dda64b97244b510c5daa975fbc13c4Julian Kigwana {{#if languages.[1]}}
d1d91a3232dda64b97244b510c5daa975fbc13c4Julian Kigwana {{#each languages}}
d1d91a3232dda64b97244b510c5daa975fbc13c4Julian Kigwana <input type="radio" name="language" id="{{id}}" value="{{id}}" data-field="language"
d1d91a3232dda64b97244b510c5daa975fbc13c4Julian Kigwana {{#equals /entity.language id}} checked {{/equals}}> {{name}}
d1d91a3232dda64b97244b510c5daa975fbc13c4Julian Kigwana {{#each languages}}
d1d91a3232dda64b97244b510c5daa975fbc13c4Julian Kigwana <input class="form-control" value="{{name}}" readonly />
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <!--SCRIPT-->
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <label class="col-sm-2 control-label" for="script">{{t "console.scripts.edit.script"}}</label>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <textarea id="script">{{entity.script}}</textarea>
b9b5cea7f57c5ee5cefa129237b8a3c5353eba98Pavel Shapovalov <input type="button" class="btn btn-default script-upload" id="upload" value="{{t 'common.form.upload'}}" data-upload-script>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <input type="file" name="upload" class="hidden">
b9b5cea7f57c5ee5cefa129237b8a3c5353eba98Pavel Shapovalov <input type="button" class="btn btn-default" value="{{t 'common.form.validate'}}" data-validation-script>
b9b5cea7f57c5ee5cefa129237b8a3c5353eba98Pavel Shapovalov <button type="button" class="btn btn-default" data-show-fullscreen>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <i class="fa fa-expand"></i> {{t "console.common.editFullScreen"}}
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <div id="validation" class="script-validation-message"></div>
ce3b447b507f5bd6ba2fbe70e6eeeb94d4307b9asean oneill <div class="script-changes-pending pull-left"></div>
5cbf11801912f4169fe23132932743d35c668b74Pavel Shapovalov <button data-save class="btn btn-primary pull-right" type="button">
b9b5cea7f57c5ee5cefa129237b8a3c5353eba98Pavel Shapovalov <button type="button" class="btn btn-link pull-right" data-exit-fullscreen>
1a022d1b283a145c5b0ec71ba150a59cf1ba8c90Joe Bandenburg <i class="fa fa-compress"></i> {{t "console.common.exitFullScreen"}}