1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{% extends "website/w_base.html" %}
{% load static %}
{% block additionnal_css %}
<link rel="stylesheet" href="{% static "css/knacss.min.css" %}">
<link rel="stylesheet" href="{% static "css/info_perso.css" %}?v=">
{% endblock %}
{% block additionnal_scripts %}
<script src="{% static "js/jquery-3.3.1.min.js" %}"></script>
<script src="{% static "js/modernizr-custom.min.js" %}"></script>
<script type="text/javascript">
var original = {
sex : '{{data.sex}}',
firstname : '{{data.firstname}}',
lastname : '{{data.lastname}}',
birthdate : '{{data.birthdate}}',
street : '{{data.street}}',
street2 : '{{data.street2}}',
zip : '{{data.zip}}',
city : '{{data.city}}',
email: '{{data.email}}',
mobile : '{{data.mobile}}',
phone : '{{data.phone}}'
},
name_sep = '{{data.name_sep}}'
</script>
{% endblock %}
{% block content %}
{% if with_website_menu %}
{% include "website/menu.html" %}
{% endif %}
<div id="data" style="top:40px; position: relative;width: 540px; margin:auto; ">
<form style="position: relative;">
<div id="person">
<div>
<div class="fl" style="border: 1px solid #000;min-height:130px; min-width:130px;">
<img src="{{data.img_src}}" alt="Photo" title="Pour changer votre photo, rendez-vous au magasin." />
</div>
<div class="fl" style="padding-left: 10px;">
<p>
Coop. N°
{{data.barcode_base}}
</p>
<p>
{{data.barcode|default:''}}
</p>
<p>
Enregistrement données : {{ data.create_date|date:"d F Y" }}
</p>
<p>
Statut : {{data.cooperative_state}}
</p>
</div>
</div>
<div style="clear:both; padding-top: 5px;">
<p>
{% include "members/sex_input.html" %}
</p>
<p>
<input type="text" name="firstname" value="{{data.firstname}}" placeholder="Prénom" size="15" maxlength="25" />
<input type="text" name="lastname" value="{{data.lastname}}" placeholder="Nom" size="45" style="max-width: 282px;"/>
</p>
<p> Date de naissance
<select name="jj"></select>
<select name="mm"></select>
<select name="yyyy"></select>
<input type="hidden" name="birthdate" value="{{data.birthdate}}" />
</p>
</div>
</div>
<div id="address">
<p>
<input type="text" name="street" value="{{ data.street|default:'' }}" placeholder="Rue" size="80">
</p>
<p>
<input type="text" name="street2" value="{{ data.street2|default:'' }}" placeholder="Complément d'adresse" size="80">
</p>
<p>
<input type="text" name="zip" value="{{ data.zip|default:'' }}" placeholder="code postal" size="5">
<input type="text" name="city" value="{{ data.city|default:'' }}" placeholder="Ville" size="35" style="max-width: 382px;">
</p>
</div>
<div id="telcom">
<p>
<input type="email" name="email" value="{{ data.email|default:'' }}" placeholder="Email" size="80" disabled>
</p>
<p>
<input type="text" name="mobile" value="{{ data.mobile|default:'' }}" placeholder="Tél. mobile" size="15">
</p>
<p>
<input type="text" name="phone" value="{{ data.phone|default:'' }}" placeholder="Tél. fixe" size="15">
</p>
</div>
<div id="action" style="position: absolute; bottom: 25px; right: 15px;">
<button type="button" id="save" class="btn">Enregistrer les modifications</button>
</div>
</form>
<!--
<p>
{{data.is_worker_member}}
</p>
-->
<div id="cooperative_data">
<p>
Nombre de parts détenues : {{data.total_partner_owned_share}}
</p>
<p>
Montant souscription : {{data.amount_subscription}} euros
</p>
{% if data.active_tmpl_reg_line_count %}
<hr />
{% if data.is_exempted %}
<p>
Exempté.e
</p>
{% else %}
{% if data.shift_type == 'standard' %}
<p>
Créneau : {{data.current_template_name}}
</p>
<p>
{{data.final_standard_point}} point(s)
</p>
{% else %}
<p>
Volant.e
</p>
<p>
{{data.final_ftop_point}} point(s)
</p>
{% endif %}
{% if data.date_alert_stop %}
<p>
En alerte jusqu'au {{ data.date_alert_stop|date:"d F Y" }}
</p>
{% endif %}
{% if data.date_delay_stop %}
<p>
Extension accordée jusqu'au {{ data.date_delay_stop|date:"d F Y" }}
</p>
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
<script src="{% static 'js/all_common.js' %}?v="></script>
<script src="{% static 'js/info_perso.js' %}?v="></script>
{% endblock %}