display_preferences.html 21.2 KB
Newer Older
1
{% extends 'preferences/sidebar.html' %}
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
{% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en
quelques clics.

Copyright © 2017  Gabriel Détraz
Copyright © 2017  Goulven Kermarec
Copyright © 2017  Augustin Lemesle

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}

{% load bootstrap3 %}
LEVY-FALK Hugo's avatar
LEVY-FALK Hugo committed
27
{% load acl %}
28
{% load design %}
29
{% load i18n %}
30

31
{% block title %}{% trans "Preferences" %}{% endblock %}
32 33

{% block content %}
Grizzly's avatar
Grizzly committed
34
<div id="accordion">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
35

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
36 37 38
    <div class="panel panel-default" id="general">
        <div class="panel-heading" data-toggle="collapse" href="#collapse_general">
            <h4 class="panel-title" id="general">
Grizzly's avatar
Grizzly committed
39
                <a><i class="fa fa-cog"></i>   {% trans "General preferences" %}</a>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
40 41
            </h4>
        </div>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
42

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
43
        <div id="collapse_general" class="panel-collapse panel-body collapse">
Grizzly's avatar
Grizzly committed
44

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
45 46
            <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'GeneralOption' %}">
                <i class="fa fa-edit"></i>{% trans "Edit" %}
Grizzly's avatar
Grizzly committed
47
            </a>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
            <p></p>

            <table class="table table-striped">
                <tr>
                    <th>{% trans "Website name" %}</th>
                    <td>{{ generaloptions.site_name }}</td>
                    <th>{% trans "Email address for automatic emailing" %}</th>
                    <td>{{ generaloptions.email_from }}</td>
                </tr>
                <tr>
                    <th>{% trans "Number of results displayed when searching" %}</th>
                    <td>{{ generaloptions.search_display_page }}</td>
                    <th>{% trans "Number of items per page (standard size)" %}</th>
                    <td>{{ generaloptions.pagination_number }}</td>
                </tr>
                <tr>
                    <th>{% trans "Number of items per page (large size)" %}</th>
                    <td>{{ generaloptions.pagination_large_number }}</td>
                    <th>{% trans "Time before expiration of the reset password link (in hours)" %}</th>
                    <td>{{ generaloptions.req_expire_hrs }}</td>
                </tr>
                <tr>
                    <th>{% trans "General message displayed on the website" %}</th>
                    <td>{{ generaloptions.general_message }}</td>
72
                    <th>{% trans "Main site URL" %}</th>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
                    <td>{{ generaloptions.main_site_url }}</td>
                </tr>
                <tr>
                    <th>{% trans "Summary of the General Terms of Use" %}</th>
                    <td>{{ generaloptions.GTU_sum_up }}</td>
                    <th>{% trans "General Terms of Use" %}</th>
                    <td>{{ generaloptions.GTU }}</th>
                </tr>
            </table>
            <table class="table table-striped">
                <tr>
                    <th>{% trans "Local email accounts enabled" %}</th>
                    <td>{{ useroptions.local_email_accounts_enabled|tick }}</td>
                    <th>{% trans "Local email domain" %}</th>
                    <td>{{ useroptions.local_email_domain }}</td>
                </tr>
                <tr>
                    <th>{% trans "Maximum number of email aliases allowed" %}</th>
                    <td>{{ useroptions.max_email_address }}</td>
                </tr>
            </table>
        </div>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
95
    </div>
Grizzly's avatar
Grizzly committed
96

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
97 98 99 100 101 102 103
    <div class="panel panel-default" id="users">
        <div class="panel-heading" data-toggle="collapse" href="#collapse_users">
            <h4 class="panel-title">
                <a><i class="fa fa-users fa-fw"></i>   {% trans "User preferences" %}</a>
            </h4>
        </div>
        <div id="collapse_users" class="panel-collapse panel-body collapse">
Grizzly's avatar
Grizzly committed
104

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
            <p></p>
            <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'OptionalUser' %}">
                <i class="fa fa-edit"></i>
                {% trans "Edit" %}
            </a>
            <p></p>

            <table class="table table-striped">
                <tr>
                    <th>{% trans "Creation of members by everyone" %}</th>
                    <td>{{ useroptions.all_can_create_adherent|tick }}</td>
                    <th>{% trans "Creation of clubs by everyone" %}</th>
                    <td>{{ useroptions.all_can_create_club|tick }}</td>
                </tr>
                <tr>
                    <th>{% trans "Self registration" %}</th>
                    <td>{{ useroptions.self_adhesion|tick }}</td>
                    <th>{% trans "Delete not yet active users after" %}</th>
123
		    <td>{% blocktrans with delete_notyetactive=useroptions.delete_notyetactive %}{{ delete_notyetactive }} days{% endblocktrans %}</td>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
124
                </tr>
125 126 127 128
                <tr>
                    <th>{% trans "All users are active by default" %}</th>
                    <td>{{ useroptions.all_users_active|tick }}</td>
                </tr>
Grizzly's avatar
Grizzly committed
129 130 131 132
            </table>

            <h4 id="users">{% trans "Users general permissions" %}</h4>
            <table class="table table-striped">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
                <tr>
                    <th>{% trans "Default shell for users" %}</th>
                    <td>{{ useroptions.shell_default }}</td>
                    <th>{% trans "Users can edit their shell" %}</th>
                    <td>{{ useroptions.self_change_shell|tick }}</td>
                </tr>
                <tr>
                    <th>{% trans "Users can edit their room" %}</th>
                    <td>{{ useroptions.self_change_room|tick }}</td>
                    <th>{% trans "Telephone number required" %}</th>
                    <td>{{ useroptions.is_tel_mandatory|tick }}</td>
                </tr>
                <tr>
                    <th>{% trans "GPG fingerprint field" %}</th>
                    <td>{{ useroptions.gpg_fingerprint|tick }}</td>
                </tr>
            </table>
        </div>
    </div>
</div>

<div class="panel panel-default" id="machines">
    <div class="panel-heading" data-toggle="collapse" href="#collapse_machines">
        <h4 class ="panel-title">
            <a><i class="fa fa-desktop"></i>   {% trans "Machines preferences" %}</a>
        </h4>
    </div>

    <div id="collapse_machines" class="panel-collapse panel-body collapse">

        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'OptionalMachine' %}">
            <i class="fa fa-edit"></i>
            {% trans "Edit" %}
        </a>
        <p></p>
        <table class="table table-striped">
Grizzly's avatar
Grizzly committed
169
            <tr>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
170 171 172 173
                <th>{% trans "Password per machine" %}</th>
                <td>{{ machineoptions.password_machine|tick }}</td>
                <th>{% trans "Maximum number of interfaces allowed for a standard user" %}</th>
                <td>{{ machineoptions.max_lambdauser_interfaces }}</td>
Grizzly's avatar
Grizzly committed
174 175
            </tr>
            <tr>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
176 177 178 179
                <th>{% trans "Maximum number of DNS aliases allowed for a standard user" %}</th>
                <td>{{ machineoptions.max_lambdauser_aliases }}</td>
                <th>{% trans "IPv6 support" %}</th>
                <td>{{ machineoptions.ipv6_mode }}</td>
Grizzly's avatar
Grizzly committed
180 181
            </tr>
            <tr>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
182 183
                <th>{% trans "Creation of machines" %}</th>
                <td>{{ machineoptions.create_machine|tick }}</td>
Grizzly's avatar
Grizzly committed
184 185 186
            </tr>
        </table>
    </div>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
187
</div>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
188

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
189 190 191 192 193 194 195
<div  class="panel panel-default" id="topo">
    <div class="panel-heading" data-toggle="collapse" href="#collapse_topo">
        <h4 class="panel-title">
            <a><i class="fa fa-sitemap"></i>   {% trans "Topology preferences" %}</a>
        </h4>
    </div>
    <div id="collapse_topo" class="panel-collapse panel-body collapse">
Grizzly's avatar
Grizzly committed
196

197 198 199 200
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'OptionalTopologie' %}">
            <i class="fa fa-edit"></i>
            {% trans "Edit" %}
        </a>
Grizzly's avatar
Grizzly committed
201
        <p></p>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
        <table class="table table-striped">
            <tr>
                <th>{% trans "General policy for VLAN setting" %}</th>
                <td>{{ topologieoptions.radius_general_policy }}</td>
                <th>{% trans "This setting defines the VLAN policy after acceptance by RADIUS: either on the IP range's VLAN of the machine, or a VLAN preset in 'VLAN for machines accepted by RADIUS'" %}</th>
                <td></td>
            </tr>
            <tr>
                <th>{% trans "VLAN for machines accepted by RADIUS" %}</th>
                <td>{{ topologieoptions.vlan_decision_ok }}</td>
                <th>{% trans "VLAN for machines rejected by RADIUS" %}</th>
                <td>{{ topologieoptions.vlan_decision_nok }}</td>
            </tr>
            <tr>
                <th>{% trans "VLAN for non members machines" %}</th>
                <td>{{ topologieoptions.vlan_non_member }}</td>
            </tr>
        </table>

221
	<h4>{% trans "RADIUS keys" %}</h4>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
222
        {% can_create RadiusKey%}
223
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:add-radiuskey'  %}"><i class="fa fa-plus"></i>{% trans " Add a RADIUS key" %}</a>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
224
        {% acl_end %}
225
        {%  include 'preferences/aff_radiuskey.html' with  radiuskey_list=radiuskey_list %}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
226 227 228 229 230

    </div>
</div>

<div  class="panel panel-default" id="switches">
Grizzly's avatar
Grizzly committed
231
    <div class="panel-heading" data-toggle="collapse" href="#collapse_switches">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
232
        <h4 class="panel-title">
233
            <a><i class="fa fa-server"></i>{% trans "Configuration of switches" %}</a>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
234 235 236
        </h4>
    </div>
    <div id="collapse_switches" class="panel-collapse panel-body collapse">
Grizzly's avatar
Grizzly committed
237 238 239 240 241 242

        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'OptionalTopologie' %}">
            <i class="fa fa-edit"></i>
            {% trans "Edit" %}
        </a>
        <p></p>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
243

Grizzly's avatar
Grizzly committed
244
        <table class="table table-striped">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
245
            <tr>
246
                <th>{% trans "Web management, activated in case of automatic provision" %}</th>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
247
                <td>{{ topologieoptions.switchs_web_management }}</td>
248
                <th>{% trans "REST management, activated in case of automatic provision" %}</th>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
249 250 251 252 253 254
                <td>{{ topologieoptions.switchs_rest_management }}</td>
            </tr>
        </table>



255
        <h5>{% if topologieoptions.provision_switchs_enabled %}<span class="label label-success">{% trans "Provision of configuration for switches" %}{% else %}<span class="label label-danger">{% trans "Provision of configuration for switches" %}{% endif%}</span></h5>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
256 257
        <table class="table table-striped">
            <tr>
258 259
                <th>{% trans "Switches with automatic provision" %}</th>
                <td>{{ topologieoptions.provisioned_switchs|join:", "  }} {% if topologieoptions.provisioned_switchs %}<span class="label label-success">{% trans "OK" %}{% else %}<span class="label label-danger">{% trans "Missing" %}{% endif %}</span></td>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
260 261
            </tr>
            <tr>
262 263
                <th>{% trans "IP range for the management of switches" %}</th>
                <td>{{ topologieoptions.switchs_ip_type }} {% if topologieoptions.switchs_ip_type %}<span class="label label-success">{% trans "OK" %}{% else %}<span class="label label-danger">{% trans "Missing" %}{% endif %}</span></td>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
264 265
            </tr>
            <tr>
266 267
                <th>{% trans "Server for the configuration of switches" %}</th>
                <td>{{ topologieoptions.switchs_management_interface }} {% if topologieoptions.switchs_management_interface %} - {{ topologieoptions.switchs_management_interface_ip }}  <span class="label label-success">{% trans "OK" %}{% else %}<span class="label label-danger">{% trans "Missing" %}{% endif %}</span></td>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
268 269
            </tr>
            <tr>
270
                <th>{% trans "Provision of configuration mode for switches" %}</th>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
271 272 273
                <td>{{ topologieoptions.switchs_provision }}</td>
            </tr>
            <tr>
274 275
                <th>{% trans "TFTP mode" %}</th>
                <td><span class="label label-success">{% trans "OK" %}</span></td>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
276 277
            </tr>
            <tr>
278 279
                <th>{% trans "SFTP mode" %}</th>
                <td>{% if topologieoptions.switchs_management_sftp_creds %}<span class="label label-success">{% trans "OK" %}{% else %}<span class="label label-danger">{% trans "Missing credentials" %}{% endif %}</span></td>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
280 281 282
            </tr>
        </table>

283
        <h6>{% trans "Switch management credentials" %}</h6>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
284
        {% can_create SwitchManagementCred%}
285
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:add-switchmanagementcred'  %}"><i class="fa fa-plus"></i>{% trans " Add switch management credentials" %}</a>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
286 287 288
        {% acl_end %}
        <p>
        </p>
289 290
        {% if switchmanagementcred_list %}<span class="label label-success">{% trans "OK" %}{% else %}<span class="label label-danger">{% trans "Missing" %}{% endif %}</span>
            {%  include 'preferences/aff_switchmanagementcred.html' with  switchmanagementcred_list=switchmanagementcred_list %}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
291 292 293 294 295
    </div>
</div>

<div class="panel panel-default" id="radius">
    <div class="panel-heading" data-toggle="collapse" href="#collapse_radius">
296
        <h4 class="panel-title"><a><i class="fa fa-circle"></i>   {% trans "RADIUS preferences" %}</h4></a>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
297 298 299 300 301 302
    </div>
    <div id="collapse_radius" class="panel-collapse panel-body collapse">
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'RadiusOption' %}">
            <i class="fa fa-edit"></i>
            {% trans "Edit" %}
        </a>
303
        {% include 'preferences/aff_radiusoptions.html' %}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
304 305 306 307
    </div>
</div>

<div class="panel panel-default" id="asso">
Grizzly's avatar
Grizzly committed
308
    <div class="panel-heading" data-toggle="collapse" href="#collapse_asso">
309
        <h4 class="panel-title">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
310
            <a><i class="fa fa-at"></i>   {% trans "Information about the organisation" %}</a>
311 312
        </h4>
    </div>
Grizzly's avatar
Grizzly committed
313
    <div id="collapse_asso" class="panel-collapse panel-body collapse">
314 315 316 317
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'AssoOption' %}">
            <i class="fa fa-edit"></i>
            {% trans "Edit" %}
        </a>
Grizzly's avatar
Grizzly committed
318
        <p></p>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
        <table class="table table-striped">
            <tr>
                <th>{% trans "Name" %}</th>
                <td>{{ assooptions.name }}</td>
                <th>{% trans "SIRET number" %}</th>
                <td>{{ assooptions.siret }}</td>
            </tr>
            <tr>
                <th>{% trans "Address" %}</th>
                <td>{{ assooptions.adresse1  }}<br>
                    {{ assooptions.adresse2 }}
                </td>
                <th>{% trans "Contact email address" %}</th>
                <td>{{ assooptions.contact }}</td>
            </tr>
            <tr>
                <th>{% trans "Telephone number" %}</th>
                <td>{{ assooptions.telephone }}</td>
                <th>{% trans "Usual name" %}</th>
                <td>{{ assooptions.pseudo }}</td>
            </tr>
            <tr>
                <th>{% trans "User object of the organisation" %}</th>
                <td>{{ assooptions.utilisateur_asso }}</td>
                <th>{% trans "Description of the organisation" %}</th>
                <td>{{ assooptions.description|safe }}</td>
            </tr>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
346 347 348 349
            <tr>
                <th>{% trans "President of the association"%}</th>
                <td>{{ assooptions.pres_name }}</td>
            </tr>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
350
        </table>
351
    </div>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
352
</div>
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
<div  class="panel panel-default" id="cotisation">
    <div class="panel-heading" data-toggle="collapse" href="#collapse_cotisation">
        <h4 class="panel-title">
            <a><i class="fa fa-eur"></i>   {% trans "Cotisation's options" %}</a>
        </h4>
    </div>
    <div id="collapse_cotisation" class="panel-collapse panel-body collapse">
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'CotisationsOption' %}">
            <i class="fa fa-edit"></i>
        </a>
        <table class="table table-striped">
            <tr>
                <th>{% trans "Invoices' template" %}</th>
                <td>{{ cotisationsoptions.invoice_template }}</td>
            </tr>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
368 369 370 371
            <tr>
                <th>{% trans "Vouchers' template" %}</th>
                <td>{{ cotisationsoptions.voucher_template }}</td>
            </tr>
372 373 374 375
        </table>
    </div>
</div>

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
376

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
377
<div  class="panel panel-default" id="mail">
Grizzly's avatar
Grizzly committed
378
    <div class="panel-heading" data-toggle="collapse" href="#collapse_mail">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
379
        <h4 class="panel-title">
380
                <a><i class="fa fa-comment"></i>{% trans "Message for emails" %}</a>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
381 382
        </h4>
    </div>
Grizzly's avatar
Grizzly committed
383
    <div id="collapse_mail" class="panel-collapse panel-body collapse">
Grizzly's avatar
Grizzly committed
384

385 386 387 388
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'MailMessageOption' %}">
            <i class="fa fa-edit"></i>
            {% trans "Edit" %}
        </a>
Grizzly's avatar
Grizzly committed
389 390
        <p></p>

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
391 392 393 394 395 396 397 398 399 400 401 402 403 404
        <table class="table table-striped">
            <tr>
                <th>{% trans "Welcome email (in French)" %}</th>
                <td>{{ mailmessageoptions.welcome_mail_fr|safe }}</td>
            </tr>
            <tr>
                <th>{% trans "Welcome email (in English)" %}</th>
                <td>{{ mailmessageoptions.welcome_mail_en|safe }}</td>
            </tr>
        </table>
    </div>
</div>

<div  class="panel panel-default" id="rappels">
Grizzly's avatar
Grizzly committed
405
    <div class="panel-heading" data-toggle="collapse" href="#collapse_rappels">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
406
        <h4 class="panel-title">
407
                <a><i class="fa fa-bell"></i>{% trans "Options for the membership's end email" %}</a>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
408 409 410
        </h4>
    </div>
    <div id="collapse_rappels" class="panel-collapse panel-body collapse">
411
        {% can_create preferences.Reminder%}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
412

413
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:add-reminder'  %}"><i class="fa fa-plus"></i>{% trans " Add a reminder" %}</a>
Grizzly's avatar
Grizzly committed
414
        <p></p>
415
        {% acl_end %}
416
        {%  include 'preferences/aff_reminder.html' with  reminder_list=reminder_list %}
Grizzly's avatar
Grizzly committed
417
    </div>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
418
</div>
419

Grizzly's avatar
Grizzly committed
420

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
421
<div  class="panel panel-default" id="services">
Grizzly's avatar
Grizzly committed
422
    <div class="panel-heading" data-toggle="collapse" href="#collapse_services">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
423 424
        <h4 class="panel-title">
            <a><i class="fa fa-home"></i>   {% trans "List of services and homepage preferences" %}</a>
Grizzly's avatar
Grizzly committed
425 426
        </h4>
    </div>
Grizzly's avatar
Grizzly committed
427
    <div id="collapse_services" class="panel-collapse panel-body collapse">
428
        {% can_create preferences.Service%}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
429

430
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:add-service'  %}"><i class="fa fa-plus"></i>{% trans " Add a service" %}</a>
Grizzly's avatar
Grizzly committed
431
        <p></p>
432
        {% acl_end %}
433
        {%  include 'preferences/aff_service.html' with  service_list=service_list %}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
434

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
435 436
    </div>
</div>
437

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
438
<div  class="panel panel-default" id="contact">
Grizzly's avatar
Grizzly committed
439
    <div class="panel-heading" data-toggle="collapse" href="#collapse_contact">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
440 441 442 443 444
        <h4 class="panel-title">
            <a><i class="fa fa-list-ul"></i>   {% trans "List of contact email addresses" %}</a>
        </h4>
    </div>
    <div id="collapse_contact" class="panel-collapse panel-body collapse">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
445

446
        {% can_create preferences.MailContact %}
447
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:add-mailcontact'  %}"><i class="fa fa-plus"></i>{% trans " Add an address" %}</a>
448
        {% acl_end %}
449
        <a class="btn btn-danger btn-sm" role="button" href="{% url 'preferences:del-mailcontact'  %}"><i class="fa fa-trash"></i>{% trans " Delete one or several addresses" %}</a>
Grizzly's avatar
Grizzly committed
450
        <p></p>
451
        {%  include 'preferences/aff_mailcontact.html' with  mailcontact_list=mailcontact_list %}
Grizzly's avatar
Grizzly committed
452
    </div>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
453
</div>
Grizzly's avatar
Grizzly committed
454

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
455
<div class="panel panel-default" id="social">
Grizzly's avatar
Grizzly committed
456 457
    <div class="panel-heading" data-toggle="collapse" href="#collapse_social">
        <h4 class="panel-title">
458
                <a><i class="fa fa-facebook"></i><i class="fa fa-twitter"></i>{% trans "Social networks" %}</a>
Grizzly's avatar
Grizzly committed
459 460
        </h4>
    </div>
Grizzly's avatar
Grizzly committed
461
    <div id="collapse_social" class="panel-collapse panel-body collapse">
Grizzly's avatar
Grizzly committed
462

Grizzly's avatar
Grizzly committed
463 464 465 466
        <a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'HomeOption' %}">
            <i class="fa fa-edit"></i>
            {% trans "Edit" %}
        </a>
Grizzly's avatar
Grizzly committed
467
        <p></p>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
468 469 470 471 472 473 474 475 476 477 478 479
        <table class="table table-striped">
            <tr>
                <th>{% trans "Twitter account URL" %}</th>
                <td>{{ homeoptions.twitter_url }}</td>
                <th>{% trans "Twitter account name" %}</th>
                <td>{{ homeoptions.twitter_account_name }}</td>
            </tr>
            <tr>
                <th>{% trans "Facebook account URL" %}</th>
                <td>{{ homeoptions.facebook_url }}</td>
            </tr>
        </table>
Grizzly's avatar
Grizzly committed
480
    </div>
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
481
</div>
Grizzly's avatar
Grizzly committed
482

483
{% endblock %}
484