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,15 +34,16 @@ | ||
34 | </button> | 34 | </button> |
35 | </span> | 35 | </span> |
36 | </div> | 36 | </div> |
37 | - <div class="crearfix"> | ||
38 | - <a href="{{ file.file_url.url }}" target="_blank">{% trans "See current file" %}</a> | ||
39 | - </div> | ||
40 | {% else %} | 37 | {% else %} |
41 | {% render_field field class='form-control input-sm' %} | 38 | {% render_field field class='form-control input-sm' %} |
42 | - <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | ||
43 | {% endif %} | 39 | {% endif %} |
40 | + <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | ||
44 | </div> | 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 | {% if field.errors %} | 47 | {% if field.errors %} |
47 | <div class="alert alert-danger alert-dismissible clearfix" role="alert"> | 48 | <div class="alert alert-danger alert-dismissible clearfix" role="alert"> |
48 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | 49 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"> |