form.custom-field-single.editable
    div.custom-field-data
        label.custom-field-name(for="custom-field-value")
            <%- name %>
        <% if (description){ %>
        span.custom-field-description
            <%- description %>
        <% } %>

    div.custom-field-value
        //- See TYPE_CHOICES in app/coffee/modules/common/custom-field-values.coffee
        <% if (type=="text") { %>
        input#custom-field-value(name="value", type="text", value!="<%- value %>")
        <% } else if (type=="multiline") { %>
        textarea#custom-field-value(name="value") <%- value %>
        <% } else if (type=="richtext") { %>
        tg-custom-field-edit-wysiwyg()
        <% } else if (type=="date") { %>
        input#custom-field-value(name="value", type="text", data-pikaday, value!="<%- value %>")
        <% } else if (type=="url") { %>
        input#custom-field-value(name="value", type="url", value!="<%- value %>")
        <% } else { %>
        input#custom-field-value(name="value", type="text", value!="<%- value %>")
        <% } %>

    <% if (type != "richtext") { %>
    div.custom-field-options
        a.js-save-description(href="", title="{{'COMMON.CUSTOM_ATTRIBUTES.SAVE' | translate}}")
            tg-svg(svg-icon="icon-save")
    <% } %>
