{% extends "base.html" %} {% block title %}{{ template.name }} - {{ _('Project Template') }} - {{ app_name }}{% endblock %} {% block content %}

{{ template.name }}

{% if template.category %}{{ template.category }}{% endif %} {% if template.is_public %}{{ _('Public') }}{% endif %}

{% if template.created_by == current_user.id %} {{ _('Edit') }} {% endif %} {{ _('Create Project') }}
{% if template.description %}

{{ _('Description') }}

{{ template.description }}

{% endif %}

{{ _('Project Configuration') }}

{{ _('Billable') }}
{{ _('Yes') if template.config.get('billable') else _('No') }}
{% if template.config.get('hourly_rate') %}
{{ _('Hourly Rate') }}
{{ template.config.get('hourly_rate') }}
{% endif %} {% if template.config.get('estimated_hours') %}
{{ _('Estimated Hours') }}
{{ template.config.get('estimated_hours') }}
{% endif %} {% if template.config.get('budget_amount') %}
{{ _('Budget Amount') }}
{{ template.config.get('budget_amount') }}
{% endif %}
{% if template.tasks %}

{{ _('Template Tasks') }} ({{ template.tasks|length }})

{% for task in template.tasks %}

{{ task.get('name', 'Untitled Task') }}

{% if task.get('estimated_hours') %}

{{ task.get('estimated_hours') }} {{ _('hours') }}

{% endif %}
{{ task.get('priority', 'medium')|title }}
{% endfor %}
{% endif %}

{{ _('Template Info') }}

{{ _('Created') }}
{{ template.created_at.strftime('%Y-%m-%d') }}
{{ _('Usage Count') }}
{{ template.usage_count }}
{% if template.last_used_at %}
{{ _('Last Used') }}
{{ template.last_used_at.strftime('%Y-%m-%d') }}
{% endif %}
{% if template.tags %}

{{ _('Tags') }}

{% for tag in template.tags %} {{ tag }} {% endfor %}
{% endif %}
{% endblock %}