<h2>{{ __("Rename File?") }}</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 == dir %} selected="selected"{% endif %}>{{ d }}</option>
{% endfor %}
</select>
</div>
<div class="width50 table-cell">
<input title="{{ __("New Filename")|e('html_attr') }}" class="full-width" type="text" name="new_name" value="{{ file.filename|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 File") }}
</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>
|