{% extends 'core/walk_fs.html' %}
{% load static %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'home/css/create_project.css' %}">
{% endblock extra_head %}

{% block header_title %}
Select Project Home
{% endblock header_title %}

{% block app_title %}
SELECT PROJECT HOME
{% endblock app_title %}

{% block left_menu %}

{% block create_dir_button %}
{% if valid_home %}
<label for="set-project-home"
       class="lcars-element button lcars-u-1-2 lcars-melrose-bg">
       Set Project Home
</label>
<input type="submit" 
       id="set-project-home" 
       name="set-project-home" 
       value="Set Project Home"
       form="selection"
       style="display: none"/>
{% endif %}

{% with parent_dir_list|last as current_dir %}
<a href="{% url 'home:create_directory' dirname=current_dir.0 %}">
    <div class="lcars-element button lcars-u-1-2 lcars-chestnut-rose-bg">
        Create New Directory
    </div>
</a>
{% endwith %}

{% endblock create_dir_button %}

{{ block.super }}

{% endblock left_menu %}

{% block selectable_entries_end %}

<div class="file-list">
    {% for fname in unselectable %}
    {{fname}}<br>
    {% endfor %}
</div>

{% endblock selectable_entries_end %}


{% block main %}

{% if not valid_home %}

<div class="lcars-row"> 
    <div class="lcars-bar horizontal left-end lcars-red-alert-bg decorated">
    </div>
    <div class="lcars-bar horizontal top-bar alert-box">
        {{ invalid_home_message }}
    </div> 
    <div class="lcars-bar horizontal right-end lcars-red-alert-bg decorated">
    </div>
</div>
<br>

{% endif %}

{{ block.super }}
{% endblock main %}
