Renamed Save to Upload in packages view
This commit is contained in:
parent
063294919c
commit
42447edeaa
1 changed files with 13 additions and 13 deletions
|
|
@ -28,8 +28,7 @@
|
|||
= form_for :screenshot, url: upload_image_path, html: { multipart: true } do |f|
|
||||
= f.label :image, 'Upload new screenshot'
|
||||
= f.file_field :image, id: 'fileupload', multiple: true
|
||||
= f.submit 'Save'
|
||||
|
||||
= f.submit "Upload"
|
||||
//- raise
|
||||
|
||||
// TODO: Enable comments in a later version
|
||||
|
|
@ -38,6 +37,7 @@
|
|||
.small-5.medium-5.columns
|
||||
.bigpanel
|
||||
// Use action long description
|
||||
// TODO: Use actual description instead of placeholder text
|
||||
p
|
||||
' Mail client suitable for free distribution. It supports different mail
|
||||
' 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
|
||||
|
||||
javascript:
|
||||
$(function () {
|
||||
$('#fileupload').fileupload({
|
||||
dataType: 'json',
|
||||
done: function (e, data) {
|
||||
$.each(data.result.files, function (index, file) {
|
||||
$('<p/>').text(file.name).appendTo(document.body);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
//javascript:
|
||||
// $(function () {
|
||||
// $('#fileupload').fileupload({
|
||||
// dataType: 'json',
|
||||
// done: function (e, data) {
|
||||
// $.each(data.result.files, function (index, file) {
|
||||
// $('<p/>').text(file.name).appendTo(document.body);
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
|
||||
// TODO: Enable comment form
|
||||
//javascript:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue