Add dropdown in navtab

This commit is contained in:
Soldat 2018-10-20 15:10:45 +02:00 committed by klmp200
parent 3dc73ebb9a
commit 29935cb5a8
Signed by: klmp200
GPG Key ID: E7245548C53F904B
3 changed files with 204 additions and 101 deletions

View File

@ -336,7 +336,7 @@ header {
border-radius: 6px 6px 0px 0px;
box-shadow: $shadow-color 0px 0px 15px;
a {
a{
flex: auto;
text-align: center;
padding: 20px;
@ -356,6 +356,45 @@ header {
}
}
}
.dropdown{
flex: auto;
text-align: center;
position: relative;
}
.dropbtn {
all: unset;
padding: 20px;
font-weight: bolder;
}
.dropdown-content {
display: none;
position: absolute;
overflow: auto;
width: 100%;
background-color: #f9f9f9;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
display: block;
text-align: center;
&:hover {
border-radius: unset;
color: white;
background: $secondary-neutral-color;
}
}
.dropdown:hover .dropdown-content {
display: block;
}
}
/*--------------------------------CONTENT------------------------------*/

View File

@ -149,15 +149,43 @@
{% if not popup %}
<nav>
<a href="{{ url('core:index') }}">{% trans %}Main{% endtrans %}</a>
<a href="{{ url('core:page', page_name='clubs') }}">{% trans %}Clubs{% endtrans %}</a>
<div class="dropdown">
<button class="dropbtn">{% trans %}Assocations & Clubs{% endtrans %}
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="/club/1/">{% trans %}The AE{% endtrans %}</a>
<a href="{{ url('core:page', page_name='clubs') }}">{% trans %}The Clubs of The AE{% endtrans %}</a>
<a href="/club/2/">{% trans %}The BDF{% endtrans %}</a>
<a href="/club/3/">{% trans %}The BDS{% endtrans %}</a>
</div>
</div>
<a href="{{ url('matmat:search_clear') }}">{% trans %}Matmatronch{% endtrans %}</a>
<a href="{{ url('core:page', page_name="Index") }}">{% trans %}Wiki{% endtrans %}</a>
<a href="{{ url('sas:main') }}">{% trans %}Pictures{% endtrans %}</a>
<a href="{{ url('forum:main') }}">{% trans %}Forum{% endtrans %}</a>
<a href="{{ url('core:page', "services") }}">{% trans %}Services{% endtrans %}</a>
<a href="{{ url('sas:main') }}">{% trans %}Gallery{% endtrans %}</a>
<a href="{{ url('eboutic:main') }}">{% trans %}Eboutic{% endtrans %}</a>
<div class="dropdown">
<button class="dropbtn">{% trans %}Services{% endtrans %}
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="/launderette">{% trans %}Launderette{% endtrans %}</a>
<a href="{{ url('eboutic:main') }}">{% trans %}E-Boutic{% endtrans %}</a>
<a href="{{ url('core:file_list') }}">{% trans %}Files{% endtrans %}</a>
<a href="https://ae2.utbm.fr/uvs/">{% trans %}Pedagogy{% endtrans %}</a>
<a href="{{ url('core:page', page_name="Index") }}">{% trans %}Wiki{% endtrans %}</a>
</div>
</div>
<a href="{{ url('core:page', page_name="partenaires")}}">{% trans %}Sponsors{% endtrans %}</a>
<div class="dropdown">
<button class="dropbtn">{% trans %}Help{% endtrans %}
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="{{ url('core:page', 'contacts') }}">{% trans %}Contacts{% endtrans %}</a>
<a href="https://ae2.utbm.fr/article.php?name=docs:index">{% trans %}Help{% endtrans %}</a>
</div>
</div>
</nav>
{% endif %}
{% endblock %}

View File

@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-16 00:13+0200\n"
"POT-Creation-Date: 2018-10-20 15:08+0200\n"
"PO-Revision-Date: 2016-07-18\n"
"Last-Translator: Skia <skia@libskia.so>\n"
"Language-Team: AE info <ae.info@utbm.fr>\n"
@ -18,7 +18,7 @@ msgstr ""
#: accounting/models.py:61 accounting/models.py:110 accounting/models.py:138
#: accounting/models.py:203 club/models.py:48 com/models.py:231
#: com/models.py:248 core/templates/core/base.jinja:296 counter/models.py:119
#: com/models.py:248 core/templates/core/base.jinja:324 counter/models.py:119
#: counter/models.py:147 counter/models.py:209 forum/models.py:58
#: launderette/models.py:38 launderette/models.py:90 launderette/models.py:125
#: stock/models.py:40 stock/models.py:60 stock/models.py:100
@ -142,7 +142,7 @@ msgid "comment"
msgstr "commentaire"
#: accounting/models.py:272 counter/models.py:353 counter/models.py:446
#: subscription/models.py:65
#: subscription/models.py:64
msgid "payment method"
msgstr "méthode de paiement"
@ -365,7 +365,7 @@ msgstr "Compte en banque : "
#: core/templates/core/group_list.jinja:13 core/templates/core/macros.jinja:93
#: core/templates/core/macros.jinja:112 core/templates/core/page_prop.jinja:14
#: core/templates/core/user_account_detail.jinja:38
#: core/templates/core/user_detail.jinja:177
#: core/templates/core/user_detail.jinja:178
#: core/templates/core/user_edit.jinja:19
#: counter/templates/counter/last_ops.jinja:29
#: counter/templates/counter/last_ops.jinja:59
@ -777,7 +777,7 @@ msgstr "Opération liée : "
#: core/templates/core/user_preferences.jinja:19
#: counter/templates/counter/cash_register_summary.jinja:22
#: forum/templates/forum/reply.jinja:33
#: subscription/templates/subscription/subscription.jinja:24
#: subscription/templates/subscription/subscription.jinja:25
#: trombi/templates/trombi/comment.jinja:26
#: trombi/templates/trombi/edit_profile.jinja:13
#: trombi/templates/trombi/user_tools.jinja:13
@ -1138,7 +1138,7 @@ msgstr "Total"
#: club/templates/club/club_sellings.jinja:27
#: core/templates/core/user_account_detail.jinja:23
#: core/templates/core/user_account_detail.jinja:54
#: core/templates/core/user_detail.jinja:130
#: core/templates/core/user_detail.jinja:148
#: counter/templates/counter/last_ops.jinja:18
#: counter/templates/counter/last_ops.jinja:45
#: counter/templates/counter/refilling_list.jinja:14
@ -1292,7 +1292,7 @@ msgid "Begin date"
msgstr "Date de début"
#: club/views.py:412 com/views.py:85 com/views.py:210 counter/views.py:1487
#: election/views.py:190 subscription/views.py:51
#: election/views.py:190 subscription/views.py:52
msgid "End date"
msgstr "Date de fin"
@ -1492,7 +1492,7 @@ msgstr "Type"
#: com/templates/com/news_admin_list.jinja:249
#: com/templates/com/news_admin_list.jinja:286
#: com/templates/com/weekmail.jinja:19 com/templates/com/weekmail.jinja:48
#: core/templates/core/base.jinja:306 forum/templates/forum/forum.jinja:29
#: core/templates/core/base.jinja:334 forum/templates/forum/forum.jinja:29
#: forum/templates/forum/forum.jinja:48 forum/templates/forum/main.jinja:26
#: forum/views.py:192
msgid "Title"
@ -1813,7 +1813,7 @@ msgid "Final word"
msgstr "Le mot de la fin"
#: com/views.py:78 com/views.py:204 election/views.py:185
#: subscription/views.py:45
#: subscription/views.py:46
msgid "Start date"
msgstr "Date de début"
@ -1999,7 +1999,7 @@ msgstr "-"
msgid "XS"
msgstr "XS"
#: core/models.py:214 core/templates/core/base.jinja:319
#: core/models.py:214 core/templates/core/base.jinja:347
msgid "S"
msgstr "S"
@ -2332,26 +2332,31 @@ msgstr "Déconnexion"
msgid "Main"
msgstr "Accueil"
#: core/templates/core/base.jinja:152 core/templates/core/search.jinja:18
#: core/views/user.py:256 counter/templates/counter/stats.jinja:17
msgid "Clubs"
msgstr "Clubs"
#: core/templates/core/base.jinja:153
msgid "Assocations & Clubs"
msgstr ""
#: core/templates/core/base.jinja:157
msgid "The AE"
msgstr "L'AE"
#: core/templates/core/base.jinja:158
msgid "The Clubs of The AE"
msgstr "Les clubs de l'AE"
#: core/templates/core/base.jinja:159
msgid "The BDF"
msgstr "Le BDF"
#: core/templates/core/base.jinja:160
msgid "The BDS"
msgstr "Le BDS"
#: core/templates/core/base.jinja:163
msgid "Matmatronch"
msgstr "Matmatronch"
#: core/templates/core/base.jinja:154
msgid "Wiki"
msgstr "Wiki"
#: core/templates/core/base.jinja:155 sas/templates/sas/album.jinja:4
#: sas/templates/sas/main.jinja:4 sas/templates/sas/main.jinja:32
#: sas/templates/sas/picture.jinja:34
msgid "SAS"
msgstr "SAS"
#: core/templates/core/base.jinja:156
#: core/templates/core/base.jinja:164
#: forum/templates/forum/favorite_topics.jinja:14
#: forum/templates/forum/forum.jinja:10
#: forum/templates/forum/last_unread.jinja:14
@ -2361,84 +2366,121 @@ msgstr "SAS"
msgid "Forum"
msgstr "Forum"
#: core/templates/core/base.jinja:157
#: core/templates/core/base.jinja:165
#, fuzzy
#| msgid "Seller"
msgid "Gallery"
msgstr "Vendeur"
#: core/templates/core/base.jinja:166 counter/models.py:217
#: counter/templates/counter/counter_list.jinja:11
#: eboutic/templates/eboutic/eboutic_main.jinja:4
#: eboutic/templates/eboutic/eboutic_main.jinja:24
#: eboutic/templates/eboutic/eboutic_makecommand.jinja:8
#: eboutic/templates/eboutic/eboutic_payment_result.jinja:4
#: sith/settings.py:376 sith/settings.py:384
msgid "Eboutic"
msgstr "Eboutic"
#: core/templates/core/base.jinja:168
msgid "Services"
msgstr "Services"
#: core/templates/core/base.jinja:158 core/templates/core/file.jinja:20
#: core/templates/core/base.jinja:172 launderette/models.py:44
#: launderette/templates/launderette/launderette_book.jinja:5
#: launderette/templates/launderette/launderette_book_choose.jinja:4
#: launderette/templates/launderette/launderette_main.jinja:4
msgid "Launderette"
msgstr "Laverie"
#: core/templates/core/base.jinja:173
#, fuzzy
#| msgid "Eboutic"
msgid "E-Boutic"
msgstr "Eboutic"
#: core/templates/core/base.jinja:174 core/templates/core/file.jinja:20
#: core/views/files.py:86
msgid "Files"
msgstr "Fichiers"
#: core/templates/core/base.jinja:159
#: core/templates/core/base.jinja:175
msgid "Pedagogy"
msgstr ""
#: core/templates/core/base.jinja:176
msgid "Wiki"
msgstr "Wiki"
#: core/templates/core/base.jinja:179
msgid "Sponsors"
msgstr "Partenaires"
#: core/templates/core/base.jinja:160
#: core/templates/core/base.jinja:181 core/templates/core/base.jinja:186
msgid "Help"
msgstr "Aide"
#: core/templates/core/base.jinja:199
#: core/templates/core/base.jinja:185 core/templates/core/base.jinja:227
msgid "Contacts"
msgstr "Contacts"
#: core/templates/core/base.jinja:200
#: core/templates/core/base.jinja:228
msgid "Legal notices"
msgstr "Mentions légales"
#: core/templates/core/base.jinja:201
#: core/templates/core/base.jinja:229
msgid "Intellectual property"
msgstr "Propriété intellectuelle"
#: core/templates/core/base.jinja:202
#: core/templates/core/base.jinja:230
msgid "Help & Documentation"
msgstr "Aide & Documentation"
#: core/templates/core/base.jinja:203
#: core/templates/core/base.jinja:231
msgid "R&D"
msgstr "R&D"
#: core/templates/core/base.jinja:204
#: core/templates/core/base.jinja:232
msgid "Former website"
msgstr "Ancien site"
#: core/templates/core/base.jinja:206
#: core/templates/core/base.jinja:234
msgid "Site made by good people"
msgstr "Site réalisé par des gens bons"
#: core/templates/core/base.jinja:303
#: core/templates/core/base.jinja:331
msgid "https://path/to/image.gif"
msgstr "https://chemin/vers/image.gif"
#: core/templates/core/base.jinja:305
#: core/templates/core/base.jinja:333
msgid "alternative text"
msgstr "texte alternatif"
#: core/templates/core/base.jinja:315
#: core/templates/core/base.jinja:343
msgid "Image"
msgstr "Image"
#: core/templates/core/base.jinja:316
#: core/templates/core/base.jinja:344
msgid "Link"
msgstr "Lien"
#: core/templates/core/base.jinja:317
#: core/templates/core/base.jinja:345
msgid "sup"
msgstr "exp"
#: core/templates/core/base.jinja:318
#: core/templates/core/base.jinja:346
msgid "sub"
msgstr "ind"
#: core/templates/core/base.jinja:320
#: core/templates/core/base.jinja:348
msgid "U"
msgstr "S"
#: core/templates/core/base.jinja:321
#: core/templates/core/base.jinja:349
msgid "I"
msgstr "I"
#: core/templates/core/base.jinja:322
#: core/templates/core/base.jinja:350
msgid "B"
msgstr "G"
@ -2846,6 +2888,11 @@ msgstr "Résultat de la recherche"
msgid "Users"
msgstr "Utilisateurs"
#: core/templates/core/search.jinja:18 core/views/user.py:256
#: counter/templates/counter/stats.jinja:17
msgid "Clubs"
msgstr "Clubs"
#: core/templates/core/to_markdown.jinja:4
msgid "To Markdown"
msgstr "Vers Markdown"
@ -2987,42 +3034,42 @@ msgstr "Avatar"
msgid "Scrub"
msgstr "Blouse"
#: core/templates/core/user_detail.jinja:124
msgid "Subscription history"
msgstr "Historique de cotisation"
#: core/templates/core/user_detail.jinja:127
msgid "Subscription start"
msgstr "Début de la cotisation"
#: core/templates/core/user_detail.jinja:128
msgid "Subscription end"
msgstr "Fin de la cotisation"
#: core/templates/core/user_detail.jinja:129
#: subscription/templates/subscription/stats.jinja:36
msgid "Subscription type"
msgstr "Type de cotisation"
#: core/templates/core/user_detail.jinja:153
#: core/templates/core/user_detail.jinja:133
msgid "Not subscribed"
msgstr "Non cotisant"
#: core/templates/core/user_detail.jinja:155
#: core/templates/core/user_detail.jinja:135
#: subscription/templates/subscription/subscription.jinja:4
#: subscription/templates/subscription/subscription.jinja:8
msgid "New subscription"
msgstr "Nouvelle cotisation"
#: core/templates/core/user_detail.jinja:168
#: core/templates/core/user_detail.jinja:142
msgid "Subscription history"
msgstr "Historique de cotisation"
#: core/templates/core/user_detail.jinja:145
msgid "Subscription start"
msgstr "Début de la cotisation"
#: core/templates/core/user_detail.jinja:146
msgid "Subscription end"
msgstr "Fin de la cotisation"
#: core/templates/core/user_detail.jinja:147
#: subscription/templates/subscription/stats.jinja:36
msgid "Subscription type"
msgstr "Type de cotisation"
#: core/templates/core/user_detail.jinja:169
msgid "Give gift"
msgstr "Donner cadeau"
#: core/templates/core/user_detail.jinja:173
#: core/templates/core/user_detail.jinja:174
msgid "Last given gift :"
msgstr "Dernier cadeau donné :"
#: core/templates/core/user_detail.jinja:183
#: core/templates/core/user_detail.jinja:184
msgid "No gift given yet"
msgstr "Aucun cadeau donné pour l'instant"
@ -3496,15 +3543,6 @@ msgstr "Bar"
msgid "Office"
msgstr "Bureau"
#: counter/models.py:217 counter/templates/counter/counter_list.jinja:11
#: eboutic/templates/eboutic/eboutic_main.jinja:4
#: eboutic/templates/eboutic/eboutic_main.jinja:24
#: eboutic/templates/eboutic/eboutic_makecommand.jinja:8
#: eboutic/templates/eboutic/eboutic_payment_result.jinja:4
#: sith/settings.py:376 sith/settings.py:384
msgid "Eboutic"
msgstr "Eboutic"
#: counter/models.py:220
msgid "sellers"
msgstr "vendeurs"
@ -4379,13 +4417,6 @@ msgstr "Appliquer les droits et le club propriétaire récursivement"
msgid "%(author)s said"
msgstr "Citation de %(author)s"
#: launderette/models.py:44
#: launderette/templates/launderette/launderette_book.jinja:5
#: launderette/templates/launderette/launderette_book_choose.jinja:4
#: launderette/templates/launderette/launderette_main.jinja:4
msgid "Launderette"
msgstr "Laverie"
#: launderette/models.py:92 launderette/models.py:127
msgid "launderette"
msgstr "laverie"
@ -4544,6 +4575,11 @@ msgstr "Utilisateur qui sera supprimé"
msgid "picture"
msgstr "photo"
#: sas/templates/sas/album.jinja:4 sas/templates/sas/main.jinja:4
#: sas/templates/sas/main.jinja:32 sas/templates/sas/picture.jinja:34
msgid "SAS"
msgstr "SAS"
#: sas/templates/sas/album.jinja:52 sas/templates/sas/album.jinja:54
#: sas/templates/sas/main.jinja:13 sas/templates/sas/main.jinja:15
#: sas/templates/sas/main.jinja:17
@ -5062,35 +5098,35 @@ msgstr " demandé"
msgid "%(effective_quantity)s left"
msgstr "%(effective_quantity)s restant"
#: subscription/models.py:45
#: subscription/models.py:44
msgid "Bad subscription type"
msgstr "Mauvais type de cotisation"
#: subscription/models.py:50
#: subscription/models.py:49
msgid "Bad payment method"
msgstr "Mauvais type de paiement"
#: subscription/models.py:56
#: subscription/models.py:55
msgid "subscription type"
msgstr "type d'inscription"
#: subscription/models.py:62
#: subscription/models.py:61
msgid "subscription start"
msgstr "début de la cotisation"
#: subscription/models.py:63
#: subscription/models.py:62
msgid "subscription end"
msgstr "fin de la cotisation"
#: subscription/models.py:72
#: subscription/models.py:71
msgid "location"
msgstr "lieu"
#: subscription/models.py:96
#: subscription/models.py:91
msgid "You can not subscribe many time for the same period"
msgstr "Vous ne pouvez pas cotiser plusieurs fois pour la même période"
#: subscription/models.py:101
#: subscription/models.py:96
msgid "Subscription error"
msgstr "Erreur de cotisation"
@ -5102,16 +5138,16 @@ msgstr "Cotisations totales"
msgid "Subscriptions by type"
msgstr "Cotisations par type"
#: subscription/templates/subscription/subscription.jinja:22
#: subscription/templates/subscription/subscription.jinja:23
msgid "Eboutic is reserved to specific users. In doubt, don't use it."
msgstr ""
"Eboutic est réservé à des cas particuliers. Dans le doute, ne l'utilisez pas."
#: subscription/views.py:98
#: subscription/views.py:101
msgid "A user with that email address already exists"
msgstr "Un utilisateur avec cette adresse email existe déjà"
#: subscription/views.py:119
#: subscription/views.py:124
msgid "You must either choose an existing user or create a new one properly"
msgstr ""
"Vous devez soit choisir un utilisateur existant, soit en créer un proprement"