summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/myprofile.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CleanFS/templates/myprofile.tpl')
-rw-r--r--themes/CleanFS/templates/myprofile.tpl40
1 files changed, 40 insertions, 0 deletions
diff --git a/themes/CleanFS/templates/myprofile.tpl b/themes/CleanFS/templates/myprofile.tpl
new file mode 100644
index 0000000..5118dcb
--- /dev/null
+++ b/themes/CleanFS/templates/myprofile.tpl
@@ -0,0 +1,40 @@
+<div class="box"><h3><?= eL('editmydetails') ?></h3>
+<ul class="form_elements">
+<li title="<?= eL('usernamenotchangeable') ?>">
+<label><?= eL('username') ?></label>
+<input type="text" style="border:none;background:none;width:auto;" disabled="disabled" value="<?= $user->infos['user_name'] ?>" />
+</li>
+</ul>
+<?php $this->display('common.profile.tpl'); ?>
+</div>
+<div class="box"><h3><?= L('myvotes') ?></h3>
+<?php if(count($votes)>0): ?>
+<table id="myvotes">
+<thead>
+<tr>
+<th><?= eL('project') ?></th>
+<th><?= eL('task') ?></th>
+<th><?= eL('removevote') ?></th>
+</tr>
+</thead>
+<tbody>
+<?php foreach($votes as $vote): ?>
+<tr<?php echo $vote['is_closed'] ? ' class="closed"':''; ?>>
+<td><?php echo $vote['project_title']; ?></td>
+<td><?php echo tpl_tasklink($vote); ?></td>
+<td><?php echo tpl_form(Filters::noXSS(createURL('myprofile', $vote['task_id'])));?>
+<input type="hidden" name="action" value="removevote" />
+<input type="hidden" name="task_id" value="<?php echo $vote['task_id']?>" />
+<button type="submit" title="<?php echo eL('removevote'); ?>"><span class="fa fa-trash"></span></button>
+</form></td>
+<td></td>
+</tr>
+<?php endforeach; ?>
+</tbody>
+</table>
+<?php else:
+ echo eL('novotes');
+endif; ?>
+</div>
+<div class="box"><h3><?php echo eL('permissionsforproject').' '.$proj->prefs['project_title']; ?></h3><?php echo tpl_draw_perms($user->perms); ?></div>
+<div class="clear"></div>