<h2>{{ __("Rename Folder?") }}</h2>
<form method="post">{{ form_token() }}
<fieldset class="form-move-fieldset">
<legend>{% if root_dir %}
{{ cabin_url(cabin) ~ "files/" ~ root_dir ~ "/" ~ dir ~ "/" ~ file.filename }}
{% else %}
{{ cabin_url(cabin) ~ "files/" ~ dir ~ "/" ~ file.filename }}
{% endif %}
</legend>
<div class="full-width table table-pad-1">
<div class="width50 table-cell">
<select title="Destination" class="full-width" name="new_dir">
<option value=""></option>
{% for d in all_dirs %}
<option value="{{ d|e('html_attr') }}"{% if d == parent_dir %} selected="selected"{% endif %}>{{ d }}</option>
{% endfor %}
</select>
</div>
<div class="width50 table-cell">
<input
class="full-width"
name="new_name"
title="{{ __("New Directory Name")|e('html_attr') }}"
type="text"
value="{{ dir_name|e('html_attr') }}"
/>
</div>
<div class="table-cell table-btn-right">
<button type="submit" name="submit_btn" value="confirm" class="pure-button pure-button-secondary">
{{ __("Move / Rename Directory") }}
</button>
</div>
<div class="table-cell table-btn-right">
<a
class="pure-button pure-button-tertiary"
href="{{ cabin_url() ~ path_middle ~ "/" ~ cabin|e('url') ~ "/?dir=" ~ dir|e('url') }}"
>
{{ __("Cancel") }}
</a>
</div>
</div>
</fieldset>
</form>
|