<commit_before>{% extends 'GeekhubResourceBundle::layout.html.twig' %}

{% block content %}
    {% if rejectDescription is not null %}
        <h3 style="text-align: center;">Повідомлення від адміністрації</h3>
        <div class="alert alert-warning">
            {{ rejectDescription|raw }}
        </div>
    {% endif %}
    <div class="page-header">
        <h1>Dream <small>create or edit your dream</small></h1>
    </div>
    {{ form_start(form, {'attr': {'role': 'form', 'novalidate': 'novalidate' } } ) }}
    <div class="row">
        <div class="col-md-5">

            <span class="fileinput-button" id="dream-poster-image">
                <div id="dream-poster-container">
                    <img src="{{ poster|mediaPath|imagine_filter('dream_poster_view_form') }}" class="img-thumbnail">
                    <input id="fileupload-poster" type="file" name="dream-poster">
                </div>
            </span>

            <br>
            <div id="dream-gallery">
                {% for picture in dreamPictures %}
                    <img src="{{ picture|mediaPath|imagine_filter('dream_thumb') }}" class="img-thumbnail" data-idmedia="{{ picture.id }}"/>
                {% endfor %}
                {% if status == 'completed' or status == 'success' %}
                    {% for picture in dreamCompletedPictures %}
                        <img src="{{ picture|mediaPath|imagine_filter('dream_thumb') }}" class="img-thumbnail" data-idmedia="{{ picture.id }}"/>
                    {% endfor %}
                {% endif %}
            </div>
            <br/>
            <div id="dream-files">
                {% for file in dreamFiles %}
                    <a href="{% path file, 'reference' %}"  data-idmedia="{{ file.id }}"> {{ file }} </a>
                {% endfor %}
            </div>
            <div id="dream-videos">
                {% for video in dreamVideos %}
                    <img src="../{% path video, 'video_prew' %}" class="img-thumbnail"  data-idmedia="{{ video.id }}">
                {% endfor %}
            </div>

            <div class="row">
                <div class="col-md-11">

                    <div id="dream-add-video">
                        <div class="row">
                            <div class="col-md-9 col-md-offset-1">
                                <div>
                                    <div id="dream-add-video-error"></div>
                                    <input type="text" class="form-control" id="dream-add-video-text-input">
                                </div>
                                <br/>
                                <div class="text-center">
                                    <input type="button" id="add-video-button" class="btn btn-info btn-xs" value="{{ 'dream.add'|trans }}">
                                    <input type="button" id="add-video-button-cancel" class="btn btn-warning btn-xs" value="{{ 'dream.cancel'|trans }}"><commit_msg>small fix in edit dream template<commit_after>{% extends 'GeekhubResourceBundle::layout.html.twig' %}

{% block content %}
    {% if rejectDescription is not null %}
        <h3 style="text-align: center;">Повідомлення від адміністрації</h3>
        <div class="alert alert-warning">
            {{ rejectDescription|raw }}
        </div>
    {% endif %}
    <div class="page-header">
        <h1>Dream <small>create or edit your dream</small></h1>
    </div>
    {{ form_start(form, {'attr': {'role': 'form', 'novalidate': 'novalidate' } } ) }}
    <div class="row">
        <div class="col-md-5">

            <span class="fileinput-button" id="dream-poster-image">
                <div id="dream-poster-container">
                    <img src="{{ poster|mediaPath|imagine_filter('dream_poster_view_form') }}" class="img-thumbnail">
                    <input id="fileupload-poster" type="file" name="dream-poster">
                </div>
            </span>

            <br>
            <div id="dream-gallery">
                {% for picture in dreamPictures %}
                    <img src="{{ picture|mediaPath|imagine_filter('dream_thumb') }}" class="img-thumbnail" data-idmedia="{{ picture.id }}"/>
                {% endfor %}
                {% if status == 'completed' or status == 'success' %}
                    {% for picture in dreamCompletedPictures %}
                        <img src="{{ picture|mediaPath|imagine_filter('dream_thumb') }}" class="img-thumbnail" data-idmedia="{{ picture.id }}"/>
                    {% endfor %}
                {% endif %}
            </div>
            <br/>
            <div id="dream-files">
                {% for file in dreamFiles %}
                    <a href="{{ file|mediaPath }}"  data-idmedia="{{ file.id }}"> {{ file.name }} </a>
                {% endfor %}
            </div>
            <div id="dream-videos">
                {% for video in dreamVideos %}
                    <img src="{{ video|mediaPath|imagine_filter('dream_thumb') }}" class="img-thumbnail" data-idmedia="{{ video.id }}"/>
                {% endfor %}
            </div>

            <div class="row">
                <div class="col-md-11">

                    <div id="dream-add-video">
                        <div class="row">
                            <div class="col-md-9 col-md-offset-1">
                                <div>
                                    <div id="dream-add-video-error"></div>
                                    <input type="text" class="form-control" id="dream-add-video-text-input">
                                </div>
                                <br/>
                                <div class="text-center">
                                    <input type="button" id="add-video-button" class="btn btn-info btn-xs" value="{{ 'dream.add'|trans }}">
                                    <input type="button" id="add-video-button-cancel" class="btn btn-warning btn-xs" value="{{ 'dream.cancel'|trans }}">
{'fraction_non_alphanumeric': 0.16274377942165433, 'fraction_numerical': 0.003026227303295225, 'mean_word_length': 1.510126582278481, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4939881', 'n_tokens_mistral': 1750, 'n_tokens_neox': 1596, 'n_words': 321}