31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
form.custom-field-single.editable
|
|
div.custom-field-data
|
|
label.custom-field-name(for="custom-field-description")
|
|
<%- name %>
|
|
<% if (description){ %>
|
|
span.custom-field-description
|
|
<%- description %>
|
|
<% } %>
|
|
|
|
div.custom-field-value
|
|
|
|
<% if (field_type=="MULTI") { %>
|
|
textarea#custom-field-description(name="description")
|
|
<%- value %>
|
|
<% } %>
|
|
|
|
<% if (field_type=="TEXT") { %>
|
|
input#custom-field-description(name="description", type="text", value!="<%- value %>")
|
|
<% } %>
|
|
|
|
<% if (field_type=="DATE" && value!="") { %>
|
|
input#custom-field-description(name="description", type="text", value!="<%- moment(value).format('DD MMM YYYY') %>")
|
|
<% } %>
|
|
|
|
<% if (field_type=="DATE" && value=="") { %>
|
|
input#custom-field-description(name="description", type="text", value!="")
|
|
<% } %>
|
|
|
|
div.custom-field-options
|
|
a.icon.icon-floppy(href="", title="{{'COMMON.CUSTOM_ATTRIBUTES.SAVE' | translate}}")
|