N.474: Support for "file" attribute (AttributeBlob) in the portal. READONLY only for now.

SVN:trunk[4512]
This commit is contained in:
Guillaume Lajarige
2016-12-13 10:15:43 +00:00
parent c903fc2246
commit 68c180f7eb
13 changed files with 197 additions and 3 deletions

View File

@@ -61,6 +61,9 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', array(
'Portal:Datatables:Language:Sort:Descending' => 'řadit sestupně',
'Portal:Autocomplete:NoResult' => 'Žádná data',
'Portal:Attachments:DropZone:Message' => 'Přesuňte soubory myší pro vložení',
'Portal:File:None' => 'No file',
'Portal:File:DisplayInfo' => '<a href="%2$s" class="file_download_link">%1$s</a>',
'Portal:File:DisplayInfo+' => '%1$s (%2$s) <a href="%3$s" class="file_open_link" target="_blank">Open</a> / <a href="%4$s" class="file_download_link">Download</a>',
));
// UserProfile brick

View File

@@ -57,6 +57,9 @@ Dict::Add('EN US', 'English', 'English', array(
'Portal:Datatables:Language:Sort:Descending' => 'enable for a descending sort',
'Portal:Autocomplete:NoResult' => 'No data',
'Portal:Attachments:DropZone:Message' => 'Drop your files to add them as attachments',
'Portal:File:None' => 'No file',
'Portal:File:DisplayInfo' => '<a href="%2$s" class="file_download_link">%1$s</a>',
'Portal:File:DisplayInfo+' => '%1$s (%2$s) <a href="%3$s" class="file_open_link" target="_blank">Open</a> / <a href="%4$s" class="file_download_link">Download</a>',
));
// UserProfile brick

View File

@@ -57,6 +57,9 @@ Dict::Add('ES CR', 'Spanish', 'Español, Castellano', array(
'Portal:Datatables:Language:Sort:Descending' => 'Habilitar para un tipo descendente',
'Portal:Autocomplete:NoResult' => 'Sin datos',
'Portal:Attachments:DropZone:Message' => 'Agrega tus archivos para agregarlos como documentos adjuntos',
'Portal:File:None' => 'No file',
'Portal:File:DisplayInfo' => '<a href="%2$s" class="file_download_link">%1$s</a>',
'Portal:File:DisplayInfo+' => '%1$s (%2$s) <a href="%3$s" class="file_open_link" target="_blank">Open</a> / <a href="%4$s" class="file_download_link">Download</a>',
));
// UserProfile brick

View File

@@ -57,6 +57,9 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Portal:Datatables:Language:Sort:Descending' => 'activer pour trier la colonne par ordre décroissant',
'Portal:Autocomplete:NoResult' => 'Aucun résultat',
'Portal:Attachments:DropZone:Message' => 'Déposez vos fichiers pour les ajouter en pièces jointes',
'Portal:File:None' => 'Aucun fichier',
'Portal:File:DisplayInfo' => '<a href="%2$s" class="file_download_link">%1$s</a>',
'Portal:File:DisplayInfo+' => '%1$s (%2$s) <a href="%3$s" class="file_open_link" target="_blank">Ouvrir</a> / <a href="%4$s" class="file_download_link">Télécharger</a>',
));
// UserProfile brick

View File

@@ -810,6 +810,10 @@ table .group-actions {
}
}
}
/* BlobField */
.form_fields .file_open_link {
margin-left: 10px;
}
.form_field .form-control-static img {
max-width: 100% !important;
height: initial !important;

View File

@@ -850,6 +850,10 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{
}
}
}
/* BlobField */
.form_fields .file_open_link{
margin-left: 10px;
}
.form_field .form-control-static img{
max-width: 100% !important;