Sfoglia il codice sorgente

always use dropdown list for alias suffix

Son NK 5 anni fa
parent
commit
3f2f2cabf4
1 ha cambiato i file con 12 aggiunte e 16 eliminazioni
  1. 12 16
      app/dashboard/templates/dashboard/custom_alias.html

+ 12 - 16
app/dashboard/templates/dashboard/custom_alias.html

@@ -32,23 +32,19 @@
         </div>
 
 
-        <div class="col-sm-6 {% if suffixes|length == 1 %} align-self-center {% endif %}"
+        <div class="col-sm-6"
              style="padding-left: 5px">
-          {% if suffixes|length > 1 %}
-            <select class="form-control" name="suffix">
-              {% for suffix in suffixes %}
-                <option value="{{ suffix[1] }}">
-                  {% if suffix[0] %}
-                    {{ suffix[1] }} (your domain)
-                  {% else %}
-                    {{ suffix[1] }}
-                  {% endif %}
-                </option>
-              {% endfor %}
-            </select>
-          {% else %}
-            <span>{{ suffixes[0][1] }}</span>
-          {% endif %}
+          <select class="form-control" name="suffix">
+            {% for suffix in suffixes %}
+              <option value="{{ suffix[1] }}">
+                {% if suffix[0] %}
+                  {{ suffix[1] }} (your domain)
+                {% else %}
+                  {{ suffix[1] }}
+                {% endif %}
+              </option>
+            {% endfor %}
+          </select>
         </div>
       </div>