Add a button to show keep/unsafe filenames (and unsafe comments)
This commit is contained in:
parent
60d093e28a
commit
4ecff26a05
|
@ -130,15 +130,27 @@ header .right {
|
|||
max-width: 100%;
|
||||
}
|
||||
|
||||
.modal { color: #333; }
|
||||
.modal {
|
||||
color: #333;
|
||||
/*overflow-y: scroll;
|
||||
max-height: 80%;*/
|
||||
}
|
||||
.modal .title {
|
||||
font-size: 1.5em;
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
.modal .btn { float: right; }
|
||||
|
||||
#unsafe-modal textarea {
|
||||
width: 99%;
|
||||
.modal ul {
|
||||
padding-left: 0;
|
||||
/*overflow-y: scroll;*/
|
||||
overflow-x: hidden;
|
||||
max-height: 20em;
|
||||
}
|
||||
.modal ul li { list-style-type: none;}
|
||||
|
||||
.modal textarea {
|
||||
width: 98%;
|
||||
min-height: 5em;
|
||||
}
|
||||
|
||||
|
@ -151,17 +163,24 @@ header .right {
|
|||
margin-left: 1%;
|
||||
margin-right: 1%;
|
||||
}
|
||||
.half-width .title {
|
||||
.half-width .title, .third-width .title {
|
||||
font-size: 1.5em;
|
||||
width: 70%;
|
||||
display: inline-block;
|
||||
}
|
||||
.half-width #copy-confirm {
|
||||
.third-width #copy-confirm {
|
||||
float: right;
|
||||
width: 25%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.third-width {
|
||||
display: inline-grid;
|
||||
width: 30%;
|
||||
margin-left: 1%;
|
||||
margin-right: 1%;
|
||||
}
|
||||
|
||||
#prune-confirm {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -13,23 +13,26 @@
|
|||
<a id="filter-unsafe" class="btn yellow"><svg class="genericons-neue genericons-neue-show" width="16px" height="16px"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/static/genericons-neue.svg#show"></use></svg></a>
|
||||
<a id="filter-no" class="btn red"><svg class="genericons-neue genericons-neue-show" width="16px" height="16px"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/static/genericons-neue.svg#show"></use></svg></a>
|
||||
<a id="filter-all" class="btn grey">Alles</a>
|
||||
<a href="#edit-shoot-modal" rel="modal:open" class="btn green">Shoot bearbeiten</a>
|
||||
<a href="/admin/" class="btn yellow">Übersicht</a>
|
||||
<a href="/logout/" class="btn yellow">Logout</a>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="top-margin">
|
||||
<div class="half-width">
|
||||
<div class="third-width">
|
||||
<div>
|
||||
<span class="title">Link zur Public Seite</span> <span id="copy-confirm">Kopiert!</span>
|
||||
</div>
|
||||
<input type="text" id="public_link" readonly value="{{ config.SITE_URL }}/{{ shoot.link }}/">
|
||||
</div>
|
||||
<input id="shoot_link_help" type="hidden" value="{{ shoot.link }}"><!-- required for fileupload in here -->
|
||||
<div class="half-width">
|
||||
<div class="third-width">
|
||||
Mehr Bilder hochladen<input id="fileupload-overview" type="file" name="files[]" data-url="/admin/upload/" multiple><br>
|
||||
<div id="progress"><div class="bar" style="width: 0%;"></div></div>
|
||||
</div>
|
||||
<div class="third-width">
|
||||
<a href="#keep-modal" rel="modal:open" class="btn green" style="margin-bottom: .2em;">Keep/Unsicher Dateinamen</a>
|
||||
<a href="#edit-shoot-modal" rel="modal:open" class="btn yellow">Shoot bearbeiten</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
|
@ -66,4 +69,26 @@
|
|||
<input type="submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="keep-modal" class="modal">
|
||||
<div class="title">Liste zu behaltener Bilder</div>
|
||||
<ul>
|
||||
{% for pic in pics %}
|
||||
{% if pic.status == 'yes' %}
|
||||
<li>{{ pic.filename }}</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="title">Liste unsicherer Bilder</div>
|
||||
<ul>
|
||||
{% for pic in pics %}
|
||||
{% if pic.status == 'unsafe' %}
|
||||
<li>
|
||||
{{ pic.filename }}<br>
|
||||
<textarea id="unsafe-comment" readonly>{{ pic.comment }}</textarea>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
{% if pic.status == "unsafe" %}
|
||||
<div id="unsafe-modal" class="modal">
|
||||
<div class="title">Unsicher-Kommentar</div>
|
||||
<textarea id="unsafe-comment" disabled>{{ pic.comment }}</textarea>
|
||||
<textarea id="unsafe-comment" readonly>{{ pic.comment }}</textarea>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
{% block content %}Missing content{% endblock %}
|
||||
</div>
|
||||
<footer>
|
||||
V 0.1.1 –
|
||||
V 0.1.2 –
|
||||
<a href="/help/">Hilfe</a> –
|
||||
<a href="https://git.niduroki.net/niduroki/rate-shoot/">Source</a>
|
||||
</footer>
|
||||
|
|
Loading…
Reference in New Issue