ajout fichiers manquant
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0 on 2022-01-31 17:19
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('collabs', '0007_rename_user_collabs_hour_collaborateur_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='collabs_hour',
|
||||
old_name='Collaborateur',
|
||||
new_name='user',
|
||||
),
|
||||
]
|
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 4.0 on 2022-02-16 12:27
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('collabs', '0011_alter_collabs_hour_options_alter_collabs_hour_nhour'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='collabs_hour',
|
||||
name='dtDate',
|
||||
field=models.DateTimeField(auto_now=True, verbose_name='Date'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='collabs_hour',
|
||||
name='bNoticed',
|
||||
field=models.BooleanField(blank=True, default=False, verbose_name='Vérifiée'),
|
||||
),
|
||||
]
|
18
collabs/migrations/0013_alter_collabs_hour_dtdate.py
Normal file
18
collabs/migrations/0013_alter_collabs_hour_dtdate.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0 on 2022-02-16 12:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('collabs', '0012_collabs_hour_dtdate_alter_collabs_hour_bnoticed'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='collabs_hour',
|
||||
name='dtDate',
|
||||
field=models.DateTimeField(auto_now_add=True, verbose_name='Date'),
|
||||
),
|
||||
]
|
18
collabs/migrations/0014_alter_collabs_hour_dtdate.py
Normal file
18
collabs/migrations/0014_alter_collabs_hour_dtdate.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0 on 2022-02-16 12:39
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('collabs', '0013_alter_collabs_hour_dtdate'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='collabs_hour',
|
||||
name='dtDate',
|
||||
field=models.DateTimeField(verbose_name='Date'),
|
||||
),
|
||||
]
|
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 4.0 on 2022-02-16 12:41
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('collabs', '0014_alter_collabs_hour_dtdate'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='collabs_hour',
|
||||
name='dtDate',
|
||||
field=models.DateField(verbose_name='Date'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='collabs_hour',
|
||||
name='sRemarques',
|
||||
field=models.TextField(blank=True, verbose_name='Remarques'),
|
||||
),
|
||||
]
|
18
collabs/migrations/0016_collabs_hour_sbases.py
Normal file
18
collabs/migrations/0016_collabs_hour_sbases.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0 on 2022-02-16 12:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('collabs', '0015_alter_collabs_hour_dtdate_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='collabs_hour',
|
||||
name='sBases',
|
||||
field=models.CharField(choices=[('1', 'Monthey'), ('2', 'Uvrier')], default=1, max_length=1, verbose_name='Employé de la base de'),
|
||||
),
|
||||
]
|
BIN
collabs/static/collabs/images/background.gif
Normal file
BIN
collabs/static/collabs/images/background.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 MiB |
12
collabs/static/collabs/style.css
Normal file
12
collabs/static/collabs/style.css
Normal file
@@ -0,0 +1,12 @@
|
||||
li a {
|
||||
color: green;
|
||||
}
|
||||
body {
|
||||
color red;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
padding: 5px
|
||||
}
|
47
collabs/templates/collabs_hour/detail.html
Normal file
47
collabs/templates/collabs_hour/detail.html
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
{% load static %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'collabs/style.css' %}">
|
||||
|
||||
{% if latest_hour_list %}
|
||||
<h1>Liste des heures supplémentaires:</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Qui</th>
|
||||
<th>Combien</th>
|
||||
<th>Total du mois</th>
|
||||
<th>Traité</th>
|
||||
</tr>
|
||||
{% for collabs_hour in latest_hour_list %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/admin/collabs/collabs_hour/{{ collabs_hour.id }}/change/">{{ collabs_hour.dtCreated }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ collabs_hour.user }}
|
||||
</td>
|
||||
<td>
|
||||
{{collabs_hour.nHour}}:{{collabs_hour.nMinutes}}
|
||||
</td>
|
||||
<td>
|
||||
{{collabs_hour.total}}
|
||||
</td>
|
||||
<td>
|
||||
{{collabs_hour.bNoticed}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
<ul>
|
||||
{% for collabs_hour in latest_hour_list %}
|
||||
<li><a href="/admin/collabs/collabs_hour/{{ collabs_hour.id }}/change/">{{ collabs_hour.dtCreated }} {{ collabs_hour.user }} ({{collabs_hour.total}}) => {{collabs_hour.nHour}}:{{collabs_hour.nMinutes}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>No Collabs_hour.</p>
|
||||
{% endif %}
|
11
collabs/urls.py
Normal file
11
collabs/urls.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.urls import path
|
||||
|
||||
|
||||
from . import views
|
||||
|
||||
app_name = "collabs"
|
||||
urlpatterns = [
|
||||
path('export/<year>/<month>', views.ExportView.as_view(), name='detail'),
|
||||
|
||||
]
|
||||
|
Reference in New Issue
Block a user