


        <div class="col-lg-4 col-md-4">
                <h3 class="list-heading">General</h3>
                Some general options (Will fill in more text later on)
        </div>
        <div class="col-lg-6 col-md-8">
            <!-- BEGIN SAMPLE FORM PORTLET-->
            <div class="portlet light bordered">
                <div class="portlet-body form">

                    {# Form body #}
                    <form class="form-horizontal" role="form" method="POST">
                        <div class="form-body">


                            <hr/>
                            <div class="caption">
                                <span class="caption-subject font-dark sbold uppercase">Paths</span>
                                <br>
                                <span class="help-inline">
                                </span>
                            </div>
                            <br>
                            <div class="form-group">
                                <label class="col-md-3 control-label">Library path</label>
                                <div class="col-md-9">
                                    <div class="input-group">
                                        <input type="text" class="form-control" name="LIBRARY_PATH"
                                               value="{{ config.get_library_path() }}">
                                        <span class="input-group-btn">
                                            <a class="btn green sbold upppercase" href="#unmanic-filebrowser-popup"
                                               data-toggle="modal"
                                               onclick="generateFileBrowserPopupContent('LIBRARY_PATH', 'directories', 'Select library path')"> Browse…
                                                <i class="fa fa-share"></i>
                                            </a>
                                        </span>
                                    </div>
                                    <span class="help-inline"> The full path to your video library that you wish to scan for files to convert </span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">Cache path</label>
                                <div class="col-md-9">
                                    <div class="input-group">
                                        <input type="text" class="form-control" name="CACHE_PATH"
                                               value="{{ config.get_cache_path() }}">
                                        <span class="input-group-btn">
                                            <a class="btn green sbold upppercase" href="#unmanic-filebrowser-popup"
                                               data-toggle="modal"
                                               onclick="generateFileBrowserPopupContent('CACHE_PATH', 'directories', 'Select cache path')"> Browse…
                                                <i class="fa fa-share"></i>
                                            </a>
                                        </span>
                                    </div>
                                    <span class="help-inline"> The full path to the folder where temporary files will be stored during conversion </span>
                                </div>
                            </div>
                            <hr/>
                            <div class="caption">
                                <span class="caption-subject font-dark sbold uppercase">Workers</span>
                                <br>
                                <span class="help-inline">
                                </span>
                            </div>
                            <br>
                            <div class="form-group">
                                <label class="col-md-3 control-label">Number of workers to spawn</label>
                                <div class="col-md-6">
                                    <select class="form-control" name="NUMBER_OF_WORKERS">
                                        {% for i in range(1,13) %}
                                        <option value="{{ escape(str(i)) }}" {% if int(config.get_number_of_workers()) == i %}
                                                selected {% end %}>
                                            {{ escape(str(i)) }}
                                        </option>
                                        {% end %}
                                    </select>
                                </div>
                            </div>
                            <hr/>
                            <div class="caption">
                                <span class="caption-subject font-dark sbold uppercase">Library Watcher</span>
                                <br>
                                <span class="help-inline">
                                </span>
                            </div>
                            <br>
                            <div class="form-group">
                                <label class="col-md-3 control-label">Enable watcher</label>
                                <div class="col-md-9">
                                    <div class="checkbox-list">
                                        <input type="hidden" name="ENABLE_INOTIFY" id="ENABLE_INOTIFY"
                                               value="{% if config.get_enable_inotify() %}true{% end %}">
                                        <label>
                                            <input type="checkbox" id="inotify_enabled"
                                                   onchange="toggleInotify();" {% if config.get_enable_inotify() %}
                                                   checked {% end %} />
                                        </label>
                                        <span class="help-inline"> If enabled, any file modifications or additions to the library will trigger that file to be processed </span>
                                    </div>
                                </div>
                            </div>
                            <hr/>
                            <div class="caption">
                                <span class="caption-subject font-dark sbold uppercase">Library Scanner</span>
                                <br>
                                <span class="help-inline">
                                </span>
                            </div>
                            <br>
                            <div class="form-group">
                                <label class="col-md-3 control-label">Library scan schedule</label>
                                <div class="col-md-9">
                                    <input type="text" class="form-control input-inline input-medium"
                                           name="SCHEDULE_FULL_SCAN_MINUTES"
                                           value="{{ escape(str(config.get_schedule_full_scan_minutes())) }}">
                                    <span class="help-inline"> The time (in minutes) between full library scans. Set to 0 to disable </span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">Run scan on start</label>
                                <div class="col-md-9">
                                    <div class="checkbox-list">
                                        <input type="hidden" name="RUN_FULL_SCAN_ON_START" id="RUN_FULL_SCAN_ON_START"
                                               value="{% if config.get_run_full_scan_on_start() %}true{% end %}">
                                        <label>
                                            <input type="checkbox" id="run_scan_on_start_enabled"
                                                   onchange="toggleRunScanOnStart();" {% if config.get_run_full_scan_on_start() %}
                                                   checked {% end %} />
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <hr/>
                            <div class="caption">
                                <span class="caption-subject font-dark sbold uppercase">Keep Filename History</span>
                                <br>
                                <span class="help-inline">
                                </span>
                            </div>
                            <br>
                            <div class="form-group">
                                <label class="col-md-3 control-label">Keep Filename History</label>
                                <div class="col-md-9">
                                    <div class="checkbox-list">
                                        <input type="hidden" name="KEEP_FILENAME_HISTORY" id="KEEP_FILENAME_HISTORY"
                                               value="{% if config.get_keep_filename_history() %}true{% end %}">
                                        <label>
                                            <input type="checkbox" id="keep_filename_history_enabled"
                                                   onchange="toggleKeepFilenameHistory();" {% if config.get_keep_filename_history() %}
                                                   checked {% end %} />
                                        </label>
                                        <span class="help-inline">If enabled, unmanic will keep a filename history using FileBot pattern (file_info). Useful for Sub-Zero Plex Plugin and other subtitles downloaders.</span>
                                    </div>
                                </div>
                            </div>
                            <hr/>
                            <div class="caption">
                                <span class="caption-subject font-dark sbold uppercase">Debugging</span>
                                <br>
                                <span class="help-inline">
                                </span>
                            </div>
                            <br>
                            <div class="form-group">
                                <label class="col-md-3 control-label">Enable debugging</label>
                                <div class="col-md-9">
                                    <div class="checkbox-list">
                                        <input type="hidden" name="DEBUGGING" id="DEBUGGING"
                                               value="{% if config.get_debugging() %}true{% end %}">
                                        <label>
                                            <input type="checkbox" id="debugging_enabled"
                                                   onchange="toggleDebugging();" {% if config.get_debugging() %} checked {% end %} />
                                        </label>
                                    </div>
                                    <div class="note note-info note-bordered debugging-enabled-notice hidden">
                                        <h4>Note:</h4>
                                        <p>
                                            You must restart Unmanic for these changes to take effect.
                                        </p>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="form-actions">
                            <div class="row">
                                <div class="col-md-offset-3 col-md-9">
                                    <button type="submit" class="btn green">Submit</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>

