Paginas wiki, arquivos e disciplinas ocultas
This commit is contained in:
@@ -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"
|
||||
|
||||
15
app/views/attachments/index.html.haml
Normal file
15
app/views/attachments/index.html.haml
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user