Move the banner form into Theme. Closes #1051

This commit is contained in:
James Brooks
2015-10-27 08:19:53 +00:00
parent ce633c6b29
commit 964a5fc514
2 changed files with 19 additions and 18 deletions

View File

@@ -13,7 +13,7 @@
</div>
<div class="row">
<div class="col-sm-12">
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST" enctype="multipart/form-data">
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
@include('dashboard.partials.errors')
<fieldset>
@@ -84,22 +84,6 @@
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label>{{ trans('forms.settings.app-setup.banner') }}</label>
@if($banner = Setting::get('app_banner'))
<div id="banner-view" class="well">
<img src="data:{{ Setting::get('app_banner_type') }};base64,{{ $banner }}" style="max-width: 100%">
<br><br>
<button id="remove-banner" class="btn btn-danger">{{ trans('forms.remove') }}</button>
</div>
@endif
<input type="file" name="app_banner" class="form-control">
<span class="help-block">{{ trans('forms.settings.app-setup.banner-help') }}</span>
</div>
</div>
</div>
</fieldset>
<div class="row">

View File

@@ -13,9 +13,26 @@
</div>
<div class="row">
<div class="col-sm-12">
<form name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST">
<form name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
@include('dashboard.partials.errors')
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label>{{ trans('forms.settings.app-setup.banner') }}</label>
@if($banner = Setting::get('app_banner'))
<div id="banner-view" class="well">
<img src="data:{{ Setting::get('app_banner_type') }};base64,{{ $banner }}" style="max-width: 100%">
<br><br>
<button id="remove-banner" class="btn btn-danger">{{ trans('forms.remove') }}</button>
</div>
@endif
<input type="file" name="app_banner" class="form-control">
<span class="help-block">{{ trans('forms.settings.app-setup.banner-help') }}</span>
</div>
</div>
</div>
<hr>
<fieldset>
<div class="row">
<div class="col-xs-6">