Commit 13542973 authored by erreur401's avatar erreur401

form css bootstrap

parent 0c66b13d
......@@ -250,11 +250,19 @@ ul#menuSecond li a:hover {
.tutoItem .tutoBox .usinage.overTuto:before {
background: red;
}
.tutoItem .tutoBox .laser.overTuto:before {
background: orange;
}
.tutoItem .tutoBox:hover .elec.overTuto:before {
background: url(../img/electronique.png) no-repeat #90ee90;
background-position: center !important;
background-size: 40%;
}
.tutoItem .tutoBox:hover .laser.overTuto:before {
background: url(../img/laser.png) no-repeat #90ee90;
background-position: center !important;
background-size: 40%;
}
.tutoItem .tutoBox:hover .prog.overTuto:before {
background: url(../img/cncico.png) no-repeat blue;
background-position: center;
......@@ -371,27 +379,27 @@ ul#menuSecond li a:hover {
background-size: 50%;
}
.laser {
.badgeImg.laser {
background-image: url(../img/electronique.png);
}
.cnc {
.badgeImg.cnc {
background-image: url(../img/cnc.png);
}
.electronique {
.badgeImg.electronique {
background-image: url(../img/electronique.png);
}
.cad {
.badgeImg.cad {
background-image: url(../img/electronique.png);
}
.impression3d {
.badgeImg.impression3d {
background-image: url(../img/3dprint.png);
}
.maker {
.badgeImg.maker {
background-image: url(../img/3dprint.png);
}
......
......@@ -260,12 +260,20 @@ ul {
.usinage.overTuto:before {
background: red;
}
.laser.overTuto:before {
background: orange;
}
&:hover {
.elec.overTuto:before {
background: url(../img/electronique.png) no-repeat #90ee90;
background-position: center !important;
background-size: 40%;
}
.laser.overTuto:before {
background: url(../img/laser.png) no-repeat #90ee90;
background-position: center !important;
background-size: 40%;
}
.prog.overTuto:before {
background: url(../img/cncico.png) no-repeat blue;
background-position: center;
......@@ -393,32 +401,31 @@ ul {
}
.laser{
.badgeImg.laser{
background-image: url(../img/electronique.png) ;
}
.cnc{
.badgeImg.cnc{
background-image: url(../img/cnc.png) ;
}
.electronique{
.badgeImg.electronique{
background-image: url(../img/electronique.png) ;
}
.cad{
.badgeImg.cad{
background-image: url(../img/electronique.png) ;
}
.impression3d {
.badgeImg.impression3d {
background-image: url(../img/3dprint.png) ;
}
.maker {
.badgeImg.maker {
background-image: url(../img/3dprint.png) ;
}
......
......@@ -3,25 +3,28 @@
{% block content %}
{% include "security/_messages.html" %}
<h1>{{ _('Login') }}</h1>
<div class="container ">
<dir class="row no-gutters justify-content-md-center align-items-center">
<div class=" col col-12 col-sm-8 col-md-4 col-lg-4">
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
<div class="row no-gutters justify-content-md-center align-items-center">
<div class=" col col-12 col-sm-8 col-md-4 col-lg-4 form-group">
<h1>{{ _('Login') }}</h1>
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form" class="form form-horizontal" >
{{ login_user_form.hidden_tag() }}
{{ render_field_with_errors(login_user_form.email) }}
{{ render_field_with_errors(login_user_form.password) }}
{{ render_field_with_errors(login_user_form.email , class ='form-control') }}
{{ render_field_with_errors(login_user_form.password , class ='form-control' ) }}
{% if security.recoverable %}
<a href="{{ url_for_security('forgot_password') }}">{{ _('Forgot password') }}</a><br/>
{% endif %}
{% endif %}
{{ render_field_with_errors(login_user_form.remember) }}
{{ render_field(login_user_form.submit) }}
{{ render_field(login_user_form.submit, class ='form-control') }}
</form>
{# {% include "security/_menu.html" %}#}
</div>
</div>
</div>
</div>
{% endblock %}
......@@ -3,24 +3,25 @@
{% block content %}
{% include "security/_messages.html" %}
<h1>{{ _('Register') }}</h1>
<div class="container ">
<div class="row no-gutters justify-content-md-center align-items-center">
<div class=" col col-12 col-sm-8 col-md-4 col-lg-4">
<div class="row no-gutters justify-content-md-center align-items-center">
<div class=" col col-12 col-sm-8 col-md-4 col-lg-4 form-group">
<h1>{{ _('Register') }}</h1>
<form action="{{ url_for_security('register') }}" method="POST" name="register_user_form">
{{ register_user_form.hidden_tag() }}
{{ render_field_with_errors(register_user_form.first_name) }}
{{ render_field_with_errors(register_user_form.last_name) }}
{{ render_field_with_errors(register_user_form.email) }}
{{ render_field_with_errors(register_user_form.password) }}
{{ render_field_with_errors(register_user_form.first_name , class ='form-control') }}
{{ render_field_with_errors(register_user_form.last_name , class ='form-control') }}
{{ render_field_with_errors(register_user_form.email , class ='form-control') }}
{{ render_field_with_errors(register_user_form.password , class ='form-control') }}
{% if register_user_form.password_confirm %}
{{ render_field_with_errors(register_user_form.password_confirm) }}
{{ render_field_with_errors(register_user_form.password_confirm , class ='form-control' ) }}
{% endif %}
{{ render_field(register_user_form.submit) }}
{{ render_field(register_user_form.submit , class ='form-control' ) }}
</form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment