BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

linked.twig 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <form class="manage_form" name="user" method="post" id="linkedform" action="">
  2. <input type="hidden" name="action" value="dupes" />
  3. <input type="hidden" name="dupeaction" value="update" />
  4. <input type="hidden" name="userid" value="{{ user_id }}" />
  5. <input type="hidden" id="auth" name="auth" value="{{ auth }}" />
  6. <input type="hidden" id="form_comment_hash" name="form_comment_hash" value="{{ hash }}" />
  7. <div class="box box2" id="l_a_box">
  8. <div class="head">
  9. Linked Accounts ({{ list|length }}) <a href="#" onclick="$('.linkedaccounts').gtoggle(); return false;" class="brackets">View</a>
  10. </div>
  11. <table width="100%" class="layout hidden linkedaccounts">
  12. {% for u in list %}
  13. {% if loop.first %}
  14. <tr>
  15. {% endif %}
  16. <td align="left">{{ u.user_id|user_full }}
  17. <a href="user.php?action=dupes&amp;dupeaction=remove&amp;auth={{ auth }}&amp;userid={{ user_id }}&amp;removeid={{ u.user_id }}" onclick="return confirm('Are you sure you wish to remove {{ u.username }} from this group?');" class="brackets tooltip" title="Remove linked account">X</a>
  18. </td>
  19. {% if not loop.last %}
  20. {% if loop.index0 > 0 and loop.index % 4 == 0 %}
  21. </tr>
  22. <tr>
  23. {% endif %}
  24. {% else %}
  25. {% set n = 3 - loop.index0 % 4 %}
  26. {% if n > 0 %}
  27. {% for t in 1 .. n %}
  28. <td>&nbsp;</td>
  29. {% endfor %}
  30. {% endif %}
  31. </tr>
  32. {% endif %}
  33. {% endfor %}
  34. <tr>
  35. <td colspan="5" align="left" style="border-top: thin solid;"><strong>Comments:</strong></td>
  36. </tr>
  37. <tr>
  38. <td colspan="5" align="left">
  39. <div id="dupecomments" class="{{ list|length ? '' : 'hidden' }}">{{ comments|bb_format }}</div>
  40. <div id="editdupecomments" class="{{ list|length ? 'hidden' : '' }}">
  41. <textarea name="dupecomments" onkeyup="resize('dupecommentsbox');" id="dupecommentsbox" cols="65" rows="5" style="width: 98%;"> {{ comments }}</textarea>
  42. </div>
  43. <span style="float: right;"><a href="#" onclick="$('#dupecomments').gtoggle(); $('#editdupecomments').gtoggle(); resize('dupecommentsbox'); return false;" class="brackets">Edit linked account comments</a></span>
  44. </td>
  45. </tr>
  46. </table>
  47. <div class="pad hidden linkedaccounts">
  48. <label for="target">Link this user with: </label>
  49. <input type="text" name="target" id="target" /><br />
  50. <label for="update_note">Update staff notes</label>
  51. <input type="checkbox" name="update_note" id="update_note" checked="checked" /><br />
  52. <input type="submit" value="Update" />
  53. </div>
  54. </div>
  55. </form>