made basic newest/oldest week/month/year part of gui actually retreive what we want, and have a title per grouping, but the grouping title is hard-coded for now, will need more data to do a better test, also hacky submit button for now until I decide how to enact the gui change requested
This commit is contained in:
@@ -2,16 +2,18 @@
|
||||
{% block main_content %}
|
||||
<div class="container-fluid">
|
||||
<br>
|
||||
<form method="POST">
|
||||
<div class="form-row">
|
||||
<div class="input-group col px-0">
|
||||
<input type="submit">
|
||||
<div class="input-group-prepend">
|
||||
<button class="btn btn-outline-info disabled" disabled="">Viewing:</button>
|
||||
</div>
|
||||
<select style="color:#5bc0de;border:1px solid #5bc0de;" class="form-control form-conrol-info">
|
||||
<select name="noo" style="color:#5bc0de;border:1px solid #5bc0de;" class="form-control form-conrol-info">
|
||||
<option>Oldest</option>
|
||||
<option>Newest</option>
|
||||
</select>
|
||||
<select style="color:#5bc0de;border:1px solid #5bc0de;" class="form-control">
|
||||
<select name="which" style="color:#5bc0de;border:1px solid #5bc0de;" class="form-control">
|
||||
<option>Week</option>
|
||||
<option>Month</option>
|
||||
<option>Year</option>
|
||||
@@ -19,7 +21,7 @@
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-info disabled" disabled="">of images, grouped by:</button>
|
||||
</div>
|
||||
<select style="color:#5bc0de;border:1px solid #5bc0de;" class="form-control">
|
||||
<select name="grouping" style="color:#5bc0de;border:1px solid #5bc0de;" class="form-control">
|
||||
<option>Day</option>
|
||||
<option>Week</option>
|
||||
<option>Month</option>
|
||||
@@ -46,9 +48,27 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<br>
|
||||
<div class="row">
|
||||
{% set last = namespace(printed=0) %}
|
||||
{% for obj in entry_data %}
|
||||
{% if which == "Week" %}
|
||||
{% if last.printed != obj.file_details[0].day %}
|
||||
</div><h6>Day: {{obj.file_details[0].day}} of {{obj.file_details[0].month}}/{{obj.file_details[0].year}}</h6></div><div class="row">
|
||||
{% set last.printed = obj.file_details[0].day %}
|
||||
{% endif %}
|
||||
{% elif which == "Month" %}
|
||||
{% if last.printed != obj.file_details[0].woy %}
|
||||
<h6>Week #: {{obj.file_details[0].woy}} of {{obj.file_details[0].year}}</h6></div><div class="row">
|
||||
{% set last.printed = obj.file_details[0].woy %}
|
||||
{% endif %}
|
||||
{% elif which == "Year" %}
|
||||
{% if last.printed != obj.file_details[0].month %}
|
||||
<h6>Month: {{obj.file_details[0].month}} of {{obj.file_details[0].year}}</h6></div><div class="row">
|
||||
{% set last.printed = obj.file_details[0].month %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if obj.type.name != "Directory" %}
|
||||
<center>
|
||||
<figure class="figure px-2" font-size: 24px;>
|
||||
|
||||
Reference in New Issue
Block a user