Commit 2f279d30881064873dbc925f6e03f95eec50adc2
1 parent
e936b207
Exists in
master
and in
5 other branches
Colocando a opção de abrir o file quando vai edita-lo #456
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
files/templates/files/update_file.html
... | ... | @@ -34,15 +34,16 @@ |
34 | 34 | </button> |
35 | 35 | </span> |
36 | 36 | </div> |
37 | - <div class="crearfix"> | |
38 | - <a href="{{ file.file_url.url }}" target="_blank">{% trans "See current file" %}</a> | |
39 | - </div> | |
40 | 37 | {% else %} |
41 | 38 | {% render_field field class='form-control input-sm' %} |
42 | - <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | |
43 | 39 | {% endif %} |
40 | + <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | |
44 | 41 | </div> |
45 | - | |
42 | + {% if field.auto_id == 'id_file_url' %} | |
43 | + <div class="col-md-12 crearfix"> | |
44 | + <a href="{{ file.file_url.url }}" target="_blank">{% trans "See current file" %}</a> | |
45 | + </div> | |
46 | + {% endif %} | |
46 | 47 | {% if field.errors %} |
47 | 48 | <div class="alert alert-danger alert-dismissible clearfix" role="alert"> |
48 | 49 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ... | ... |