profile.html.twig 4.9 KB

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