tr.nested-fields td = f.label :descricao, "Descrição", class: "control-label" = f.text_field :descricao, placeholder: nil, class: "form-control", rows: 5 = error_for f.object, :descricao td - if f.object.persisted? = link_to image_tag(f.object.file.url(:thumb)), f.object.file.url, target: "_blank" td = f.label :file, "Foto*", class: "control-label" div class="fileinput input-group fileinput-new" data-provides="fileinput" div class="form-control" data-trigger="fileinput" i class="icone-anexo_cotacao fileinput-exists" .fileinput-filename .input-group-addon class="btn btn-default btn-file" .fileinput-new Escolher file .fileinput-exists Trocar = f.file_field :file, value: f.object.file a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput" Remover - if f.object.persisted? p.form-control-static = link_to f.object.file_file_name, f.object.file.url, target: "_blank" = error_for f.object, :file = f.hidden_field :verificacao_da_fiscalizacao_id, value: f.object.verificacao_da_fiscalizacao_id td = link_to_remove_association " Remover", f, class: "btn btn-sm btn-danger icone-anular"