diff --git a/monstage/static/style.css b/monstage/static/style.css index e69de29..3c44181 100644 --- a/monstage/static/style.css +++ b/monstage/static/style.css @@ -0,0 +1,144 @@ +@charset "utf-8"; +@import url(http://fonts.googleapis.com/css?family=Lato:300,700,300italic); + +body { + font: 18px 'Lato', sans-serif; + background:#4FB088; +} + +a { + font-weight:bold; + color:#4FB088; + text-decoration:none; +} + +h1 { + margin-top:0; +} + +#content { + width:80%; + max-width:700px; + padding:30px; + margin:0 auto; + background:#eee; +} + +#stage_present { + display:table; + background: #fff; + border-spacing:20px; + width:100%; +} + +#stage_misc { + display:table-cell; + min-width:300px; +} + +#stage_map { + display:table-cell; + min-width:300px; +} + + +/* formulaires */ +label { + font-weight:bold; +} + +form p { + padding:10px; + margin:0; +} + +form p:nth-child(2n) { + background:#fff; +} + +form p:nth-child(2n+1) { + background:#ddd; +} + +form textarea, form input, form select { + display:block; + font:16px 'Lato', sans-serif; + margin-right:0; + margin-left:auto; + margin-top:10px; +} + +form textarea { + width:90%; +} + +.helptext { + display:block; + font-size:0.8em; + color:#333; + text-align:right; + margin-top:10px; + width:100%; +} + +/* lieux */ +#map_addlieu { + width:100%; + height:300px; +} + +input#addlieu { + font-size:20px; + padding:15px; + width:70%; + margin:0 auto; +} + +div.lieuform { + display:block; + border:1px solid #337359; + padding:10px; + margin-bottom:20px; +} + +div.lieuform h3 { + margin:0px; + margin-bottom:5px; +} + +div.lieuform p { + background:none; + padding:0; +} + +div#candidats ul { + list-style:none; + padding:0; + margin:0; +} + +div#candidats li, div#candidats #addcandidat { + list-style:none; + display:block; + overflow:hidden; + background:#5AC99C; + cursor:pointer; + padding:10px; + border:2px #fff; +} + +div#candidats #addcandidat { + width:90%; + margin:15px auto; +} + +div#candidats li input { + float:right; + background:none; + text-decoration:underline; + border:none; +} + +div#candidats #addcandidat { + font-size:20px; +} \ No newline at end of file diff --git a/monstage/templates/monstage/stage.html b/monstage/templates/monstage/stage.html index 5e91c53..1d30d0b 100644 --- a/monstage/templates/monstage/stage.html +++ b/monstage/templates/monstage/stage.html @@ -1,15 +1,43 @@ {% extends "skeleton.html" %} +{% block extra_head %} + + +{% endblock %} + {% block content %} -
Modifier la description du stage (sujet, ...)
{% endif %} -Stage de {{ stage.profil_user.user.first_name }} {{ stage.profil_user.user.last_name }}
-Du {{ stage.start_date }} au {{ stage.end_date }}
-Matières : {% for matiere in stage.matieres.all %}{% if not forloop.first %}, {% endif %}{{ matiere.name }}{% endfor %}
-Thématiques : {% for tag in stage.thematiques.names %}{% if not forloop.first %}, {% endif %}{{ tag }}{% endfor %}
-A {% for lieu in stage.lieux.all %}{% if not forloop.first %}{% if forloop.last %} et {% else %}, {% endif %}{% endif %}{{ lieu.name }} ({{ lieu.ville }}){% endfor %}
- {% if modifiable %}{% endif %} +Modifier la description du stage (sujet, ...)
{% endif %} +{{ stage.profil_user.user.first_name }} {{ stage.profil_user.user.last_name }} a fait ce stage du {{ stage.start_date }} au {{ stage.end_date }}
+Matières : {% for matiere in stage.matieres.all %}{% if not forloop.first %}, {% endif %}{{ matiere.name }}{% endfor %}
+Thématiques : {% for tag in stage.thematiques.names %}{% if not forloop.first %}, {% endif %}{{ tag }}{% endfor %}
+À {% for lieu in stage.lieux.all %}{% if not forloop.first %}{% if forloop.last %} et {% else %}, {% endif %}{% endif %}{{ lieu.name }} ({{ lieu.ville }}){% endfor %}
+ {% if modifiable %}{% endif %} +Modifier les avis sur le stage
{% endif %}{{ debug }}
- - - - +