import("system.neon");
import("system.vars");
import("system.result");

if (vars.get("$field.DOCUMENT_TEMPLATE"))
    result.string(neon.COMPONENTSTATE_EDITABLE);
else
    result.string(neon.COMPONENTSTATE_DISABLED);