-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathadmin_create_directory.ctp
More file actions
59 lines (49 loc) · 1.94 KB
/
Copy pathadmin_create_directory.ctp
File metadata and controls
59 lines (49 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
$this->extend('/Common/admin_edit');
$this->Html
->addCrumb('', '/admin', array('icon' => $this->Theme->getIcon('home')))
->addCrumb(__d('croogo', 'File Manager'), array('plugin' => 'file_manager', 'controller' => 'file_manager', 'action' => 'browse'))
->addCrumb(__d('croogo', 'Create Directory'), '/' . $this->request->url);
$this->append('form-end', $this->Form->create('FileManager', array(
'url' => $this->Html->url(array(
'controller' => 'file_manager',
'action' => 'create_directory',
), true) . '?path=' . urlencode($path),
)));
$this->start('page-heading');
?>
<div class='<?php echo $this->Layout->cssClass('row') ?>'>
<div class="<?php echo $this->Layout->cssClass('columnFull') ?>">
<div class="breadcrumb">
<a href="#"><?php echo __d('croogo', 'You are here') . ' '; ?> </a> <span class="divider"> > </span>
<?php $breadcrumb = $this->FileManager->breadcrumb($path); ?>
<?php foreach ($breadcrumb as $pathname => $p) : ?>
<?php echo $this->FileManager->linkDirectory($pathname, $p); ?>
<span class="divider"> <?php echo DS; ?> </span>
<?php endforeach; ?>
</div>
</div>
</div>
<?php
$this->end();
$this->start('tab-heading');
echo $this->Croogo->adminTab(__d('croogo', 'Directory'), '#filemanager-createdir');
echo $this->Croogo->adminTabs();
$this->end();
$this->append('tab-content');
echo $this->Html->tabStart('filemanager-createdir') .
$this->Form->input('FileManager.name', array(
'type' => 'text',
'label' => __d('croogo', 'Directory name'),
));
echo $this->Html->tabEnd();
echo $this->Croogo->adminTabs();
$this->end();
$this->start('panels');
echo $this->Html->beginBox(__d('croogo', 'Publishing')) .
$this->Form->button(__d('croogo', 'Create')) .
$this->Html->link(__d('croogo', 'Cancel'), array('action' => 'index'), array('button' => 'danger'));
echo $this->Html->endBox();
echo $this->Croogo->adminBoxes();
$this->end();
$this->append('form-end', $this->Form->end());