<commit_before>@extends('layout.dashboard')

@section('content')
	<div class="header">
        <span class="uppercase">
		    <i class="icon ion-gear-a"></i> {{ Lang::get('cachet.dashboard.settings') }}
        </span>
	</div>
    <div class="content-wrapper">
        <div class="row">
            <div class="col-sm-12">
                <form name='SettingsForm' class='form-vertical' role='form' action='/dashboard/settings' method='POST'>
                    <h4 class="sub-header">Cachet Settings</h4>
                    <fieldset>
                        <div class='form-group'>
                            <label>Site Name</label>
                            <input type='text' class='form-control' name='app_name' value='{{ Setting::get("app_name") }}' required />
                        </div>
                        <div class='form-group'>
                            <label>Site URL</label>
                            <input type='text' class='form-control' name='app_domain' value='{{ Setting::get("app_domain") }}' required />
                        </div>
                    </fieldset>

                    <!-- <h4 class="sub-header">Server</h4>
                    <fieldset></fieldset> -->

                    <h4 class="sub-header">Security</h4>
                    <fieldset>
                        <div class='form-group'>
                            <label>Allowed Domains <em>Comma Seperated</em></label>
                            <textarea class='form-control' name='allowed_domains' rows='5' placeholder='http://cachet.io, http://cachet.herokuapp.com'>{{ Setting::get('allowed_domains') }}</textarea>
                            <div class='help-block'>
                                The domain set above is automatically allowed by default.
                            </div>
                        </div>
                    </fieldset>

                    <!-- <h4 class='sub-header'>Mail</h4>
                    <fieldset></fieldset> -->

                    <h4 class="sub-header">Theme</h4>
                    <fieldset>
                        <div class='form-group'>
                            <label>Background Color</label>
                            <input type='text' class='form-control color-code' name='style.background_color' value='{{ Setting::get("style_background_color") }}' />
                            </div>
                        <div class='form-group'>
                            <label>Text Color</label>
                            <input type='text' class='form-control color-code' name='style.text_color' value='{{ Setting::get("style_text_color") }}' />
                            </div>
                        <div class='form-group'>
                            <label>Success Warning Color</label>
                            <input type='text' class='form-control color-code' name='style.success_warning_color' value='{{ Setting::get("style_success_warning_color") }}' />
                        </div>
                        <div class='form-group'>
                            <label>Error Warning Color</label>
                            <input type='text' class='form-control color-code' name='style.error_warning_color' value='{{ Setting::get("style_error_warning_color") }}' />
                        </div>
                        <div class='form-group'>
                            <label>Info Warning Color</label>
                            <input type='text' class='form-control color-code' name='style.style_info_warning_color' value='{{ Setting::get("style_info_warning_color") }}' />
                        </div>
                    </fieldset>

                    <h4 class="sub-header">Stylesheet</h4>
                    <fieldset>
                        <div class='form-group'>
                            <label>Custom Stylesheet</label>
                            <textarea class='form-control' name='stylesheet' rows='10'>{{ Setting::get('stylesheet') }}</textarea>
                        </div>
                    </fieldset>

                    <button type="submit" class="btn btn-success">Save settings</button>
                </form>
            </div>
        </div>
    </div>
@stop<commit_msg>Re-layout the settings page for inline theme settings<commit_after>@extends('layout.dashboard')

@section('content')
    <div class="header">
        <span class="uppercase">
            <i class="icon ion-gear-a"></i> {{ Lang::get('cachet.dashboard.settings') }}
        </span>
    </div>
    <div class="content-wrapper">
        <div class="row">
            <div class="col-sm-12">
                <form name='SettingsForm' class='form-vertical' role='form' action='/dashboard/settings' method='POST'>
                    <h4 class="sub-header">Cachet Settings</h4>
                    <fieldset>
                        <div class='row'>
                            <div class='col-xs-12'>
                                <div class='form-group'>
                                    <label>Site Name</label>
                                    <input type='text' class='form-control' name='app_name' value='{{ Setting::get("app_name") }}' required />
                                </div>
                            </div>
                        </div>
                        <div class='row'>
                            <div class='col-xs-12'>
                                <div class='form-group'>
                                    <label>Site URL</label>
                                    <input type='text' class='form-control' name='app_domain' value='{{ Setting::get("app_domain") }}' required />
                                </div>
                            </div>
                        </div>
                    </fieldset>

                    <!-- <h4 class="sub-header">Server</h4>
                    <fieldset></fieldset> -->

                    <h4 class="sub-header">Security</h4>
                    <fieldset>
                        <div class='row'>
                            <div class='col-xs-12'>
                                <div class='form-group'>
                                    <label>Allowed Domains <em>Comma Seperated</em></label>
                                    <textarea class='form-control' name='allowed_domains' rows='5' placeholder='http://cachet.io, http://cachet.herokuapp.com'>{{ Setting::get('allowed_domains') }}</textarea>
                                    <div class='help-block'>
                                        The domain set above is automatically allowed by default.
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>

                    <!-- <h4 class='sub-header'>Mail</h4>
                    <fieldset></fieldset> -->

                    <h4 class="sub-header">Theme</h4>
                    <fieldset>
                        <div class='row'>
                            <div class='col-xs-6'>
                                <div class='form-group'>
                                    <label>Background Color</label>
                                    <input type='text' class='form-control color-code' name='style.background_color' value='{{ Setting::get("style_background_color") }}' />
                                </div>
                            </div>
                            <div class='col-xs-6'>
                                <div class='form-group'>
                                    <label>Text Color</label>
                                    <input type='text' class='form-control color-code' name='style.text_color' value='{{ Setting::get("style_text_color") }}' />
                                </div>
                            </div>
                        </div>
                        <div class='row'>
                            <div class='col-xs-4'>
                                <div class='form-group'>
                                    <label>Success Warning Color</label>
                                    <input type='text' class='form-control color-code' name='style.success_warning_color' value='{{ Setting::get("style_success_warning_color") }}' />
                                </div>
                            </div>
                            <div class='col-xs-4'>
                                <div class='form-group'>
                                    <label>Error Warning Color</label>
                                    <input type='text' class='form-control color-code' name='style.error_warning_color' value='{{ Setting::get("style_error_warning_color") }}' />
                                </div>
                            </div>
                            <div class='col-xs-4'>
                                <div class='form-group'>
                                    <label>Info Warning Color</label>
                                    <input type='text' class='form-control color-code' name='style.style_info_warning_color' value='{{ Setting::get("style_info_warning_color") }}' />
                                </div>
                            </div>
                        </div>
                    </fieldset>

                    <h4 class="sub-header">Stylesheet</h4>
                    <fieldset>
                        <div class='row'>
                            <div class='col-xs-12'>
                                <div class='form-group'>
                                    <label>Custom Stylesheet</label>
                                    <textarea class='form-control' name='stylesheet' rows='10'>{{ Setting::get('stylesheet') }}</textarea>
                                </div>
                            </div>
                        </div>
                    </fieldset>

                    <button type="submit" class="btn btn-success">Save settings</button>
                </form>
            </div>
        </div>
    </div>
@stop
{'fraction_non_alphanumeric': 0.13542914171656686, 'fraction_numerical': 0.00469061876247505, 'mean_word_length': 1.0933778984750366, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 219, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3417211', 'n_tokens_mistral': 2442, 'n_tokens_neox': 2308, 'n_words': 415}