Parcourir la source

modifs esthetiques, boutons, formulaires…

julpec il y a 8 ans
Parent
commit
246eea0bba

+ 14 - 0
panorama/static/panorama/css/celutz.css

@@ -292,3 +292,17 @@ fieldset#adding {
     margin: 0px auto;
     margin: 0px auto;
   }
   }
 }
 }
+.loca_buttons {
+    width: 160px;
+}
+select {
+display: inline-block;
+max-width: 100%;
+padding: 0.375rem 1.75rem 0.375rem 0.75rem;
+color: #55595C;
+vertical-align: middle;
+background: #FFF url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat scroll right 0.75rem center / 8px 10px;
+border: 1px solid rgba(0, 0, 0, 0.15);
+border-radius: 0.25rem;
+-moz-appearance: none;
+}

+ 3 - 4
panorama/templates/panorama/sidebar.html

@@ -18,7 +18,7 @@
                 <li>
                 <li>
                     <form action="{% url 'panorama:locate_refpoint' %}" enctype="multipart/form-data" method="post">{% csrf_token %}
                     <form action="{% url 'panorama:locate_refpoint' %}" enctype="multipart/form-data" method="post">{% csrf_token %}
                       {{ refpoints_form.as_p }}
                       {{ refpoints_form.as_p }}
-                      <input type="submit" value={% trans "Locate" %} />
+                      <input type="submit" class="btn btn-primary btn-sm" value={% trans "Locate" %} />
                     </form>
                     </form>
                 </li>
                 </li>
             </ul>
             </ul>
@@ -31,8 +31,7 @@
                         {{ custom_point_form.latitude.label_tag }}{{ custom_point_form.latitude }}
                         {{ custom_point_form.latitude.label_tag }}{{ custom_point_form.latitude }}
                         {{ custom_point_form.longitude.label_tag }}{{ custom_point_form.longitude }}
                         {{ custom_point_form.longitude.label_tag }}{{ custom_point_form.longitude }}
                         {{ custom_point_form.altitude.label_tag }}{{ custom_point_form.altitude }}
                         {{ custom_point_form.altitude.label_tag }}{{ custom_point_form.altitude }}
-                        </br>
-                        <input type="submit" value={% trans "Locate" %} />
+                        <input type="submit" class="btn btn-primary btn-sm" value={% trans "Locate" %} />
                     </form>
                     </form>
                 </li>
                 </li>
             </ul>
             </ul>
@@ -48,7 +47,7 @@
                         {{ newpanorama_form.latitude.label_tag }}{{ newpanorama_form.latitude }}
                         {{ newpanorama_form.latitude.label_tag }}{{ newpanorama_form.latitude }}
                         {{ newpanorama_form.longitude.label_tag }}{{ newpanorama_form.longitude }}
                         {{ newpanorama_form.longitude.label_tag }}{{ newpanorama_form.longitude }}
                         {{ newpanorama_form.altitude.label_tag }}{{ newpanorama_form.altitude }}
                         {{ newpanorama_form.altitude.label_tag }}{{ newpanorama_form.altitude }}
-                        <input type="submit" value={% trans "Add" %} />
+                        <input type="submit" class="btn btn-primary btn-sm" value={% trans "Add" %} />
                     </form>
                     </form>
                 </li>
                 </li>
             </ul>
             </ul>

+ 3 - 3
panorama/templates/panorama/view.html

@@ -119,9 +119,9 @@
                     <input name="loca_longitude" type="number" min="-180" max="180" id="loca_longitude"/></label>
                     <input name="loca_longitude" type="number" min="-180" max="180" id="loca_longitude"/></label>
                   <label class="form_col" title="L'altitude positive Ex: 170">{% trans "Altitude" %} :
                   <label class="form_col" title="L'altitude positive Ex: 170">{% trans "Altitude" %} :
                     <input  name="loca_altitude" type="number" min="-400" id="loca_altitude"/></label>
                     <input  name="loca_altitude" type="number" min="-400" id="loca_altitude"/></label>
-                  <div class="answer">
-                    <input type="button" value="{% trans "Localize" %}" id="loca_button"/>
-                    <input type="button" value="{% trans "Delete" %}" id="loca_erase"/>
+                  <div class="loca_buttons">
+                    <input type="button" class="btn btn-info btn-sm" value="{% trans "Localize" %}" id="loca_button"/>
+                    <input type="button" class="btn btn-danger btn-sm" value="{% trans "Delete" %}" id="loca_erase"/>
                   </div>
                   </div>
             </li>
             </li>
         </ul>
         </ul>