Add folders to the documents plugin
This commit is contained in:
parent
611a29fe2d
commit
dc94e98138
19 changed files with 141 additions and 71 deletions
|
|
@ -3,7 +3,7 @@ de:
|
|||
attributes:
|
||||
document:
|
||||
created_at: Erstellt am
|
||||
created_by_user_id: Erstellt von
|
||||
created_by: Erstellt von
|
||||
data: Daten
|
||||
mime: MIME-Typ
|
||||
name: Name
|
||||
|
|
@ -18,15 +18,18 @@ de:
|
|||
documents: Dokumente
|
||||
documents:
|
||||
create:
|
||||
error: 'Dokument konnte nicht erstellt werden: %{error}'
|
||||
error: 'Dokument oder Ordner konnte nicht erstellt werden: %{error}'
|
||||
not_allowed_mime: Der Dateityp "%{mime}" ist nicht erlaubt. Bitte kontaktiere einen Administrator um ihn freizuschalten.
|
||||
notice: Dokument wurde erstellt
|
||||
notice: Dokument oder Ordner wurde erstellt
|
||||
destroy:
|
||||
error: 'Dokument konnt nicht gelöscht werden: %{error}'
|
||||
no_right: Du hast nicht genügend Rechte um die Datei zu löschen
|
||||
notice: Dokument wurde gelöscht
|
||||
error: 'Dokument oder Ordner konnt nicht gelöscht werden: %{error}'
|
||||
no_right: Du hast nicht genügend Rechte um die Datei oder den Ordner zu löschen
|
||||
notice: Dokument oder Ordner wurde gelöscht
|
||||
form:
|
||||
new: Neues Dokument
|
||||
new_folder: Neuer Ordner
|
||||
submit: Erstellen
|
||||
index:
|
||||
new: Neues Dokument anlegen
|
||||
new_folder: Neuen Ordner anlegen
|
||||
title: Dokumente
|
||||
new:
|
||||
title: Neues Dokument
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ en:
|
|||
attributes:
|
||||
document:
|
||||
created_at: Created at
|
||||
created_by_user_id: Created by
|
||||
created_by: Created by
|
||||
data: Data
|
||||
mime: MIME type
|
||||
name: Name
|
||||
|
|
@ -18,15 +18,18 @@ en:
|
|||
documents: Documents
|
||||
documents:
|
||||
create:
|
||||
error: 'Document could not be created: %{error}'
|
||||
error: 'Document or folder could not be created: %{error}'
|
||||
not_allowed_mime: The filetype "%{mime}" is not allowed. Please contact an administrator to whitelist it.
|
||||
notice: Document was created
|
||||
notice: Document or folder was created
|
||||
destroy:
|
||||
error: 'Document could not be deleted: %{error}'
|
||||
no_right: You do not have enough rights to delete the document
|
||||
notice: Document was deleted
|
||||
error: 'Document or folder could not be deleted: %{error}'
|
||||
no_right: You do not have enough rights to delete the document or folder
|
||||
notice: Document or folder was deleted
|
||||
form:
|
||||
new: New Document
|
||||
new_folder: new Folder
|
||||
submit: Create
|
||||
index:
|
||||
new: Upload new document
|
||||
new_folder: Create new folder
|
||||
title: Documents
|
||||
new:
|
||||
title: New Document
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@ Rails.application.routes.draw do
|
|||
|
||||
scope '/:foodcoop' do
|
||||
|
||||
resources :documents
|
||||
resources :documents do
|
||||
get :new
|
||||
get :new_folder
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue