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']
22 if (!empty($site_configs['System.otherSetting']['value']) && $site_configs['System.otherSetting']['value'] == $this->data['Character']['system_id']) {
25 $html->link(__('Change System', true), array(
26 'action' => 'change_system',
27 $this->data['Character']['id'],
36 echo $select->create_status_select($status, 'status', array(
37 'label' => __('Status', true)
43 echo $select->create_publicflag_select($public_flags, 'public_flag', array(
44 'label' => __('Public Flag', true),
52 <td style="text-align: center;" class="image160" rowspan="3">
53 <div id="CharacterMainPicture" class="image150">
55 echo $this->element('character_picture_image', array(
56 'basename' => $this->data['Character']['main_picture'],
58 'class' => 'mainImage',
59 'alt' => $this->data['Character']['name'],
68 <th class="profileName">
73 <td class="CharacterBasicData">
74 <div id="CharacterName">
78 __(' required', true),
84 echo $form->input('name', array(
87 'class' => 'name character longInput',
95 <th class="profileName">
100 <td class="CharacterBasicData">
103 echo $this->data['User']['name'];
112 $profiles = $this->data['System']['Profile'];
114 <?php if (!empty($profiles)): ?>
115 <?php foreach($profiles as $key => $profile): ?>
117 $profiledisp->set_profile_type4view($profile);
120 <th class="profileName">
122 echo $profile['name'];
125 <td colspan="3" class="CharacterProfileData edit<?php if ($profiledisp->profile_type['is_table']): ?> table<?php endif; ?>">
126 <div id="<?php echo $key; ?>">
128 if (empty($profile['CharactersHasProfile'])) {
129 if (CorePlus::get_profile_type($profile['profile_type']) == 's-table') {
130 $form_num = count($profile['ProfileTable'][0]['ProfileTableStatic']);
134 $disp_add_link = false;
136 if (CorePlus::get_profile_type($profile['profile_type']) == 's-table') {
137 $form_num = count($profile['ProfileTable'][0]['ProfileTableStatic']);
141 $disp_add_link = true;
144 if (!empty($profile['all_public'])) {
145 $disp_public = false;
147 $profiledisp->disp_forms4profile_type(
152 $this->data['Character']['id'],
166 <th class="profileName">
167 <?php __('Notes'); ?>
169 <td colspan="3" class="CharacterProfileData">
172 echo $form->input('notes', array(
181 <th class="profileName">
182 <?php __('Secret Notes'); ?>
184 <td colspan="3" class="CharacterProfileData">
185 <div id="Secret Notes">
187 echo $form->input('secret_notes', array(
188 'label' => __('Secret Notes', true),
189 'after' => $html->tag(
191 __('Show only myself', true),
192 array('class' => 'required')
202 <th class="profileName">
203 <?php __('Archives'); ?>
206 <div id="SaveArchive">
208 echo $form->input('archive', array(
209 'type' => 'checkbox',
210 'label' => __('Save the Profile Archive', true),
215 echo $form->input('CharacterProfileArchive.title');
216 echo $form->input('CharacterProfileArchive.memo');
218 if ($this->data['Character']['public_flag'] == 1) {
219 echo $select->create_publicflag_select($public_flags, 'CharacterProfileArchive.public_flag', array(
220 'label' => __('Public Flag', true),
232 echo $token->create();
233 echo $form->end(array('label' => __('Submit', true)));
238 <div class="backButton">
240 echo $form->create('', array('url' => array(
241 'action' => 'view', $this->data['Character']['id']),
243 'id' => 'CancelButton'
245 echo $form->end(array('label' => __('Cancel', true)));
251 echo $form->create('', array(
253 'action' => 'delete',
256 'id' => 'CancelButton'
262 echo $form->end(__('Delete Character', true));