Anexos aninhados
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
%p.grey= "Tamanho máximo: #{number_to_human_size(App.max_upload_file_size)}"
|
||||
%dd= file_field 'attachment', 'file'
|
||||
|
||||
%dt
|
||||
%label{:for => 'attachment_path'} Pasta
|
||||
%dd= text_field 'attachment', 'path'
|
||||
|
||||
%dt
|
||||
%label{:for => "attachment_description"} Descrição
|
||||
%dd= preserve(text_area 'attachment', 'description')
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
%dt Arquivo
|
||||
%dd= link_to h(@attachment.file_name), download_course_attachment_url
|
||||
|
||||
%dt Pasta
|
||||
%dd= h(@attachment.path)
|
||||
|
||||
%dt Descrição
|
||||
%dd= h(@attachment.description)
|
||||
|
||||
|
||||
@@ -32,10 +32,8 @@
|
||||
|
||||
%h3 Repositório de Arquivos
|
||||
.repositorio
|
||||
%ul.wiki
|
||||
- @course.attachments.each do |att|
|
||||
%li{:class => mime_class(att.content_type)}
|
||||
= link_to h(att.file_name), course_attachment_url(@course, att)
|
||||
- if @course.attachments.empty?
|
||||
= nested_attachments_to_html(attachments_to_nested_hash(@course.attachments))
|
||||
- if @course.attachments.empty?
|
||||
%ul.wiki
|
||||
%li.no_itens Nenhum arquivo
|
||||
|
||||
|
||||
@@ -461,6 +461,7 @@ h4.title, h1.title {
|
||||
.repositorio .mime_document { background-image: url(<%= App.base_path %>/images/tango/x-office-document.png); }
|
||||
.repositorio .mime_binary { background-image: url(<%= App.base_path %>/images/tango/application-x-executable.png); }
|
||||
.repositorio .mime_zip { background-image: url(<%= App.base_path %>/images/tango/package-x-generic.png); }
|
||||
.repositorio .mime_folder { background-image: url(<%= App.base_path %>/images/tango/folder.png); }
|
||||
|
||||
.spinner {
|
||||
float: right;
|
||||
@@ -827,6 +828,15 @@ form dt p {
|
||||
margin: 9px 0px;
|
||||
}
|
||||
|
||||
ul.nested {
|
||||
padding-left: 36px;
|
||||
}
|
||||
|
||||
ul.nested li {
|
||||
padding-top: 5px !important;
|
||||
padding-bottom: 4px !important;
|
||||
}
|
||||
|
||||
|
||||
xbody { background-image: url(<%= App.base_path %>/prototype/line.png); background-repeat: repeat; }
|
||||
xhtml * { background-color: transparent !important; }
|
||||
|
||||
Reference in New Issue
Block a user