Proposals

This commit is contained in:
Hillel Coren 2018-02-11 10:18:05 +02:00
parent 110640b61b
commit 08cd5a2c07
5 changed files with 20 additions and 0 deletions

View File

@ -13,6 +13,7 @@
{!! Former::open($url) {!! Former::open($url)
->method($method) ->method($method)
->onsubmit('return onFormSubmit(event)') ->onsubmit('return onFormSubmit(event)')
->addClass('warn-on-exit')
->rules([ ->rules([
'invoice_id' => 'required', 'invoice_id' => 'required',
]) !!} ]) !!}

View File

@ -40,6 +40,10 @@ $(function() {
} }
@endif @endif
grapesjsEditor.on('component:update', function(a, b) {
NINJA.formIsChanged = true;
});
}); });
</script> </script>

View File

@ -2,16 +2,29 @@
<link href="{{ asset('css/grapesjs.css') }}?no_cache={{ NINJA_VERSION }}" rel="stylesheet" type="text/css"/> <link href="{{ asset('css/grapesjs.css') }}?no_cache={{ NINJA_VERSION }}" rel="stylesheet" type="text/css"/>
<style> <style>
.gjs-four-color, .gjs-four-color,
.gjs-four-color-h:hover { .gjs-four-color-h:hover {
color: #3b97ff !important; color: #3b97ff !important;
} }
.gjs-rte-actionbar, .gjs-rte-actionbar,
.gjs-block-label, .gjs-block-label,
.gjs-block-categories { .gjs-block-categories {
font-size: 12px !important; font-size: 12px !important;
} }
.gjs-toolbar-item { .gjs-toolbar-item {
font-size: 2em !important; font-size: 2em !important;
} }
#gjs-clm-status-c {
display: none !important;
}
/* Workaround for https://github.com/artf/grapesjs/issues/596 */
.sp-container.sp-light {
left: 300px !important;
}
</style> </style>

View File

@ -18,6 +18,7 @@
{!! Former::open($url) {!! Former::open($url)
->method($method) ->method($method)
->onsubmit('return onFormSubmit(event)') ->onsubmit('return onFormSubmit(event)')
->addClass('warn-on-exit')
->rules([ ->rules([
'name' => 'required', 'name' => 'required',
]) !!} ]) !!}

View File

@ -12,6 +12,7 @@
{!! Former::open($url) {!! Former::open($url)
->method($method) ->method($method)
->onsubmit('return onFormSubmit(event)') ->onsubmit('return onFormSubmit(event)')
->addClass('warn-on-exit')
->rules([ ->rules([
'name' => 'required', 'name' => 'required',
]) !!} ]) !!}