Commit ced53701a6bceafaf8c58d0b2aacb1f4da5bb7d4
1 parent
e6cb5511
Exists in
master
and in
3 other branches
retirando código desnecessario no form de mural
Showing
1 changed file
with
5 additions
and
14 deletions
Show diff stats
mural/templates/mural/_form.html
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | {% render_field form.resource class='form-control' %} |
34 | 34 | |
35 | 35 | <span id="helpBlock" class="help-block">{{ form.resource.help_text }}</span> |
36 | - | |
36 | + | |
37 | 37 | {% if form.resource.errors %} |
38 | 38 | <div class="alert alert-danger alert-dismissible" role="alert"> |
39 | 39 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> |
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 | {% render_field form.post class='form-control text_simple_wysiwyg' %} |
55 | 55 | |
56 | 56 | <span id="helpBlock" class="help-block">{{ form.post.help_text }}</span> |
57 | - | |
57 | + | |
58 | 58 | {% if form.post.errors %} |
59 | 59 | <div class="alert alert-danger alert-dismissible" role="alert"> |
60 | 60 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> |
... | ... | @@ -71,24 +71,15 @@ |
71 | 71 | |
72 | 72 | <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput"> |
73 | 73 | {% render_field form.image %} |
74 | - | |
75 | - <div class="input-group common-file-input"> | |
76 | - <input type="text" readonly="" class="form-control" placeholder="{% trans 'Choose your photo...' %}"> | |
77 | - <span class="input-group-btn input-group-sm"> | |
78 | - <button type="button" class="btn btn-fab btn-fab-mini"> | |
79 | - <i class="material-icons">attach_file</i> | |
80 | - </button> | |
81 | - </span> | |
82 | - </div> | |
83 | 74 | |
84 | 75 | <div class="filedrag"> |
85 | 76 | {% trans 'Click or drop the file here' %}<br /> |
86 | - | |
77 | + | |
87 | 78 | <small>{% trans 'The file could not exceed 5MB.' %}</small> |
88 | 79 | </div> |
89 | 80 | |
90 | 81 | <span id="helpBlock" class="help-block">{{ form.image.help_text }}</span> |
91 | - | |
82 | + | |
92 | 83 | {% if form.image.errors %} |
93 | 84 | <div class="alert alert-danger alert-dismissible" role="alert"> |
94 | 85 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> |
... | ... | @@ -137,7 +128,7 @@ |
137 | 128 | var small = $("#id_image"), |
138 | 129 | filedrag = $(".filedrag"), |
139 | 130 | common = $(".common-file-input"); |
140 | - | |
131 | + | |
141 | 132 | // file select |
142 | 133 | small.on("change", FileSelectHandler); |
143 | 134 | ... | ... |