$this->set('isOwner', true);
+ if (isset($this->params['named']['num'])) {
+ $form_nums = $this->params['named']['num'];
+ } else {
+ $form_nums = 3;
+ }
+ $this->set('form_nums', $form_nums);
+
$this->pageTitle .= " ". sprintf(__('Edit %s', true), $character['Character']['name']);
}
msgid "Add Profiles"
msgstr "プロフィール追加"
+#: /views/characters/add_milti_profiles.ctp:2
+msgid "Add Column"
+msgstr "入力欄追加"
+
#: /views/characters/add_milti_profiles.ctp:
#: /views/characters/edit.ctp:
msgid "Save the Profile Archive"
<div class="characters form edit">
-<h2><?php echo __('Add Profiles'); ?></h2>
+<?php
+$num = $form_nums + 3;
+$header = __('Add Profiles', true);
+$header .= $html->tag('span', $html->link(
+ __('Add Column', true),
+ array(
+ 'action' => 'add_milti_profiles',
+ $this->data['Character']['id'],
+ 'profile_id:'.$this->params['named']['profile_id'],
+ 'num:'. $num
+ ),
+ null,
+ __('If some data have been changed, you should save before click it. OK?', true)
+ ),
+ array(
+ 'class' => 'text',
+ )
+);
+?>
+
+<div class="box">
+<div class="boxHeader"><h3><?php echo $header ?></h3></div>
+<div class="boxBody">
<p>
<?php echo $form->create('Character', array('url' => array(
'action' => 'add_milti_profiles',
if ($profile['profile_type'] == 's-table') {
$count = count($profile['ProfileTable'][0]['ProfileTableStatic']);
} else {
- $count = 5;
+ $count = $form_nums;
}
$profiledisp->disp_forms4profile_type($profile, $count, 0, false, null, true, array('div' => array('class' => 'input text inline')));
?>
?>
</div>
+</p>
+</div>
+</div>