ソースを参照

Explanation of mass_add Activity

Maarten van den Berg 7 年 前
コミット
35f3de416f
共有3 個のファイルを変更した18 個の追加2 個の削除を含む
  1. 12 2
      app/views/activities/mass_new.html.haml
  2. 3 0
      config/locales/activities/en.yml
  3. 3 0
      config/locales/activities/nl.yml

+ 12 - 2
app/views/activities/mass_new.html.haml

@@ -1,6 +1,16 @@
1 1
 .container
2
+  %h1
3
+    = t 'activities.mass_import', group: @group.name
4
+  .row
5
+    .col-md-12
6
+      %p
7
+        = t 'activities.mass_import_explanation'
8
+      = link_to asset_path('batch_activities.csv'), class: 'btn btn-default' do
9
+        = t :download
2 10
   .row
3 11
     .col-md-12
4 12
       = form_tag(group_activities_mass_new_path(@group), method: 'post', multipart: true) do
5
-        = file_field_tag 'spreadsheet'
6
-        = submit_tag
13
+        .form-group
14
+          = file_field_tag 'spreadsheet'
15
+        .form-group
16
+          = submit_tag

+ 3 - 0
config/locales/activities/en.yml

@@ -7,8 +7,11 @@ en:
7 7
     created: "Activity created."
8 8
     updated: "Activity updated."
9 9
     destroyed: "Activity destroyed."
10
+    mass_import: "Create multiple activities in %{group}"
10 11
     mass_imported: "%{count} activities created!"
11 12
 
13
+    mass_import_explanation: "Download the example file using the link below, fill in the fields (end and deadline are optional), and upload the file using the upload form."
14
+
12 15
     upcoming_yours: "Upcoming activities organized by you"
13 16
     yours: "Your activities"
14 17
 

+ 3 - 0
config/locales/activities/nl.yml

@@ -7,8 +7,11 @@ nl:
7 7
     created: "Activiteit aangemaakt."
8 8
     updated: "Activiteit bijgewerkt."
9 9
     destroyed: "Activiteit verwijderd."
10
+    mass_import: "Meerdere activiteiten aanmaken in %{group}"
10 11
     mass_imported: "%{count} activiteiten aangemaakt!"
11 12
 
13
+    mass_import_explanation: "Download het voorbeeldbestand via de link hieronder, vul de velden in in het formaat zoals het staat aangegeven (einde en deadline zijn niet verplicht), en upload het via de knop onderaan."
14
+
12 15
     upcoming_yours: "Aankomende activiteiten georganiseerd door jou"
13 16
     yours: "Jouw activiteiten"
14 17