From 34830f897e7c5d9f549eb2e147e82cf29f39818d Mon Sep 17 00:00:00 2001 From: Qwann Date: Tue, 26 Jul 2016 11:56:54 +0200 Subject: [PATCH] =?UTF-8?q?registration=20est=20cass=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestioncof/static/css/cof.css | 75 +++++++++++++++++---- gestioncof/templates/home.html | 1 - gestioncof/templates/registration.html | 60 ++++++++--------- gestioncof/templates/registration_form.html | 48 +++++++------ gestioncof/templates/registration_post.html | 16 ++--- 5 files changed, 127 insertions(+), 73 deletions(-) diff --git a/gestioncof/static/css/cof.css b/gestioncof/static/css/cof.css index a544a119..139304ee 100644 --- a/gestioncof/static/css/cof.css +++ b/gestioncof/static/css/cof.css @@ -799,36 +799,85 @@ input[type="text"], input[type=password] { input#search_autocomplete { width: 600px; - font-size: 14px; - height: 20px; + font-size: 18px; + height: 40px; padding: 10px 8px; margin: 0 auto; + margin-top: 20px; display: block; color: #aaa; } input#search_autocomplete:focus { - font-size: 18px; color: #343a4a; } -.autocomplete {margin-bottom:5px;} -.yourlabs-autocomplete ul {list-style-type: none; padding: 0; margin: 0; font-size: 1.5em;} -.yourlabs-autocomplete li {padding: 6px 5px; display: block;} -.yourlabs-autocomplete li a {text-decoration: none;} -.yourlabs-autocomplete li a span.highlight {text-decoration: underline; font-weight: bold;} -.yourlabs-autocomplete li.autocomplete-header {background-color: #FFEF9E; padding: 3px 5px; color: #000;} -.yourlabs-autocomplete li.autocomplete-value {cursor: pointer;} -.yourlabs-autocomplete li.hilight {background-color: #EA4839; color: #FFF; } +.autocomplete { + margin-bottom:5px; +} + +.yourlabs-autocomplete ul { + list-style-type: none; + padding: 0; + margin: 0; + font-size: 1.5em; +} + +.yourlabs-autocomplete li { + padding: 6px 5px; + display: block; +} + +.yourlabs-autocomplete li a { + text-decoration: none; +} + +.yourlabs-autocomplete li a span.highlight { + text-decoration: underline; + font-weight: bold; +} + +.yourlabs-autocomplete li.autocomplete-header { + background-color: #FFEF9E; + padding: 3px 5px; + color: #000; +} + +.yourlabs-autocomplete li.autocomplete-value { + cursor: pointer; +} + +.yourlabs-autocomplete li.hilight { + background-color: #EA4839; + color: #FFF; +} + .yourlabs-autocomplete li.hilight a {color: #FFF; } .yourlabs-autocomplete { border: none; background: none; } .yourlabs-autocomplete.outer-container { position: relative; } -.yourlabs-autocomplete.inner-container { position: absolute; left: -1px; top: 2px; border: 1px solid #B7B7B7; width: 618px; background: #fff; } -.yourlabs-autocomplete.inner-container { margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; position: relative; list-style-type: none; } + +.yourlabs-autocomplete.inner-container { + position: absolute; + left: -1px; + top: 2px; + border: 1px solid #B7B7B7; + width: 618px; + background: #fff; +} + +.yourlabs-autocomplete.inner-container { + margin: 0; + padding: 0; + overflow-x: hidden; + overflow-y: auto; + position: relative; + list-style-type: none; +} hr { border-color : #D4D6C8; } + /* hr { border: 0; diff --git a/gestioncof/templates/home.html b/gestioncof/templates/home.html index 2e867f90..380368b4 100644 --- a/gestioncof/templates/home.html +++ b/gestioncof/templates/home.html @@ -55,7 +55,6 @@
  • Éditer mon profil
  • {% if not user.profile.login_clipper %}
  • Changer mon mot de passe
  • {% endif %} -
  • Se déconnecter
  • diff --git a/gestioncof/templates/registration.html b/gestioncof/templates/registration.html index 18434660..fc37251c 100644 --- a/gestioncof/templates/registration.html +++ b/gestioncof/templates/registration.html @@ -7,34 +7,34 @@ {% endblock %} {% block realcontent %} -

    Inscription d'un nouveau membre

    - -
    - - +

    Inscription d'un nouveau membre

    + +
    + + {% endblock %} diff --git a/gestioncof/templates/registration_form.html b/gestioncof/templates/registration_form.html index 66edb6e9..6cf0d83b 100644 --- a/gestioncof/templates/registration_form.html +++ b/gestioncof/templates/registration_form.html @@ -1,21 +1,27 @@ - {% if login_clipper %}

    Inscription associée au compte clipper {{ login_clipper }}

    - {% elif member %}

    Inscription du compte GestioCOF existant {{ member.username }}

    - {% else %}

    Inscription d'un nouveau compte (extérieur ?)

    {% endif %} -
    - {% csrf_token %} - - {{ user_form.as_table }} - {{ profile_form.as_table }} - {% if event_forms %} -
    - {% for event_form in event_forms %} -
    -

    Inscription {{ event_form.event.title }} :

    - - {{ event_form.as_table }} -
    - {% endfor %} - {% endif %} - {% if login_clipper or member %}{% endif %} - -
    + {% if login_clipper %} +

    Inscription associée au compte clipper {{ login_clipper }}

    + {% elif member %} +

    Inscription du compte GestioCOF existant {{ member.username }}

    + {% else %} +

    Inscription d'un nouveau compte (extérieur ?)

    + {% endif %} +
    + {% csrf_token %} + + {{ user_form.as_table }} + {{ profile_form.as_table }} + {% if event_forms %} +
    + {% for event_form in event_forms %} +
    +

    Inscription {{ event_form.event.title }} :

    + + {{ event_form.as_table }} +
    + {% endfor %} + {% endif %} + {% if login_clipper or member %} + + {% endif %} + +
    diff --git a/gestioncof/templates/registration_post.html b/gestioncof/templates/registration_post.html index 9548ec39..ce2f3786 100644 --- a/gestioncof/templates/registration_post.html +++ b/gestioncof/templates/registration_post.html @@ -1,12 +1,12 @@ {% extends "base_title.html" %} {% block realcontent %} -

    Inscription d'un nouveau membre

    - {% if success %} -

    L'inscription de {{ member.first_name }} {{ member.last_name }} ({{ member.username }}) a été enregistrée avec succès. - {% if member.profile.is_cof %}Il est désormais membre du COF n°{{ member.profile.num }} !{% endif %}

    - {% endif %} -
    - {% include "registration_form.html" %} -
    +

    Inscription d'un nouveau membre

    + {% if success %} +

    L'inscription de {{ member.first_name }} {{ member.last_name }} ({{ member.username }}) a été enregistrée avec succès. + {% if member.profile.is_cof %}Il est désormais membre du COF n°{{ member.profile.num }} !{% endif %}

    + {% endif %} +
    + {% include "registration_form.html" %} +
    {% endblock %}