add proper indent

This commit is contained in:
koksnuss 2020-05-31 21:38:31 +02:00
parent 361c770f21
commit f94cd362e1
4 changed files with 137 additions and 141 deletions

View File

@ -1,9 +1,7 @@
<td class="coin {{ td_class }}" value="{{ value }}" title="{{ name }}"> <td class="coin {{ td_class }}" value="{{ value }}" title="{{ name }}">
<div class="coin"> <div class="coin">
<span>{{ marker }}</span> <span>{{ marker }}</span>
<div class="{{ div_class }}" type="overlay"></div> <div class="{{ div_class }}" type="overlay"></div>
</div> </div>{% if name %}
{% if name %} <div class="special_name {{ special_name }} {{ special_class }}">{{ name }}</div>{% endif %}
<div class="special_name {{ special_name }} {{ special_class }}">{{ name }}</div> </td>
{% endif %}
</td>

View File

@ -1,108 +1,108 @@
<style type="text/css">{% for user in users %} <style type="text/css">{% for user in users %}
div.{{ user.name }} { background-color: {{ user.color }} !important; }{% endfor %} div.{{ user.name }} { background-color: {{ user.color }} !important; }{% endfor %}
</style> </style>
<button id="begin_edit" class="btn btn-info">+ hinzufügen</button> <button id="begin_edit" class="btn btn-info">+ hinzufügen</button>
<!-- navbar --> <!-- navbar -->
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">
{% csrf_token %} {% csrf_token %}
<!-- advanced options --> <!-- advanced options -->
<div id="advanced_options"> <div id="advanced_options">
<label for="exists" class="noexist"> <label for="exists" class="noexist">
<input id="exists" type="checkbox"> <input id="exists" type="checkbox">
Existiert nicht Existiert nicht
</label> </label>
<label for="ec" id="label_ec" class="ec"> <label for="ec" id="label_ec" class="ec">
<input id="ec" type="checkbox"> <input id="ec" type="checkbox">
Eurocollector 2002&nbsp; Eurocollector 2002&nbsp;
</label> </label>
<label for="checked" id="label_checked" class="checked"> <label for="checked" id="label_checked" class="checked">
<input id="checked" type="checkbox"> <input id="checked" type="checkbox">
Überprüft, einsortiert&nbsp; Überprüft, einsortiert&nbsp;
</label> </label>
<label for="buy_only" id="label_buy_only" class="buy_only"> <label for="buy_only" id="label_buy_only" class="buy_only">
<input id="buy_only" type="checkbox"> <input id="buy_only" type="checkbox">
Kursmünze&nbsp; Kursmünze&nbsp;
</label> </label>
<label for="circulation"> <label for="circulation">
Auflage Auflage
<input id="circulation" type="text" value="Auflage"> <input id="circulation" type="text" value="Auflage">
</label> </label>
<label for="found_on"> <label for="found_on">
Datum Datum
<input type="text" name="found_on" id="found_on" value="{% now 'd.m.Y' %}"> <input type="text" name="found_on" id="found_on" value="{% now 'd.m.Y' %}">
</label> </label>
<label for="found" id="found_label"> <label for="found" id="found_label">
<input id="found" type="checkbox" checked="checked"> <input id="found" type="checkbox" checked="checked">
Gefunden Gefunden
</label> </label>
</div>
<!-- main options -->
<div id="navbar_toggler">
<label for="found_by">
<select id="found_by" name="found_by" class="form-control">{% for user in users %}
<option value="{{ user.name }}" color="{{ user.color }}">{{ user.name }}</option>{% endfor %}
</select>
</label>
<div id="buttons">
<button id="show_add_user" class="btn btn-secondary">+ Name</button>
<button id="finish_edit" class="btn btn-success">Fertig</button>
<button id="show_advanced_options" class="btn btn-outline-secondary" aria-controls="navbar_toggler" aria-expanded="false" aria-label="Toggle advanced options"><span class="navbar-toggler-icon"></span></button>
</div> </div>
</div>
</nav>
<!-- main options --> <!-- modal add_user -->
<div id="navbar_toggler"> <div id="add_user" class="modal-container">
<label for="found_by"> <div class="modal-dialog" role="document">
<select id="found_by" name="found_by" class="form-control">{% for user in users %} <div class="modal-content">
<option value="{{ user.name }}" color="{{ user.color }}">{{ user.name }}</option>{% endfor %} <div class="modal-header">
</select> <h5 class="modal-title">Name hinzufügen</h5>
</label> <button id="add_user_close" type="button" class="close" data-dismiss="modal" aria-label="Close">
<div id="buttons"> <span aria-hidden="true">×</span>
<button id="show_add_user" class="btn btn-secondary">+ Name</button> </button>
<button id="finish_edit" class="btn btn-success">Fertig</button>
<button id="show_advanced_options" class="btn btn-outline-secondary" aria-controls="navbar_toggler" aria-expanded="false" aria-label="Toggle advanced options"><span class="navbar-toggler-icon"></span></button>
</div> </div>
</div> <div class="modal-body">
</nav> <div class="form-group">
<label for="text_user">Name</label>
<!-- modal add_user --> <input type="text" name="name" id="add_user_name" class="form-control">
<div id="add_user" class="modal-container">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Name hinzufügen</h5>
<button id="add_user_close" type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div> </div>
<div class="modal-body"> <div class="form-group">
<div class="form-group"> <label for="text_color">Farbe</label>
<label for="text_user">Name</label> <input type="text" name="color" id="add_user_color" class="form-control">
<input type="text" name="name" id="add_user_name" class="form-control">
</div>
<div class="form-group">
<label for="text_color">Farbe</label>
<input type="text" name="color" id="add_user_color" class="form-control">
</div>
</div>
<div class="modal-footer">
<span id="response"></span>
<button type="button" id="add_user_action" class="btn btn-primary">+ Name hinzufügen</button>
</div> </div>
</div> </div>
<div class="modal-footer">
<span id="response"></span>
<button type="button" id="add_user_action" class="btn btn-primary">+ Name hinzufügen</button>
</div>
</div> </div>
</div> </div>
</div>
<!-- modal add_coin_name --> <!-- modal add_coin_name -->
<div id="add_coin_name" class="modal-container"> <div id="add_coin_name" class="modal-container">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title">Sondermünze</h5> <h5 class="modal-title">Sondermünze</h5>
<button id="add_coin_name_close" type="button" class="close" data-dismiss="modal" aria-label="Close"> <button id="add_coin_name_close" type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span> <span aria-hidden="true">×</span>
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="form-group"> <div class="form-group">
<label for="add_coin_name_name">Name</label> <label for="add_coin_name_name">Name</label>
<input type="text" name="name" id="add_coin_name_name" class="form-control"> <input type="text" name="name" id="add_coin_name_name" class="form-control">
</div>
</div>
<div class="modal-footer">
<span id="response"></span>
<button type="button" id="add_coin_name_action" class="btn btn-primary">+ Münze hinzufügen</button>
</div> </div>
</div> </div>
<div class="modal-footer">
<span id="response"></span>
<button type="button" id="add_coin_name_action" class="btn btn-primary">+ Münze hinzufügen</button>
</div>
</div> </div>
</div> </div>
</div>

View File

@ -1,40 +1,38 @@
{% if single_country %} {% if single_country %}{% include 'header.html' with title=country.name %}
{% include 'header.html' with title=country.name %} {% include 'coinc/controlbar.html' with users=users %}{% endif %}
{% include 'coinc/controlbar.html' with users=users %} <div class="container-fluid">
{% endif %} <table name="{{ country.name_iso }}">
<div class="container-fluid"> <thead>
<table name="{{ country.name_iso }}"> <tr>
<thead> <th colspan="12" title="Zurück zur Länderübersicht">
<tr> <div class="float-left">
<th colspan="12" title="Zurück zur Länderübersicht"> <img src="/static/coinc/images/{{ country.name_iso }}.png">
<img src="/static/coinc/images/{{ country.name_iso }}.png" /> {{ country.name }}{% if country.comment %}
{{ country.name }}{% if country.comment %} <small> - {{ country.comment }}</small>{% endif %}
<small> - {{ country.comment }}</small>{% endif %} </div>
<div class="total_coins">{{ total_coins }}</div> <div class="float-right">{{ total_coins }}</div>
</th> </th>
</tr> </tr>
<tr> <tr>
<th>Jahr</th> <th>Jahr</th>
<th>1</th> <th>1</th>
<th>2</th> <th>2</th>
<th>5</th> <th>5</th>
<th class="brass">10</th> <th class="brass">10</th>
<th class="brass">20</th> <th class="brass">20</th>
<th class="brass">50</th> <th class="brass">50</th>
<th>1 €</th> <th>1 €</th>
<th>2 €</th> <th>2 €</th>
<th></th> <th></th>
<th></th> <th></th>
<th></th> <th></th>
</tr> </tr>
<tr> <tr>
<th colspan="12"></th> <th colspan="12"></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for year in country.years %}{% show_year country year %}{% endfor %} </tbody> {% for year in country.years %}{% show_year country year %}{% endfor %} </tbody>
</table> </table>
</div> </div>
{% if single_country %} {% if single_country %}{% include "footer.html" with title="Münzsammlung" %}{% endif %}
{% include "footer.html" with title="Münzsammlung" %}
{% endif %}

View File

@ -1,6 +1,6 @@
{% for stamp in year %} <tr name="{{ year_short }}" stamp="{{ stamp }}"> {% for stamp in year %} <tr name="{{ year_short }}" stamp="{{ stamp }}">
<td class="year {{ year_complete }}"><div class="coin">{{ stamp }}{{ year_short }}</div></td> <td class="year {{ year_complete }}"><div class="coin">{{ stamp }}{{ year_short }}</div></td>
{% for value in values %}{% show_coin country year_short stamp value %}{% endfor %} </tr>{% endfor %}{% ifnotequal year|length 1 %} {% for value in values %}{% show_coin country year_short stamp value %}{% endfor %} </tr>{% endfor %}{% ifnotequal year|length 1 %}
<tr> <tr>
<td class="spacer" colspan="12"></td> <td class="spacer" colspan="12"></td>
</tr>{% endifnotequal %} </tr>{% endifnotequal %}