§
     ³j7  ã                   óf   — d dl mZ d dlmZ d dlmZ d dlmZ dZdZ	dZ
dZd	Z G d
„ de¦  «        ZdS )é    )Úcache)ÚBaseCommand)ÚResumeTemplate)ÚTEMPLATE_LIST_CACHE_KEYaì  
body { font-family: 'Segoe UI', Arial, sans-serif; max-width: 800px; margin: 24px auto; color: #1e293b; font-size: 11pt; }
h1 { font-size: 22pt; margin-bottom: 4px; }
h2 { font-size: 13pt; margin-top: 18px; border-bottom: 1px solid #cbd5e1; padding-bottom: 4px; }
.meta { color: #64748b; margin-bottom: 12px; }
.tag { display: inline-block; background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 4px; margin: 2px 4px 2px 0; font-size: 9pt; }
.project { margin-bottom: 10px; }
u*  
<div class="header">
  {% if student.photo_url %}
  <img src="{{ student.photo_url }}" alt="" style="max-width:120px;float:right;border-radius:8px;">
  {% endif %}
  <h1>{{ student.full_name }}</h1>
  <p class="meta">{{ student.email }}{% if student.phone %} · {{ student.phone }}{% endif %}</p>
  <p class="meta">Группа: {{ student.student_group }}{% if student.specialty %} · {{ student.specialty }}{% endif %}</p>
</div>
{% if student.bio %}<p>{{ student.bio }}</p>{% endif %}

{% if has_competencies_section %}
<h2>Личные качества и компетенции</h2>
{% if compet_personal_qualities %}<p><strong>Личные качества.</strong> {{ compet_personal_qualities }}</p>{% endif %}
{% if compet_ok_lines %}<h3 style="font-size:12pt;">Общие компетенции (ОК)</h3><ul>{% for cl in compet_ok_lines %}<li>{{ cl }}</li>{% endfor %}</ul>{% endif %}
{% if compet_pk_lines %}<h3 style="font-size:12pt;">Профессиональные компетенции (ПК)</h3><ul>{% for cl in compet_pk_lines %}<li>{{ cl }}</li>{% endfor %}</ul>{% endif %}
{% if compet_additional %}<p><strong>Дополнительные компетенции.</strong> {{ compet_additional }}</p>{% endif %}
{% endif %}

{% if soft_skills %}
<h2>Мягкие навыки (по вакансии)</h2>
<p>{% for s in soft_skills %}<span class="tag">{{ s }}</span>{% endfor %}</p>
{% endif %}

{% if skills_highlight %}
<h2>Ключевые навыки</h2>
<ul>{% for sk in skills_highlight %}<li><strong>{{ sk.name }}</strong> — {{ sk.get_level_display }}</li>{% endfor %}</ul>
{% endif %}
{% if skills_other %}
<h2>Прочие навыки</h2>
<ul>{% for sk in skills_other %}<li>{{ sk.name }} — {{ sk.get_level_display }}</li>{% endfor %}</ul>
{% endif %}

{% if education %}
<h2>Образование</h2>
{% for e in education %}
<p><strong>{{ e.institution }}</strong>, {{ e.specialty }} ({{ e.start_year }}—{% if e.is_current %}н.в.{% else %}{{ e.end_year|default:"н.в." }}{% endif %}){% if e.degree %} — {{ e.degree }}{% endif %}</p>
{% endfor %}
{% endif %}

{% if experience %}
<h2>Опыт</h2>
{% for x in experience %}
<div class="project">
  <strong>{{ x.position }}</strong>, {{ x.company }} <span class="meta">{{ x.start_date|date:"m.Y" }} — {% if x.is_current %}н.в.{% else %}{{ x.end_date|date:"m.Y" }}{% endif %}</span>
  <p>{{ x.description }}</p>
</div>
{% endfor %}
{% endif %}

{% if projects_highlight %}
<h2>Проекты (релевантные)</h2>
{% for p in projects_highlight %}
<div class="project">
  <strong>{{ p.title }}</strong> ({{ p.get_project_type_display }})
  <p>{{ p.description }}</p>
  {% if p.technologies %}<p class="meta">Технологии: {{ p.technologies }}</p>{% endif %}
</div>
{% endfor %}
{% endif %}
{% if projects_other %}
<h2>Другие проекты</h2>
{% for p in projects_other %}
<div class="project">
  <strong>{{ p.title }}</strong>
  <p>{{ p.description }}</p>
</div>
{% endfor %}
{% endif %}

{% if achievements %}
<h2>Достижения</h2>
<ul>
{% for a in achievements %}
<li><strong>{{ a.title }}</strong> — {{ a.result }} ({{ a.date|date:"d.m.Y" }}){% if a.organization %}, {{ a.organization }}{% endif %}</li>
{% endfor %}
</ul>
{% endif %}

<p class="meta" style="margin-top:24px;">Сформировано: {{ generated_date }}</p>
am  
body { font-family: Georgia, serif; max-width: 720px; margin: 20px auto; color: #111; font-size: 10pt; }
h1 { font-size: 18pt; margin: 0 0 8px 0; }
h2 { font-size: 11pt; margin: 14px 0 6px 0; border-bottom: 1px solid #ccc; }
.meta { color: #555; font-size: 9pt; }
.tag { background: #eee; padding: 1px 6px; border-radius: 3px; margin-right: 4px; font-size: 8pt; }
uÅ  
<div class="header">
  <h1>{{ student.full_name }}</h1>
  <p class="meta">{{ student.email }}{% if student.phone %} · {{ student.phone }}{% endif %}</p>
  <p class="meta">{{ student.student_group }}{% if student.specialty %} · {{ student.specialty }}{% endif %}</p>
</div>
{% if student.bio %}<p>{{ student.bio }}</p>{% endif %}
{% if has_competencies_section %}
<h2>Компетенции</h2>
{% if compet_personal_qualities %}<p>{{ compet_personal_qualities }}</p>{% endif %}
{% if compet_ok_lines %}<ul>{% for cl in compet_ok_lines %}<li>{{ cl }}</li>{% endfor %}</ul>{% endif %}
{% if compet_pk_lines %}<ul>{% for cl in compet_pk_lines %}<li>{{ cl }}</li>{% endfor %}</ul>{% endif %}
{% if compet_additional %}<p>{{ compet_additional }}</p>{% endif %}
{% endif %}
{% if skills_highlight %}
<h2>Навыки</h2>
<ul>{% for sk in skills_highlight %}<li><strong>{{ sk.name }}</strong> — {{ sk.get_level_display }}</li>{% endfor %}</ul>
{% endif %}
{% if education %}
<h2>Образование</h2>
{% for e in education %}<p><strong>{{ e.institution }}</strong> — {{ e.specialty }} ({{ e.start_year }}—{% if e.is_current %}н.в.{% else %}{{ e.end_year|default:"н.в." }}{% endif %})</p>{% endfor %}
{% endif %}
{% if projects_highlight %}
<h2>Проекты</h2>
{% for p in projects_highlight %}<p><strong>{{ p.title }}</strong>: {{ p.description|truncatewords:40 }}</p>{% endfor %}
{% endif %}
<p class="meta" style="margin-top:16px;">{{ generated_date }}</p>
ub  
<!DOCTYPE html>
<html lang="ru">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Резюме {{ student.full_name }}</title>
  <style>
    body { font-family: 'Segoe UI', system-ui, sans-serif; max-width: 820px; margin: 0 auto; padding: 24px 16px 48px;
      background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); color: #0f172a; line-height: 1.55; }
    .hero { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #f8fafc; padding: 28px 24px;
      border-radius: 16px; box-shadow: 0 20px 40px rgba(15,23,42,0.25); margin-bottom: 24px; }
    .hero h1 { margin: 0 0 8px; font-size: 26px; }
    .contact { opacity: 0.92; font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px 20px; }
    .card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px;
      box-shadow: 0 4px 20px rgba(15,23,42,0.08); border: 1px solid #e2e8f0; }
    h2 { font-size: 17px; margin: 0 0 12px; color: #1e293b; padding-left: 10px; border-left: 4px solid #3b82f6; }
    .item-title { font-weight: 600; font-size: 15px; color: #0f172a; }
    .item-meta { color: #64748b; font-size: 13px; margin: 6px 0; display: block; }
    .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
    .tag { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1d4ed8; padding: 4px 12px;
      border-radius: 999px; font-size: 12px; font-weight: 500; }
    .tech { color: #3b82f6; font-size: 12px; margin-top: 6px; }
    footer { text-align: center; font-size: 11px; color: #94a3b8; margin-top: 32px; padding-top: 16px; border-top: 1px solid #cbd5e1; }
    @media (max-width: 600px) { .hero { padding: 20px 16px; } .hero h1 { font-size: 22px; } }
  </style>
</head>
<body>
  <div class="hero">
    <h1>{{ student.full_name }}</h1>
    <div class="contact">
      {% if student.phone %}<span>📞 {{ student.phone }}</span>{% endif %}
      {% if student.email %}<span>✉️ {{ student.email }}</span>{% endif %}
      {% if student.student_group %}<span>🎓 {{ student.student_group }}</span>{% endif %}
      {% if student.specialty %}<span>{{ student.specialty }}</span>{% endif %}
    </div>
  </div>
  {% if vacancy_summary %}<div class="card"><p style="font-size:13px;color:#475569;">{{ vacancy_summary }}</p></div>{% endif %}
  {% if student.bio %}
  <div class="card"><h2>О себе</h2><p>{{ student.bio }}</p></div>
  {% endif %}
  {% if has_competencies_section %}
  <div class="card">
    <h2>Личные качества и компетенции</h2>
    {% if compet_personal_qualities %}<p><strong>Личные качества.</strong> {{ compet_personal_qualities }}</p>{% endif %}
    {% if compet_ok_lines %}<h3 style="font-size:15px;margin-top:12px;">Общие компетенции (ОК)</h3><ul style="margin:0;padding-left:18px;">{% for cl in compet_ok_lines %}<li style="margin-bottom:6px;">{{ cl }}</li>{% endfor %}</ul>{% endif %}
    {% if compet_pk_lines %}<h3 style="font-size:15px;margin-top:12px;">Профессиональные компетенции (ПК)</h3><ul style="margin:0;padding-left:18px;">{% for cl in compet_pk_lines %}<li style="margin-bottom:6px;">{{ cl }}</li>{% endfor %}</ul>{% endif %}
    {% if compet_additional %}<p style="margin-top:10px;"><strong>Дополнительные компетенции.</strong> {{ compet_additional }}</p>{% endif %}
  </div>
  {% endif %}
  {% if skills %}
  <div class="card"><h2>Навыки</h2><div class="tags">{% for sk in skills %}
    <span class="tag">{{ sk.name }}{% if sk.level == 'advanced' %} · высокий{% elif sk.level == 'intermediate' %} · средний{% else %} · базовый{% endif %}</span>
  {% endfor %}</div></div>
  {% endif %}
  {% if experience %}
  <div class="card"><h2>Опыт работы</h2>{% for exp in experience %}
    <div style="margin-bottom:14px;">
      <span class="item-title">{{ exp.position }} — {{ exp.company }}</span>
      <span class="item-meta">{{ exp.start_date|date:"m.Y" }} — {% if exp.is_current %}настоящее время{% else %}{{ exp.end_date|date:"m.Y" }}{% endif %}</span>
      <p style="font-size:14px;margin:8px 0 0;">{{ exp.description|truncatechars:320 }}</p>
    </div>
  {% endfor %}</div>
  {% endif %}
  {% if projects %}
  <div class="card"><h2>Проекты</h2>{% for project in projects %}
    <div style="margin-bottom:14px;">
      <span class="item-title">{{ project.title }}</span>
      <span class="item-meta">{{ project.get_project_type_display }}{% if project.start_date %} · {{ project.start_date|date:"m.Y" }}{% endif %}{% if project.end_date %} — {{ project.end_date|date:"m.Y" }}{% endif %}</span>
      <p style="font-size:14px;margin:8px 0 0;">{{ project.description|truncatechars:400 }}</p>
      {% if project.technologies %}<p class="tech">Технологии: {{ project.technologies }}</p>{% endif %}
    </div>
  {% endfor %}</div>
  {% endif %}
  {% if education %}
  <div class="card"><h2>Образование</h2>{% for edu in education %}
    <div style="margin-bottom:12px;">
      <span class="item-title">{{ edu.institution }}</span>
      <span class="item-meta">{{ edu.start_year }} — {% if edu.is_current %}настоящее время{% else %}{{ edu.end_year }}{% endif %}{% if edu.specialty %} · {{ edu.specialty }}{% endif %}{% if edu.degree %} · {{ edu.degree }}{% endif %}</span>
    </div>
  {% endfor %}</div>
  {% endif %}
  {% if achievements %}
  <div class="card"><h2>Достижения</h2><ul style="margin:0;padding-left:18px;">{% for ach in achievements %}
    <li style="margin-bottom:10px;"><strong>{{ ach.title }}</strong> — {{ ach.result }} ({{ ach.date|date:"m.Y" }}){% if ach.organization %}, {{ ach.organization }}{% endif %}</li>
  {% endfor %}</ul></div>
  {% endif %}
  <footer>Сгенерировано «Цифровое студенческое портфолио» · {{ generated_at }}</footer>
</body>
</html>
c                   ó   — e Zd ZdZd„ ZdS )ÚCommanduY   Создаёт и обновляет шаблоны резюме по умолчанию.c           	      ó   — t           j                             ddt                               ¦   «         t
                               ¦   «         ddœ¬¦  «        \  }}| j                             | j         	                    d|rdnd› d	|j
        › d
�¦  «        ¦  «         t           j                             ddt                               ¦   «         t                               ¦   «         ddœ¬¦  «        \  }}| j                             | j         	                    d|rdnd› d	|j
        › d
�¦  «        ¦  «         t           j                             ddt                               ¦   «         dddœ¬¦  «        \  }}| j                             | j         	                    d|rdnd› d	|j
        › d
�¦  «        ¦  «         t          j        t           ¦  «         d S )Nu   КлассическийuQ   Нейтральный одноколоночный шаблон для PDF/DOCX.T)ÚdescriptionÚhtml_templateÚ
css_stylesÚ	is_active)ÚnameÚdefaultsu*   Шаблон «Классический» u   созданu   обновлёнz (id=z).u   Компактныйub   Краткий одноколоночный вариант для короткого резюме.u&   Шаблон «Компактный» u   Современныйum   Градиентный адаптивный шаблон с полными блоками портфолио.Ú u(   Шаблон «Современный» )r   ÚobjectsÚupdate_or_createÚDEFAULT_HTMLÚstripÚDEFAULT_CSSÚstdoutÚwriteÚstyleÚSUCCESSÚpkÚCOMPACT_HTMLÚCOMPACT_CSSÚMODERN_HTMLr   Údeleter   )	ÚselfÚargsÚoptionsÚobjÚcreatedÚobj2Úcreated2Úobj3Úcreated3s	            õi   C:\Users\NNHueet\Desktop\Диплом на заказ\resume\management\commands\seed_resume_templates.pyÚhandlezCommand.handleè   s  € Ý%Ô-×>Ò>Ø+àrÝ!-×!3Ò!3Ñ!5Ô!5Ý)×/Ò/Ñ1Ô1Ø!ð	ð ð ?ñ 
ô 
‰ˆˆWð 	Œ×ÒØŒJ×ÒØÈwÐ=n¸^¸^Ð\nÐÐÐuxÔu{ÐÐÐñô ñ	
ô 	
ð 	
õ
 (Ô/×@Ò@Ø'ð  DÝ!-×!3Ò!3Ñ!5Ô!5Ý)×/Ò/Ñ1Ô1Ø!ð	ð ð Añ 
ô 
‰ˆˆhð 	Œ×ÒØŒJ×ÒØ}È8Ð9k¸¸ÐYkÐ}Ð}ÐrvÔryÐ}Ð}Ð}ñô ñ	
ô 	
ð 	
õ
 (Ô/×@Ò@Ø)ð  OÝ!,×!2Ò!2Ñ!4Ô!4Ø Ø!ð	ð ð Añ 
ô 
‰ˆˆhð 	Œ×ÒØŒJ×ÒØÈXÐ;m¸>¸>Ð[mÐÐÐtxÔt{ÐÐÐñô ñ	
ô 	
ð 	
õ
 	ŒÕ,Ñ-Ô-Ð-Ð-Ð-ó    N)Ú__name__Ú
__module__Ú__qualname__Úhelpr)   © r*   r(   r   r   å   s(   € € € € € Øf€Dð+.ð +.ð +.ð +.ð +.r*   r   N)Údjango.core.cacher   Údjango.core.management.baser   Úresume.modelsr   Úresume.views_templatesr   r   r   r   r   r   r   r/   r*   r(   ú<module>r4      s¨   ðØ #Ð #Ð #Ð #Ð #Ð #Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3à (Ð (Ð (Ð (Ð (Ð (Ø :Ð :Ð :Ð :Ð :Ð :ð€ðP€ðf€ð€ð:Z€ðz..ð ..ð ..ð ..ð ..ˆkñ ..ô ..ð ..ð ..ð ..r*   