Skip to content
Snippets Groups Projects
Commit cba2e50c authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

add language selection menu on edugain templates

parent 8f87b608
Branches
Tags
No related merge requests found
...@@ -317,19 +317,6 @@ td.label { ...@@ -317,19 +317,6 @@ td.label {
border: 1px solid #41494c; border: 1px solid #41494c;
} }
.nocursor{
cursor: default!important;
opacity:0.6;
}
.nocursor label{
cursor: default!important;
color:#aaa!important;
}
.nocursor [class*=" fa-"]:before{
text-align: right;
font-size: 1rem;
}
/* Small screens */ /* Small screens */
/* Define mobile styles */ /* Define mobile styles */
......
...@@ -203,6 +203,19 @@ main form { ...@@ -203,6 +203,19 @@ main form {
float:none !important; float:none !important;
} }
.nocursor{
cursor: default!important;
opacity:0.6;
}
.nocursor label{
cursor: default!important;
color:#aaa!important;
}
.nocursor [class*=" fa-"]:before{
text-align: right;
font-size: 1rem;
}
@media only screen and (max-width: 800px){ @media only screen and (max-width: 800px){
.wizard > .steps { .wizard > .steps {
width: 100%; width: 100%;
......
...@@ -40,13 +40,37 @@ ...@@ -40,13 +40,37 @@
<div id="core_nav_section" class="et-menu-holder"> <div id="core_nav_section" class="et-menu-holder">
<ul id="core_nav" class="et-menu et-left"> <ul id="core_nav" class="et-menu et-left">
<li class="et-first-option no-children"><a href="[% app.url %]" title="Home"><img style="width: 16px; height: 15px; position: relative; top: 3px" src="images/home_logo.png" alt="Home icon" /></a></li> <li class="et-first-option no-children"><a href="[% app.url %]" title="Home"><img style="width: 16px; height: 15px; position: relative; top: 3px" src="images/home_logo.png" alt="Home icon" /></a></li>
<!--<li class="et-option et-has-children"><span>Top item 1&lt;!&ndash; with children &ndash;&gt;</span>--> <li class="et-option et-has-children">
<!--<ul class="et-submenu">--> <span>Language</span>
<!--<li class="et-submenu-option"><a href="/section/item1.html">Sub-item 1</a></li>--> <ul class="et-submenu">
<!--<li class="et-submenu-option"><a href="/section/item1.html">Sub-item 2</a></li>--> <li class="et-submenu-option">
<!--</ul>--> <a
<!--</li>--> [% IF lh.language_tag() == "en" %]
<!--<li class="et-option no-children"><a href="/item2.html">Top item 2&lt;!&ndash; with NO children &ndash;&gt;</a></li>--> class="nocursor"
[% ELSE %]
href="[% app.url %]?action=[% action %]&federation=[% federation %]&entityid=[% entityid %]&email=[% email %]&token=[% token %]&lang=en"
[% END %]
data-lang="en" title="English">
<img src="images/en.png" />
<label>English</label>
[% IF lh.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %]
</a>
</li>
<li class="et-submenu-option">
<a
[% IF lh.language_tag() == "fr" %]
class="nocursor"
[% ELSE %]
href="[% app.url %]?action=[% action %]&federation=[% federation %]&entityid=[% entityid %]&email=[% email %]&token=[% token %]&lang=fr"
[% END %]
data-lang="fr" title="Français">
<img src="images/fr.png" />
<label>Français</label>
[% IF lh.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %]
</a>
</li>
</ul>
</li>
</ul> </ul>
</div> </div>
<div id="help_nav_section" class="et-menu-holder"> <div id="help_nav_section" class="et-menu-holder">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment