forked from openwebwork/renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilebrowser.html.ep
More file actions
16 lines (15 loc) · 877 Bytes
/
filebrowser.html.ep
File metadata and controls
16 lines (15 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%= stylesheet "$ENV{baseURL}/css/filebrowser.css"
%= javascript "$ENV{baseURL}/js/filebrowser.js"
<div class='header'>
Current directory path: </br>
%= form_for 'render-api/cat' => ( method => 'POST', id => 'BackNavigation') => begin
%= hidden_field maxDepth => 1
%= select_field basePath => ['/'], id => 'back-nav', class => 'back-nav dropdown', onchange => "updateBrowser('BackNavigation', backOut)"
%= end
</div>
<div class='content'>
%= form_for 'render-api/cat' => ( method => 'POST', id => 'FileBrowserForm', class => 'fill-height' ) => begin
%= hidden_field maxDepth => 1
%= select_field basePath => [[Contrib => 'Contrib/'], [Library => 'Library/'], [Pending => 'Pending/'], [private => 'private/']], id => 'file-list', multiple => undef, class => 'file-list', ondblclick => "updateBrowser('FileBrowserForm', diveIn)"
%= end
</div>