Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Show static entry options only once
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Jun 16, 2014
1 parent 8d4e0b4 commit ae0cb72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<select name="fields[{{ column }}]">
<option value="dont">{{ "Don't import"|t }}</option>
{% for entrytype in entrytypes %}
{% if loop.first %}
<option value="title"{% if column == 'title' or column == 'name' or column == entrytype.titleLabel %} selected{% endif %}>{{ entrytype.titleLabel }} *</option>
<option value="slug"{% if column == 'slug' %} selected{% endif %}>{{ "Slug"|t }}</option>
<option value="parent"{% if column == 'parent' %} selected{% endif %}>{{ "Parent Entry"|t }}</option>
Expand All @@ -60,6 +61,7 @@
<option value="expiryDate"{% if column == 'expirydate' or column == 'enddate' %} selected{% endif %}>{{ "Expiry Date"|t }}</option>
<option value="enabled"{% if column == 'enabled' %} selected{% endif %}>{{ "Enabled"|t }}</option>
<option value="status"{% if column == 'status' %} selected{% endif %}>{{ "Status"|t }}</option>
{% endif %}
{% for tab in craft.fields.getLayoutById(entrytype.fieldLayoutId).getTabs() %}
<optgroup label="{{ tab.name }}">
{% for field in tab.getFields() %}
Expand Down

0 comments on commit ae0cb72

Please sign in to comment.