<div class="modal modal-node-player-group-edit hidden">
    <h2>
        {{ l.fleet_node_player_group_form_edit_title }}
    </h2>

    <form class="form" action="/fleet/node-player-group/edit" method="POST">
        <input type="hidden" name="id" id="node-player-group-edit-id" />

        <div class="form-group">
            <label for="node-player-group-edit-name">{{ l.fleet_node_player_group_form_label_name }}</label>
            <div class="widget">
                <input type="text" name="name" id="node-player-group-edit-name" required="required" />
            </div>
        </div>

        <div class="form-group">
            <label for="node-player-group-edit-playlist-id">{{ l.fleet_node_player_group_form_label_playlist_id }}</label>
            <div class="widget">
                <select name="playlist_id" id="node-player-group-edit-playlist-id">
                    <option value="">{{ l.common_default_playlist }}</option>
                    {% for playlist_id, playlist_name in playlists.items() %}
                        <option value="{{ playlist_id }}">{{ playlist_name }}</option>
                    {% endfor %}
                </select>
            </div>
        </div>

        <div class="actions">
            <button type="button" class="btn-normal modal-close">
                {{ l.fleet_node_player_group_form_button_cancel }}
            </button>
            <button type="submit" class="green">
                <i class="fa fa-save icon-left"></i>{{ l.fleet_node_player_group_form_edit_submit }}
            </button>
        </div>
    </form>
</div>