<div class="modal modal-slide-add modal-slide">
    <h2>
        {{ l.slideshow_slide_form_add_title }}
    </h2>

    <form action="/slideshow/slide/add" method="POST" enctype="multipart/form-data">
        <div class="form-group">
            <label for="slide-add-name">{{ l.slideshow_slide_form_label_name }}</label>
            <div class="widget">
                <input name="name" type="text" id="slide-add-name" required="required" />
            </div>
        </div>
        <div class="form-group">
            <label for="slide-add-type">{{ l.slideshow_slide_form_label_type }}</label>
            <div class="widget">
                <select name="type" id="slide-add-type">
                    <option value="url" data-input="text">{{ l.slideshow_slide_form_label_type_url }}</option>
                    <option value="video" data-input="upload">{{ l.slideshow_slide_form_label_type_video }}</option>
                    <option value="picture" data-input="upload">{{ l.slideshow_slide_form_label_type_picture }}</option>
                </select>
            </div>
        </div>

        <div class="form-group object-input">
            <label for="slide-add-duration">{{ l.slideshow_slide_form_label_object }}</label>
            <div class="widget">
                <input type="text" name="object" id="slide-add-object-input-text" class="slide-add-object-input" />
                <input type="file" name="object" id="slide-add-object-input-upload" class="slide-add-object-input hidden" disabled="disabled" />
            </div>
        </div>

        <div class="form-group">
            <label for="slide-add-duration">{{ l.slideshow_slide_form_label_duration }}</label>
            <div class="widget">
                <input type="number" name="duration" id="slide-add-duration" required="required" />
                <span>{{ l.slideshow_slide_form_label_duration_unit }}</span>
            </div>
        </div>

         <div class="form-group">
            <label for="slide-add-cron-schedule">{{ l.slideshow_slide_form_label_cron_scheduled }}</label>
            <div class="widget">
                <select id="slide-add-cron-schedule-trigger" class="trigger">
                    <option value="loop">{{ l.slideshow_slide_form_label_cron_scheduled_loop }}</option>
                    <option value="datetime">{{ l.slideshow_slide_form_label_cron_scheduled_datetime }}</option>
                    <option value="cron">{{ l.slideshow_slide_form_label_cron_scheduled_cron }}</option>
                </select>
                <input type="text" id="slide-add-cron-schedule-datetimepicker" class="datetimepicker" value="" placeholder="{{ l.slideshow_slide_form_label_cron_scheduled_datetime_placeholder }}" />
                <input type="text" name="cron_schedule" id="slide-add-cron-schedule" class="target hidden" placeholder="{{ l.slideshow_slide_form_widget_cron_scheduled_placeholder }}" />
            </div>
        </div>

        <div class="actions">
            <button type="button" class="modal-close">
                {{ l.slideshow_slide_form_button_cancel }}
            </button>
            <button type="submit" class="green">
                <i class="fa fa-plus icon-left"></i> {{ l.slideshow_slide_form_add_submit }}
            </button>
        </div>
    </form>
</div>