{% if layout.publishedStatusId == 2 %}
{% set warning %} {% trans "Copying this Layout will create an exact copy of the last time this Layout was Published.
Any changes made to this Layout while it has been a Draft will not be copied. Publish the Layout before making a copy if the Draft changes should be included in the copy." %} {% endset %}
{{ forms.message(warning, 'alert alert-info') }}
{% endif %}
{% set title %}{% trans "Name" %}{% endset %}
{% set helpText %}{% trans "The Name for the copy (1 - 50 characters)" %}{% endset %}
{% set layoutName %}{{ layout.layout }} 2{% endset %}
{{ forms.input("name", title, layoutName, helpText) }}
{% set title %}{% trans "Make new copies of all media?" %}{% endset %}
{% set helpText %}{% trans "This will duplicate all media that is currently assigned to the item being copied." %}{% endset %}
{% if settings.LAYOUT_COPY_MEDIA_CHECKB == 1 %}
{% set checked = 1 %}
{% else %}
{% set checked = 0 %}
{% endif %}
{{ forms.checkbox("copyMediaFiles", title, checked, helpText) }}
{% set title %}{% trans "Description" %}{% endset %}
{% set helpText %}{% trans "An optional description (1 - 250 characters)" %}{% endset %}
{{ forms.textarea("description", title, layout.description, helpText) }}