custom columns unfinished
This commit is contained in:
@@ -58,6 +58,23 @@
|
||||
</div>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if cc|length > 0 %}
|
||||
<p>
|
||||
<div class="custom_columns">
|
||||
{% for c in cc %}
|
||||
{% if entry['custom_column_' ~ c.id]|length > 0 %}
|
||||
{{ c.name }}:
|
||||
{% for column in entry['custom_column_' ~ c.id] %}
|
||||
{{ column.value }}
|
||||
{% endfor %}
|
||||
<br />
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if entry.comments|length > 0 %}
|
||||
<h3>Description:</h3>
|
||||
|
||||
@@ -43,6 +43,25 @@
|
||||
<label for="cover_url">Cover URL (jpg)</label>
|
||||
<input type="text" class="form-control" name="cover_url" id="cover_url" value="">
|
||||
</div>
|
||||
{% if cc|length > 0 %}
|
||||
{% for c in cc %}
|
||||
<div class="form-group">
|
||||
<label for="{{ 'custom_column_' ~ c.id }}">{{ c.name }}</label>
|
||||
<input type="text" class="form-control" name="{{ 'custom_column_' ~ c.id}} " id="{{ 'custom_column_' ~ c.id }}"
|
||||
{% if book['custom_column_' ~ c.id]|length > 0 %}
|
||||
{% for column in book['custom_column_' ~ c.id] %}
|
||||
value="{{ column.value }} {% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
"
|
||||
{% endif %}
|
||||
>
|
||||
<br />
|
||||
{% endfor %}
|
||||
</div>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input name="detail_view" type="checkbox" checked> view book after edit
|
||||
|
||||
Reference in New Issue
Block a user