|
1 | 1 | %p.text.text-info |
2 | 2 | Use the editor below or upload an existing YAML file from your computer. |
3 | | - |
4 | 3 | - # list will be [ "Only Me", "user's", "user", "groups", "Everybody" |
5 | 4 | - access_control_items = @user_groups.map{ |g| [ g.name, g.id ] }.unshift(['Only Me', 0]).push(['Everybody', -1]) |
6 | 5 | = semantic_form_for @exercise, url: exercises_upload_create_path, method: :post do |f| |
|
17 | 16 | input_html: { class: 'code', autofocus: true, data: { lang: 'text/x-yaml' }, |
18 | 17 | value: @text_representation.present? ? @text_representation : '' }, |
19 | 18 | label: 'YAML Representation of the Exercise:' |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | 19 | = f.text_field :fileList, value: "", :type => "hidden" |
25 | 20 | = f.text_field :oldfileList, value: @ownerships_all, :type => "hidden" |
26 | 21 | = f.text_field :ownerships_res_name, value: @ownerships_res_name, :type => "hidden" |
27 | | - |
28 | | - |
29 | | - |
30 | 22 | #fileName |
31 | 23 | #filelist.container.hidden |
32 | 24 | .row |
|
41 | 33 | %th.col-sm-1 Pixel |
42 | 34 | %th.col-sm-1 Uploaded |
43 | 35 | %th.col-sm-1 Delete |
44 | | - |
45 | | - |
46 | 36 | .image-upload |
47 | 37 | %label{:for => "exercise_files"} |
48 | 38 | %a.btn.btn-info.btn-lg{class: 'btn btn-primary'} |
49 | 39 | %span.glyphicon.glyphicon-file |
50 | | - |
51 | 40 | = f.file_field :files, multiple: true |
52 | | - |
53 | | - |
54 | | - |
55 | 41 | = stylesheet_link_tag "exercise_uploader.scss" |
56 | 42 | = javascript_include_tag 'exercise_uploader.js' |
57 | 43 | %p |
58 | 44 | .row |
59 | 45 | .col-md-9 |
60 | 46 | = f.submit class: 'btn btn-primary', value: 'Submit' |
61 | | - |
62 | | - |
0 commit comments