1 <div class="characters form edit">
2 <h3><?php echo sprintf(__('Edit %s', true), $this->data['Character']['name']); ?></h3>
4 <?php echo $form->create('Character');?>
5 <table class="CharacterSheet">
8 <tr id="CharacterStatusRow">
9 <td colspan="2" class="SystemRow">
11 <table class="System">
15 <label><?php __('System') ?></label>
19 $this->data['System']['name']
25 echo $select->create_status_select($status, 'status', array(
26 'label' => __('Status', true)
32 echo $select->create_publicflag_select($public_flags, 'public_flag', array(
33 'label' => __('Public Flag', true),
41 <td style="text-align: center;" class="image160" rowspan="3">
42 <div id="CharacterMainPicture" class="image150">
44 echo $this->element('character_picture_image', array(
45 'basename' => $this->data['Character']['main_picture'],
47 'class' => 'mainImage',
48 'alt' => $this->data['Character']['name'],
57 <th class="profileName">
62 <td class="CharacterBasicData">
63 <div id="CharacterName">
67 __(' required', true),
73 echo $form->input('name', array(
76 'class' => 'name character',
84 <th class="profileName">
89 <td class="CharacterBasicData">
92 echo $this->data['User']['name'];
101 $profiles = $this->data['System']['Profile'];
103 <?php if (!empty($profiles)): ?>
104 <?php foreach($profiles as $key => $profile): ?>
106 $profiledisp->set_profile_type4view($profile);
109 <th class="profileName">
111 echo $profile['name'];
114 <td colspan="3" class="CharacterProfileData edit<?php if ($profiledisp->profile_type['is_table']): ?> table<?php endif; ?>">
115 <div id="<?php echo $key; ?>">
117 if (empty($profile['CharactersHasProfile'])) {
118 if ($profile['profile_type'] == 's-table') {
119 $form_num = count($profile['ProfileTable'][0]['ProfileTableStatic']);
123 $disp_add_link = false;
125 if ($profile['profile_type'] == 's-table') {
126 $form_num = count($profile['ProfileTable'][0]['ProfileTableStatic']);
130 $disp_add_link = true;
132 $profiledisp->disp_forms4profile_type($profile, $form_num, 0, $disp_add_link, $this->data['Character']['id'], true);
142 <th class="profileName">
143 <?php __('Notes'); ?>
145 <td colspan="3" class="CharacterProfileData">
148 echo $form->input('notes', array(
159 <th class="profileName">
160 <?php __('Archives'); ?>
163 <div id="SaveArchive">
165 echo $form->input('archive', array(
166 'type' => 'checkbox',
167 'label' => __('Save the Profile Archive', true),
172 echo $form->input('CharacterProfileArchive.title');
173 echo $form->input('CharacterProfileArchive.memo');
175 if ($this->data['Character']['public_flag'] == 'public') {
176 echo $select->create_publicflag_select($public_flags, 'CharacterProfileArchive.public_flag', array(
177 'label' => __('Public Flag', true),
189 echo $token->create();
190 echo $form->end(array('label' => __('Submit', true)));
195 <div class="backButton">
197 echo $form->create('', array('url' => array(
198 'action' => 'view', $this->data['Character']['id']),
200 'id' => 'CancelButton'
202 echo $form->end(array('label' => __('Cancel', true)));
206 <div class="actions">
208 <legend><?php __('Delete Character');?></legend>
210 echo $form->create('', array(
212 'action' => 'delete',
215 'id' => 'CancelButton'
221 echo $form->end(__('Delete', true));