Skip to content

Commit

Permalink
fixes #7061 - show file upload when template is not locked
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam authored and ohadlevy committed Aug 13, 2014
1 parent 02432b4 commit 415785a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/config_templates/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>
<%= textarea_f f, :template, :class => "template_text", :label =>:none, :disabled => @config_template.locked?, :size => "max", :'data-file-name' => @config_template.name %>
<% if @config_template.locked? -%>
<% unless @config_template.locked? -%>
<%= file_field_f f, :template, :class => "template_file",:size => "col-md-10",
:help_block => _("Selecting a file will override the editor and load the file instead") %>
<% end -%>
Expand Down

0 comments on commit 415785a

Please sign in to comment.