Spaces:
Sleeping
Sleeping
Create templates/preview.html
Browse files- templates/preview.html +71 -0
templates/preview.html
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block content %}
|
| 4 |
+
<div class="preview-container">
|
| 5 |
+
<div class="preview-header">
|
| 6 |
+
<h1>Analysis Results</h1>
|
| 7 |
+
<p>Azure OpenAI analysis of your recruitment documents</p>
|
| 8 |
+
</div>
|
| 9 |
+
|
| 10 |
+
<div class="preview-content">
|
| 11 |
+
<div class="analysis-card">
|
| 12 |
+
<h3>Document Analysis Summary</h3>
|
| 13 |
+
<div class="analysis-grid">
|
| 14 |
+
<div class="analysis-item">
|
| 15 |
+
<label>App Name:</label>
|
| 16 |
+
<span>{{ analysis.app_name }}</span>
|
| 17 |
+
</div>
|
| 18 |
+
<div class="analysis-item">
|
| 19 |
+
<label>Company:</label>
|
| 20 |
+
<span>{{ analysis.company_info.company_name }}</span>
|
| 21 |
+
</div>
|
| 22 |
+
<div class="analysis-item">
|
| 23 |
+
<label>Industry:</label>
|
| 24 |
+
<span>{{ analysis.company_info.industry }}</span>
|
| 25 |
+
</div>
|
| 26 |
+
<div class="analysis-item">
|
| 27 |
+
<label>Positions Found:</label>
|
| 28 |
+
<span>{{ analysis.positions|length }}</span>
|
| 29 |
+
</div>
|
| 30 |
+
<div class="analysis-item">
|
| 31 |
+
<label>Recruitment Stages:</label>
|
| 32 |
+
<span>{{ analysis.recruitment_stages|length }}</span>
|
| 33 |
+
</div>
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<div class="actions-card">
|
| 38 |
+
<h3>Generate Application</h3>
|
| 39 |
+
<p>Based on the analysis, we'll generate a complete Power Apps-like interface for your recruitment process.</p>
|
| 40 |
+
|
| 41 |
+
<div class="action-buttons">
|
| 42 |
+
<a href="{{ url_for('generate_app') }}" class="generate-btn">
|
| 43 |
+
<i class="fas fa-magic"></i>
|
| 44 |
+
Generate Application
|
| 45 |
+
</a>
|
| 46 |
+
|
| 47 |
+
<a href="{{ url_for('upload') }}" class="secondary-btn">
|
| 48 |
+
<i class="fas fa-upload"></i>
|
| 49 |
+
Upload Different Documents
|
| 50 |
+
</a>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
{% if analysis.positions %}
|
| 55 |
+
<div class="positions-preview">
|
| 56 |
+
<h3>Detected Positions</h3>
|
| 57 |
+
<div class="positions-grid">
|
| 58 |
+
{% for position in analysis.positions %}
|
| 59 |
+
<div class="position-card">
|
| 60 |
+
<h4>{{ position.title }}</h4>
|
| 61 |
+
<p class="department">{{ position.department }}</p>
|
| 62 |
+
<p class="level">{{ position.level }}</p>
|
| 63 |
+
<p class="description">{{ position.description[:100] }}...</p>
|
| 64 |
+
</div>
|
| 65 |
+
{% endfor %}
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
{% endif %}
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
{% endblock %}
|