color: #000; /*#6A0307;*/
}
+.appointment a button{
+ background: #444;
+ color: #fff;
+ border: 3px double #ccc;
+ padding: .1em .5em;
+ font-weight: bold;
+ cursor: pointer;
+ border-radius: 8px;
+ font-size: 100%;
+ padding: 5px 15px;
+}
+.appointment a button:hover{
+ background: #000;
+}
+
#action_blue {
background-color: #357ae8;
color: #FFF;
color: #BB0000;
}
+
+.select-day{
+ margin-bottom: 15px;
+}
+
+.select-day .next_day,
+.select-day .previous_day{
+ cursor: pointer;
+ border: 1px solid #ccc;
+ background: #FFF;
+ padding: 2px 5px 2px 5px;
+ color: #444;
+ border-radius: 4px;
+ position: relative;
+ top: 2px;
+}
+.booking_day table{
+ margin:0;
+ padding:0;
+ background:none;
+ border:none;
+ border-collapse:collapse;
+ border-spacing:0;
+}
+
+.booking_day table tr th{
+ padding: 5px 15px;
+}
+
+.booking_day table tr td{
+ padding: 0;
+ text-align: center;
+}
+
+.booking_day table tr td button[type="submit"]{
+ padding: 5px 15px;
+ margin: 5px;
+ cursor: pointer;
+ background: #92b220;
+ color: #FFF;
+ font-size: 12px;
+ font-weight: bold;
+ border: 0;
+}
+
+.booking_day table tr td button[type="submit"]:hover{
+ background: #8aa81e;
+}
+
+.cancel_form button[type="submit"]{
+ padding: 2px 15px;
+ margin: 5px;
+ cursor: pointer;
+ font-weight: bold;
+}
+
+.booking_day table tr td strong{
+ font-size: 12px;
+ color: #444;
+}
+
+.ui-dialog .ui-dialog-titlebar-close{
+ position: relative;
+}
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus {
+ padding: 1px !important;
+}
+
+.ui-dialog .ui-dialog-titlebar-close.ui-state-hover{
+ border: 0;
+ background: transparent;
+ font-weight: bold;
+ color: #000;
+}
+
+.ui-dialog .ui-dialog-titlebar-close:before{
+ content: "X";
+ position: absolute;
+ top: 2px;
+ left: 3px;
+ color: #000;
+}
+
+#content ul.messages{
+ list-style: none;
+ padding: 0;
+ padding-left: 0px;
+ padding-left: 0;
+ font-size: 0.8em;
+ clear: both;
+}
+
+#content ul.messages li{
+ padding: 4px 10px;
+}
+
/*! jQuery UI - v1.9.2 - 2018-09-18
* http://jqueryui.com
* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.button.css, jquery.ui.dialog.css, jquery.ui.theme.css
<table border="1">
<thead>
<tr>
- <th style="display:none">
+ <th>
Heure d'arrivé
</th>
- <th>
+ <th style="display:none">
Heure de début
</th>
<th style="display:none">
{% for groupslot in day.slots.all %}
{% for slot in groupslot.slots %}
<tr>
- <td class="arrival" style="display:none">
+ <td class="arrival">
{{ slot.arrival|date:'H:i' }}
</td>
- <td class="start">
+ <td class="start" style="display:none">
{{ slot.start|date:'H:i' }}
</td>
<td class="end" style="display:none">
'date': ap.real_date,
'student': ap.student,
'main_text': ap.period.appointment_mail_text }
+ # DEBUG
data['mto'] = "gael@pilotsystems.net"
+ data['mto'] = "dorothee.lavalle@pre-barreau.com"
subject_template = 'teleforma/messages/email_appointment_sujet.txt'
message_template = 'teleforma/messages/email_appointment.txt'
context['doc_types'] = DocumentType.objects.all()
context['list_view'] = True
context['courses'] = sorted(context['all_courses'], key=lambda k: k['date'], reverse=True)[:1]
- context['hasAppointment'] = AppointmentPeriod.objects.filter(period=context['period']).count()
+ is_student = self.request.user.student.all().count()
+ context['hasAppointment'] = AppointmentPeriod.objects.filter(period=context['period']).count() and is_student
home = Home.objects.all()
if home: