Commit 5141e877 authored by Kristijan Čagran's avatar Kristijan Čagran
Browse files

Remove column "področje" from draft view

parent a8819ef3
......@@ -4,3 +4,43 @@
Število zbirk v osnutku: {{data['table']|length }}
</p>
{% endblock %}
{% block table_list %}
<table class="table table-bordered table-condensed tablesorter" id="report-table" style="width: 100%;table-layout:fixed; margin-top: 8px;">
<thead>
<tr>
<th style="width: 30px"><input id="check_all" class="inline" type="checkbox" checked="checked" autocomplete="off"/></th>
<th style="width: 80px">Zbirka1</th>
<th style="width: 80px">Organizacija</th>
<th style="width: 200px">Opis</th>
<th style="width: 80px">Predlagatelj</th>
<th style="display: none">Področje</th>
</tr>
</thead>
<tbody>
{% for dataset in data['table'] %}
<tr>
{% set podrocje = dataset.get('podrocje') %}
<td>
<input type="hidden" id="pck_name_{{ dataset['id']}}" value="{{dataset['name']}}"/>
<input id="checkbox_{{ dataset['id']}}" class="inline" type="checkbox" autocomplete="off"
{% if podrocje and podrocje != '' %}checked="checked"{% endif %}
{% if not podrocje or podrocje == '' %}disabled="disabled"{% endif %}
/>
</td>
<td><a href="/dataset/{{dataset['name']}}">{{dataset['title']}}</a></td>
<td><a href="/publisher/{{dataset['organization name']}}">{{dataset['organization title']}}</a></td>
<td>{{dataset['notes']}}</td>
<td style="overflow-wrap: anywhere">{{dataset['author']}}</td>
<td style="display: none">
<select class="form-control" id="podrocje_{{ dataset['id'] }}" name="podrocje" autocomplete="off">
<option value="" {% if not podrocje or podrocje == '' %}selected="selected"{% endif %} >Izberite področje...</option>
{% for podrocje_option in podrocje_choices %}
<option value="{{podrocje_option}}" {% if podrocje_option == podrocje %}selected="selected" {% endif %} >{{podrocje_option}}</option>
{% endfor %}
</select>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
......@@ -5,48 +5,49 @@
Število zbirk v potrjevanju: {{data['table']|length }}
</p>
{% endblock %}
<table class="table table-bordered table-condensed tablesorter" id="report-table" style="width: 100%;table-layout:fixed; margin-top: 8px;">
<thead>
<tr>
<th style="width: 30px"><input id="check_all" class="inline" type="checkbox" checked="checked" autocomplete="off"/></th>
<th style="width: 80px">Zbirka</th>
<th style="width: 80px">Organizacija</th>
<th style="width: 200px">Opis</th>
<th style="width: 80px">Predlagatelj</th>
<th style="width: 270px">Področje</th>
</tr>
</thead>
<tbody>
{% for dataset in data['table'] %}
<tr>
{% set podrocje = dataset.get('podrocje') %}
<td>
<input type="hidden" id="pck_name_{{ dataset['id']}}" value="{{dataset['name']}}"/>
<input id="checkbox_{{ dataset['id']}}" class="inline" type="checkbox" autocomplete="off"
{% if podrocje and podrocje != '' %}checked="checked"{% endif %}
{% if not podrocje or podrocje == '' %}disabled="disabled"{% endif %}
/>
</td>
<td><a href="/dataset/{{dataset['name']}}">{{dataset['title']}}</a></td>
<td><a href="/publisher/{{dataset['organization name']}}">{{dataset['organization title']}}</a></td>
<td>{{dataset['notes']}}</td>
<td style="overflow-wrap: anywhere">{{dataset['author']}}</td>
<td>
<select class="form-control" id="podrocje_{{ dataset['id'] }}" name="podrocje" autocomplete="off">
<option value="" {% if not podrocje or podrocje == '' %}selected="selected"{% endif %} >Izberite področje...</option>
{% for podrocje_option in podrocje_choices %}
<option value="{{podrocje_option}}" {% if podrocje_option == podrocje %}selected="selected" {% endif %} >{{podrocje_option}}</option>
{% endfor %}
</select>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% block table_list %}
<table class="table table-bordered table-condensed tablesorter" id="report-table" style="width: 100%;table-layout:fixed; margin-top: 8px;">
<thead>
<tr>
<th style="width: 30px"><input id="check_all" class="inline" type="checkbox" checked="checked" autocomplete="off"/></th>
<th style="width: 80px">Zbirka1</th>
<th style="width: 80px">Organizacija</th>
<th style="width: 200px">Opis</th>
<th style="width: 80px">Predlagatelj</th>
<th style="width: 270px">Področje</th>
</tr>
</thead>
<tbody>
{% for dataset in data['table'] %}
<tr>
{% set podrocje = dataset.get('podrocje') %}
<td>
<input type="hidden" id="pck_name_{{ dataset['id'] }}" value="{{ dataset['name'] }}"/>
<input id="checkbox_{{ dataset['id'] }}" class="inline" type="checkbox" autocomplete="off"
{% if podrocje and podrocje != '' %}checked="checked"{% endif %}
{% if not podrocje or podrocje == '' %}disabled="disabled"{% endif %}
/>
</td>
<td><a href="/dataset/{{ dataset['name'] }}">{{ dataset['title'] }}</a></td>
<td><a href="/publisher/{{ dataset['organization name'] }}">{{ dataset['organization title'] }}</a></td>
<td>{{ dataset['notes'] }}</td>
<td style="overflow-wrap: anywhere">{{ dataset['author'] }}</td>
<td>
<select class="form-control" id="podrocje_{{ dataset['id'] }}" name="podrocje" autocomplete="off">
<option value="" {% if not podrocje or podrocje == '' %}selected="selected"{% endif %}>Izberite področje...</option>
{% for podrocje_option in podrocje_choices %}
<option value="{{ podrocje_option }}" {% if podrocje_option == podrocje %}selected="selected" {% endif %}>{{ podrocje_option }}</option>
{% endfor %}
</select>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
<div id="submit-buttons" class="small-12 large-12 columns ckan-main" style="margin-bottom: 20px" data-equalizer-watch>
<div id="disclaimer" style="margin-top:10px">
<input disabled="disabled" id="bulk-save-button" class="button btn btn-primary" name="save" type="button" value="Objavi izbrane" />
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment