profile.tpl 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {% if search_skill_list is not null %}
  2. <div class="skills-skills">
  3. <h3>{{"Skills"|get_lang}}</h3>
  4. <ul class="holder">
  5. {% for search_skill_id in search_skill_list %}
  6. <li class="bit-box">
  7. {{ skill_list[search_skill_id].name}}
  8. <a class="closebutton" href="?a=remove_skill&id={{search_skill_id}}"></a>
  9. </li>
  10. {% endfor %}
  11. </ul>
  12. <a id="add_profile" class="btn btn-default" href="#"><em class="fa fa-floppy-o"></em> {{"SaveThisSearch"|get_lang}}</a>
  13. </div>
  14. {% endif %}
  15. {% if profiles is not null %}
  16. <div class="skills-profiles">
  17. <h3>{{"SkillProfiles"|get_lang}}</h3>
  18. <ul class="holder">
  19. {%for profile in profiles %}
  20. <li class="bit-box">
  21. <a href="?a=load_profile&id={{profile.id}}">{{profile.name}}</a>
  22. </li>
  23. {% endfor %}
  24. </ul>
  25. </div>
  26. {% endif %}
  27. {% if order_user_list is not null %}
  28. {% for count, user_list in order_user_list %}
  29. <div class="row">
  30. <div class="col-md-12">
  31. <h4 class="page-header">
  32. {% if count == total_search_skills %}
  33. {{ "CompleteMatch"|get_lang }}
  34. {% else %}
  35. {% if (total_search_skills - count) == 1 %}
  36. {{ "MissingOneStepToMatch"|get_lang }}
  37. {% else %}
  38. {{ "MissingXStepsToMatch"|get_lang | format(total_search_skills - count)}}
  39. {% endif %}
  40. {% endif %}
  41. </h4>
  42. </div>
  43. </div>
  44. <div class="row">
  45. {% for user in user_list %}
  46. <div class="col-md-3">
  47. <div class="items-user">
  48. <div class="panel panel-default">
  49. <div class="panel-body">
  50. <div class="avatar-user">
  51. <img class="img-circle" width="100" src="{{ user.user.avatar }}" class="center-block">
  52. </div>
  53. <p class="text-center"><em class="fa fa-user"></em>
  54. <a href="{{ _p.web_main }}social/profile.php?u={{ user['user'].user_id }}" target="_blank">
  55. {{ user['user'].complete_name_with_username }}
  56. </a>
  57. </p>
  58. <p class="text-center"><em class="fa fa-graduation-cap"></em> {{ "AchievedSkills"|get_lang }} {{ user.total_found_skills }} / {{ total_search_skills }}</p>
  59. </div>
  60. <ul class="list-group">
  61. {% for skill_data in user.skills %}
  62. <li class="list-group-item {{ skill_data.found ? '' : 'text-muted' }}">
  63. {% if skill_list[skill_data.skill_id].icon %}
  64. <img src="{{ _p.web_upload ~ skill_list[skill_data.skill_id].icon_small }}" width="22" height="22" alt="{{ skill_list[skill_data.skill_id].name }}">
  65. {% else %}
  66. <img src="{{ 'badges.png'|icon(22) }}" width="22" height="22" alt="{{ skill_list[skill_data.skill_id].name }}">
  67. {% endif %}
  68. {% if skill_data.found %}
  69. <b>{{ skill_list[skill_data.skill_id].name }}</b>
  70. {% else %}
  71. {{ skill_list[skill_data.skill_id].name }}
  72. {% endif %}
  73. </li>
  74. {% endfor %}
  75. </ul>
  76. </div>
  77. </div>
  78. </div>
  79. {% endfor %}
  80. </div>
  81. {% endfor %}
  82. {% else %}
  83. {% if search_skill_list is null %}
  84. <div class="warning-message">{{"NoResults"|get_lang}}</div>
  85. {% endif %}
  86. {% endif %}
  87. </div>
  88. <div id="dialog-form" style="display:none;">
  89. <form id="save_profile_form" class="form-horizontal" name="form">
  90. <fieldset>
  91. <div class="control-group">
  92. <label class="control-label" for="name">{{"Name"|get_lang}}</label>
  93. <div class="controls">
  94. <input type="text" name="name" id="name" size="40" />
  95. </div>
  96. </div>
  97. <div class="control-group">
  98. <label class="control-label" for="name">{{"Description"|get_lang}}</label>
  99. <div class="controls">
  100. <textarea name="description" id="description" class="span2" rows="7"></textarea>
  101. </div>
  102. </div>
  103. </fieldset>
  104. </form>
  105. </div>