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 9 <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label>
10 10 {% render_field field class='form-control' %}
11 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 13 <span class="input-group-btn input-group-sm">
14 14 <button type="button" class="btn btn-fab btn-fab-mini">
15 15 <i class="material-icons">image</i>
... ... @@ -27,11 +27,12 @@
27 27 {% endif %}
28 28 {% render_field field class='form-control text_wysiwyg' %}
29 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 36 {% endif %}
36 37 {% render_field field class='form-control' %}
37 38  
... ... @@ -65,3 +66,4 @@
65 66 </div>
66 67  
67 68 </form>
  69 +{% include 'users/modal_crop.html' %}
... ...