diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
commit | 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 (patch) | |
tree | 4d541098d751d5a9acf8c12f6fb9f308ace066ac /themes/CleanFS/templates/myprofile.tpl | |
download | flyspray-8df3db566a3a937b45ebf11adb90d265e6f5e2d4.tar.xz |
initial checking of customized version 1.0rc9
Diffstat (limited to 'themes/CleanFS/templates/myprofile.tpl')
-rw-r--r-- | themes/CleanFS/templates/myprofile.tpl | 40 |
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> |