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,7 +33,7 @@ | ||
33 | {% render_field form.resource class='form-control' %} | 33 | {% render_field form.resource class='form-control' %} |
34 | 34 | ||
35 | <span id="helpBlock" class="help-block">{{ form.resource.help_text }}</span> | 35 | <span id="helpBlock" class="help-block">{{ form.resource.help_text }}</span> |
36 | - | 36 | + |
37 | {% if form.resource.errors %} | 37 | {% if form.resource.errors %} |
38 | <div class="alert alert-danger alert-dismissible" role="alert"> | 38 | <div class="alert alert-danger alert-dismissible" role="alert"> |
39 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | 39 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> |
@@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
54 | {% render_field form.post class='form-control text_simple_wysiwyg' %} | 54 | {% render_field form.post class='form-control text_simple_wysiwyg' %} |
55 | 55 | ||
56 | <span id="helpBlock" class="help-block">{{ form.post.help_text }}</span> | 56 | <span id="helpBlock" class="help-block">{{ form.post.help_text }}</span> |
57 | - | 57 | + |
58 | {% if form.post.errors %} | 58 | {% if form.post.errors %} |
59 | <div class="alert alert-danger alert-dismissible" role="alert"> | 59 | <div class="alert alert-danger alert-dismissible" role="alert"> |
60 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | 60 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> |
@@ -71,24 +71,15 @@ | @@ -71,24 +71,15 @@ | ||
71 | 71 | ||
72 | <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput"> | 72 | <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput"> |
73 | {% render_field form.image %} | 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 | <div class="filedrag"> | 75 | <div class="filedrag"> |
85 | {% trans 'Click or drop the file here' %}<br /> | 76 | {% trans 'Click or drop the file here' %}<br /> |
86 | - | 77 | + |
87 | <small>{% trans 'The file could not exceed 5MB.' %}</small> | 78 | <small>{% trans 'The file could not exceed 5MB.' %}</small> |
88 | </div> | 79 | </div> |
89 | 80 | ||
90 | <span id="helpBlock" class="help-block">{{ form.image.help_text }}</span> | 81 | <span id="helpBlock" class="help-block">{{ form.image.help_text }}</span> |
91 | - | 82 | + |
92 | {% if form.image.errors %} | 83 | {% if form.image.errors %} |
93 | <div class="alert alert-danger alert-dismissible" role="alert"> | 84 | <div class="alert alert-danger alert-dismissible" role="alert"> |
94 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | 85 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> |
@@ -137,7 +128,7 @@ | @@ -137,7 +128,7 @@ | ||
137 | var small = $("#id_image"), | 128 | var small = $("#id_image"), |
138 | filedrag = $(".filedrag"), | 129 | filedrag = $(".filedrag"), |
139 | common = $(".common-file-input"); | 130 | common = $(".common-file-input"); |
140 | - | 131 | + |
141 | // file select | 132 | // file select |
142 | small.on("change", FileSelectHandler); | 133 | small.on("change", FileSelectHandler); |
143 | 134 |