Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersSeverinsen committed Jul 18, 2024
1 parent 90df2f5 commit 9b01e93
Show file tree
Hide file tree
Showing 16 changed files with 553 additions and 144 deletions.
2 changes: 1 addition & 1 deletion bartab/templates/bartab.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>{% translate "Total forbrug" %}: {{ total_used }}</h3>
</thead>
<tbody>
{% for entry in entries %}
<tr{% if entry.added > 0 %} class="success"{% elif entry.balance <= credit_hold_limit %} class="danger"{% endif %}>
<tr{% if entry.added > 0 %} class="success-"{% elif entry.balance <= credit_hold_limit %} class="danger-"{% endif %}>
<td>{{ entry.shift }}</td>
<td>{{ entry.added }}</td>
<td>{{ entry.used }}</td>
Expand Down
12 changes: 6 additions & 6 deletions bartenders/templates/barplan.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ <h2>{% translate "Barplan" %}</h2>
</thead>
<tbody>
{% for shift in bartendershifts %}
<tr {% if shift|is_with_user:user %}style="background-color: skyblue;"{% endif %}>
<td class="col-md-2">{{ shift.display_str }}{% if show_all %} {{ shift.start_datetime.year }}{% endif %}</td>
<td class="col-md-3">{{ shift.responsible.name }}</td>
<td class="col-md-7">
<tr class="is-user-shift">
<td {% if shift|is_with_user:user %}style="background-color: lightBlue; color: black;"{% endif %}class="col-md-2">{{ shift.display_str }} {% if show_all %} {{ shift.start_datetime.year }}{% endif %}</td>
<td {% if shift|is_with_user:user %}style="background-color: lightBlue; color: black;"{% endif %} class="col-md-3">{{ shift.responsible.name }}</td>
<td {% if shift|is_with_user:user %}style="background-color: lightBlue; color: black;"{% endif %} class="col-md-7">
{% for bartender in shift.other_bartenders.all %}
{% if bartender.first_bartender_shift == shift %}<b title="{% translate "Bartender's first shift" %}">{{ bartender.name }}</b>{% else %}{{ bartender.name }}{% endif %}{% if not forloop.last %},{% endif %}
{% if bartender.first_bartender_shift == shift %}<b {% if shift|is_with_user:user %}style="color: black;"{% endif %} title="{% translate "Bartender's first shift" %}">{{ bartender.name }}</b>{% else %}{{ bartender.name }}{% endif %}{% if not forloop.last %},{% endif %}
{% endfor %}
</td>
{% if user.is_staff %}
<td class="hidden-xs col-md-1"><a href="/admin/bartenders/bartendershift/{{ shift.id }}">{% translate "Edit" %}</a></td>
<td {% if shift|is_with_user:user %}style="background-color: lightBlue; color: black;"{% endif %} class="hidden-xs col-md-1"><a href="/admin/bartenders/bartendershift/{{ shift.id }}">{% translate "Edit" %}</a></td>
{% endif %}
</tr>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion bartenders/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% block content %}

{% translate "Velkommen til Fredagscaféens webside, her kan du finde information om åbningstider, sortiment, udlejning af fadølsanlæg og grill mm." %}
<p>{% translate "Velkommen til Fredagscaféens webside, her kan du finde information om åbningstider, sortiment, udlejning af fadølsanlæg og grill mm." %}</p>

<div class="row">
<div class="col-md-8">
Expand Down
2 changes: 1 addition & 1 deletion guides/templates/guides.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h2>{% translate "Guides" %}</h2>

{% for category, guides in guides %}
<div class="panel panel-default">
<div class="panel-heading">{{ category }}</div>
<div id="black" class="panel-heading">{{ category }}</div>
<div class="panel-body">
<ul>
{% for guide in guides %}
Expand Down
Loading

0 comments on commit 9b01e93

Please sign in to comment.