profile.tpl 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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="#"><i class="fa fa-floppy-o"></i> {{"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="page-items-profile">
  30. <div class="row">
  31. <div class="col-md-12">
  32. <h4 class="title-skill">
  33. {% if count == total_search_skills %}
  34. {{ "CompleteMatch"|get_lang }}
  35. {% else %}
  36. {% if (total_search_skills - count) == 1 %}
  37. {{ "MissingOneStepToMatch"|get_lang }}
  38. {% else %}
  39. {{ "MissingXStepsToMatch"|get_lang | format(total_search_skills - count)}}
  40. {% endif %}
  41. {% endif %}
  42. </h4>
  43. </div>
  44. </div>
  45. <div class="row">
  46. {% for user in user_list %}
  47. <div class="block-items">
  48. <div class="border-items">
  49. <div class="items-info">
  50. <div class="avatar-profile">
  51. <img width="96px" src="{{user.user.avatar}}" />
  52. </div>
  53. <div class="info-profile">
  54. <h5><a href="{{ _p.web_main }}social/profile.php?u={{ user['user'].user_id }}">{{ user['user'].complete_name }} </a></h5>
  55. <p class="text">{{ 'User' | get_lang }}: {{user['user'].username}} </p>
  56. </div>
  57. <div class="number-skill">{{ "Skills"|get_lang }} {{ user.total_found_skills }} / {{ total_search_skills }}</div>
  58. <div class="skill-user-items">
  59. <ul class="award-items">
  60. {% for skill_data in user.skills %}
  61. <li>
  62. {% if skill_list[skill_data.skill_id].name is not null %}
  63. {% if skill_data.found %}
  64. <img src="{{ _p.web }}main/img/icons/22/badges.png" alt="{{ skill_list[skill_data.skill_id].name }}" title="{{ skill_list[skill_data.skill_id].name }}" />{{ skill_list[skill_data.skill_id].name }}
  65. {% else %}
  66. <img src="{{ _p.web }}main/img/icons/22/badges-default.png" alt="{{ skill_list[skill_data.skill_id].name }}" title="{{ skill_list[skill_data.skill_id].name }}" />{{ skill_list[skill_data.skill_id].name }}
  67. {% endif %}
  68. {% else %}
  69. {{ "SkillNotFound"|get_lang }}
  70. {% endif %}
  71. {# if $skill_data.found
  72. "IHaveThisSkill"|get_lang
  73. #}
  74. </li>
  75. {% endfor %}
  76. </ul>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. {% endfor %}
  82. </div>
  83. </div>
  84. {% endfor %}
  85. {% else %}
  86. {% if search_skill_list is null %}
  87. <div class="warning-message">{{"NoResults"|get_lang}}</div>
  88. {% endif %}
  89. {% endif %}
  90. </div>
  91. <div id="dialog-form" style="display:none;">
  92. <form id="save_profile_form" class="form-horizontal" name="form">
  93. <fieldset>
  94. <div class="control-group">
  95. <label class="control-label" for="name">{{"Name"|get_lang}}</label>
  96. <div class="controls">
  97. <input type="text" name="name" id="name" size="40" />
  98. </div>
  99. </div>
  100. <div class="control-group">
  101. <label class="control-label" for="name">{{"Description"|get_lang}}</label>
  102. <div class="controls">
  103. <textarea name="description" id="description" class="span2" rows="7"></textarea>
  104. </div>
  105. </div>
  106. </fieldset>
  107. </form>
  108. </div>