OSDN Git Service

change delete-confirm message
authorCake <cake_67@users.sourceforge.jp>
Tue, 12 Jan 2010 15:43:36 +0000 (00:43 +0900)
committerCake <cake_67@users.sourceforge.jp>
Tue, 12 Jan 2010 15:43:36 +0000 (00:43 +0900)
app/views/systems/admin_edit.ctp
app/views/systems/admin_view.ctp

index 8c11e48..7cf6488 100644 (file)
                                'label' => __('URL', true),
                        )
                );
-               echo $form->input('public_flag');
+               echo $form->input('set_npc', array(
+                               'label' => __('Use NPC', true),
+                               'selected' => true
+                       )
+               );
+               echo $form->input('public_flag', array(
+                               'type' => 'select',
+                               'label' => __('Public', true),
+                               'options' => array(
+                                       'public' => __('Public', true),
+                                       'private' => __('Private', true),
+                               ),
+                               'selected' => 'public',
+                       )
+               );
                echo $form->input('detail', array(
                                'label' => __('Detail', true),
                        )
@@ -45,7 +59,7 @@
 </div>
 <div class="actions">
        <ul>
-               <li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('System.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('System.id'))); ?></li>
+               <li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('System.id')), null, sprintf(__('Are you sure you want to delete %s?', true), $form->value('System.name'))); ?></li>
                <li><?php echo $html->link(__('List Systems', true), array('action' => 'index'));?></li>
        </ul>
 </div>
index 26493d1..97e178a 100644 (file)
@@ -60,7 +60,7 @@
 <div class="actions">
        <ul>
                <li><?php echo $html->link(__('Edit System', true), array('action' => 'edit', $system['System']['id'])); ?> </li>
-               <li><?php echo $html->link(__('Delete System', true), array('action' => 'delete', $system['System']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $system['System']['id'])); ?> </li>
+               <li><?php echo $html->link(__('Delete System', true), array('action' => 'delete', $system['System']['id']), null, sprintf(__('Are you sure you want to delete %s?', true), $system['System']['name'])); ?> </li>
                <li><?php echo $html->link(__('List Systems', true), array('action' => 'index')); ?> </li>
                <li><?php echo $html->link(__('New System', true), array('action' => 'add')); ?> </li>
        </ul>