Renamed Save to Upload in packages view

This commit is contained in:
Christoph Haas 2015-04-18 21:38:07 +02:00
parent 063294919c
commit 42447edeaa

View file

@ -28,8 +28,7 @@
= form_for :screenshot, url: upload_image_path, html: { multipart: true } do |f| = form_for :screenshot, url: upload_image_path, html: { multipart: true } do |f|
= f.label :image, 'Upload new screenshot' = f.label :image, 'Upload new screenshot'
= f.file_field :image, id: 'fileupload', multiple: true = f.file_field :image, id: 'fileupload', multiple: true
= f.submit 'Save' = f.submit "Upload"
//- raise //- raise
// TODO: Enable comments in a later version // TODO: Enable comments in a later version
@ -38,6 +37,7 @@
.small-5.medium-5.columns .small-5.medium-5.columns
.bigpanel .bigpanel
// Use action long description // Use action long description
// TODO: Use actual description instead of placeholder text
p p
' Mail client suitable for free distribution. It supports different mail ' Mail client suitable for free distribution. It supports different mail
' accounts (POP, IMAP, Gmail), has an integrated learning Spam filter, and ' accounts (POP, IMAP, Gmail), has an integrated learning Spam filter, and
@ -50,17 +50,17 @@
//a.button.radius.expand href=upload_package_by_name_path(name: @package.name) Upload a new screenshot //a.button.radius.expand href=upload_package_by_name_path(name: @package.name) Upload a new screenshot
javascript: //javascript:
$(function () { // $(function () {
$('#fileupload').fileupload({ // $('#fileupload').fileupload({
dataType: 'json', // dataType: 'json',
done: function (e, data) { // done: function (e, data) {
$.each(data.result.files, function (index, file) { // $.each(data.result.files, function (index, file) {
$('<p/>').text(file.name).appendTo(document.body); // $('<p/>').text(file.name).appendTo(document.body);
}); // });
} // }
}); // });
}); // });
// TODO: Enable comment form // TODO: Enable comment form
//javascript: //javascript: