Paginas wiki, arquivos e disciplinas ocultas

This commit is contained in:
2009-09-08 18:38:47 -03:00
parent 0d00ee07db
commit a10b4fda9b
22 changed files with 144 additions and 35 deletions

View File

@@ -13,4 +13,6 @@
%dt
%label{:for => "attachment_description"} Descrição
%dd= preserve(text_area 'attachment', 'description')
%dd= preserve(text_area 'attachment', 'description', {:rows => 10})
%dt= check_box('attachment', 'front_page') + " Exibir arquivo na página inicial do curso"

View File

@@ -0,0 +1,15 @@
.cmd
= action_icon 'add', 'Adicionar', new_course_attachment_url(@course)
%h4.title= h(@course.full_name)
%h1.title Repositório de Arquivos
.box.repositorio
- if !@course.attachments.empty?
%ul
= nested_attachments_to_html(attachments_to_nested_hash(@course.attachments))
- else
.box
%ul
%li.no_itens Nenhum arquivo

View File

@@ -3,7 +3,7 @@
= action_icon 'trash', 'Excluir', course_attachment_url, :confirm => 'Tem certeza que deseja excluir o arquivo?', :method => :delete
%h4.title= h(@attachment.course.full_name)
%h1.title Repositório
%h1.title Repositório de Arquivos
%p
%dl