Commit 1e86a4179a4eb0a7d9d798d9da1c814c0b486529

Authored by Gustavo
1 parent 9c4ea158

Modified news form.html to include some things of the crop

Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
news/templates/news/_form.html
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label> 9 <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label>
10 {% render_field field class='form-control' %} 10 {% render_field field class='form-control' %}
11 <div class="input-group"> 11 <div class="input-group">
12 - <input type="text" readonly="" class="form-control" placeholder="{% trans 'Choose your photo...' %}"> 12 + <input type="text" readonly="" class="form-control" id="pic_holder" placeholder="{% trans 'Choose your photo...' %}">
13 <span class="input-group-btn input-group-sm"> 13 <span class="input-group-btn input-group-sm">
14 <button type="button" class="btn btn-fab btn-fab-mini"> 14 <button type="button" class="btn btn-fab btn-fab-mini">
15 <i class="material-icons">image</i> 15 <i class="material-icons">image</i>
@@ -27,11 +27,12 @@ @@ -27,11 +27,12 @@
27 {% endif %} 27 {% endif %}
28 {% render_field field class='form-control text_wysiwyg' %} 28 {% render_field field class='form-control text_wysiwyg' %}
29 {% else %} 29 {% else %}
30 - {% if field.field.required %}  
31 - <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label>  
32 - {% else %}  
33 - <label for="{{ field.auto_id }}">{{ field.label }}</label>  
34 30
  31 + {% if field.auto_id == 'id_title' %}
  32 + {% if field.field.required %}
  33 + <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label>
  34 + {% else %}
  35 + {% endif %}
35 {% endif %} 36 {% endif %}
36 {% render_field field class='form-control' %} 37 {% render_field field class='form-control' %}
37 38
@@ -65,3 +66,4 @@ @@ -65,3 +66,4 @@
65 </div> 66 </div>
66 67
67 </form> 68 </form>
  69 +{% include 'users/modal_crop.html' %}