Skip to content
Snippets Groups Projects
Commit a9db1315 authored by kaiyou's avatar kaiyou
Browse files

Remove largely unused help button

parent 6b3c02c6
No related branches found
No related tags found
1 merge request!20Add 'remember me' button
Pipeline #1222 passed
......@@ -2,10 +2,3 @@ require('./app.scss');
import jQuery from 'jquery';
import 'bootstrap';
jQuery(document).ready(function() {
jQuery('.automodal').modal('show')
if( jQuery('#help_main').length === 0 ) {
jQuery('#help_main_button').addClass('desactivate')
}
})
#help_main_button {
cursor: pointer;
&.desactivate {
opacity: 0.2;
cursor: default;
&:hover {
background: none;
}
}
}
......@@ -43,12 +43,6 @@
</a>
</li>
{% endif %}
<li class="dropdown user">
<a class="dropdown-toggle" data-toggle="modal" id="help_main_button" data-target="#help_main" class="hidden">
<i class="fa fa-life-ring"></i>
{% trans %}Help{% endtrans %}
</a>
</li>
</ul>
</div>
</nav>
......
......@@ -41,25 +41,6 @@
</div>
{% endmacro %}
{% macro help(title, id="main", buttons="", auto=False) %}
<div class="{{ "automodal" if auto else "" }} modal fade" id="help_{{ id }}" tabindex="-1" role="dialog" aria-labelledby="help_{{ id }}_label" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="help_{{ id }}_label">{{ title }}</h4>
</div>
<div class="modal-body">
{{ caller() }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans %}Close{% endtrans %}</button>
{{ buttons }}
</div>
</div>
</div>
</div>
{% endmacro %}
{% macro form_fields(fields, prepend='', append='', label=True) %}
{% set width = (12 / fields|length)|int %}
<div class="form-group">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment