mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Styling forms
This commit is contained in:
parent
831c81a4b9
commit
d34fbcf726
@ -27,11 +27,11 @@ class StartupCheck
|
|||||||
{
|
{
|
||||||
// Set up trusted X-Forwarded-Proto proxies
|
// Set up trusted X-Forwarded-Proto proxies
|
||||||
// TRUSTED_PROXIES accepts a comma delimited list of subnets
|
// TRUSTED_PROXIES accepts a comma delimited list of subnets
|
||||||
//
|
// ie, TRUSTED_PROXIES='10.0.0.0/8,172.16.0.0/12,192.168.0.0/16'
|
||||||
// TRUSTED_PROXIES='10.0.0.0/8,172.16.0.0/12,192.168.0.0/16'
|
|
||||||
if (isset($_ENV['TRUSTED_PROXIES'])) {
|
if (isset($_ENV['TRUSTED_PROXIES'])) {
|
||||||
Request::setTrustedProxies(array_map('trim',explode(",",env('TRUSTED_PROXIES'))));
|
Request::setTrustedProxies(array_map('trim', explode(',', env('TRUSTED_PROXIES'))));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure all request are over HTTPS in production
|
// Ensure all request are over HTTPS in production
|
||||||
if (App::environment() == ENV_PRODUCTION && !Request::secure()) {
|
if (App::environment() == ENV_PRODUCTION && !Request::secure()) {
|
||||||
return Redirect::secure(Request::getRequestUri());
|
return Redirect::secure(Request::getRequestUri());
|
||||||
|
@ -46,7 +46,7 @@ class AuthService
|
|||||||
if ($result === true) {
|
if ($result === true) {
|
||||||
if (!$isRegistered) {
|
if (!$isRegistered) {
|
||||||
event(new UserSignedUp());
|
event(new UserSignedUp());
|
||||||
Session::flash('warning', trans('texts.success_message'));
|
Session::flash('message', trans('texts.success_message'));
|
||||||
} else {
|
} else {
|
||||||
Session::flash('message', trans('texts.updated_settings'));
|
Session::flash('message', trans('texts.updated_settings'));
|
||||||
return redirect()->to('/settings/' . ACCOUNT_COMPANY_DETAILS);
|
return redirect()->to('/settings/' . ACCOUNT_COMPANY_DETAILS);
|
||||||
|
45
public/css/built.css
vendored
45
public/css/built.css
vendored
@ -3105,8 +3105,39 @@ box-shadow: 0px 0px 15px 0px rgba(0, 5, 5, 0.2);
|
|||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 992px) {
|
|
||||||
.hide-desktop {display: none;}
|
/* Custom, iPhone Retina */
|
||||||
|
@media only screen and (min-width : 320px) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Extra Small Devices, Phones */
|
||||||
|
@media only screen and (min-width : 480px) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Small Devices, Tablets */
|
||||||
|
@media only screen and (min-width : 768px) {
|
||||||
|
.form-padding-right {
|
||||||
|
padding-right: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Medium Devices, Desktops */
|
||||||
|
@media only screen and (min-width : 992px) {
|
||||||
|
.form-padding-right {
|
||||||
|
padding-right: 100px;
|
||||||
|
}
|
||||||
|
.medium-dialog {
|
||||||
|
width: 760px;
|
||||||
|
}
|
||||||
|
.large-dialog {
|
||||||
|
width: 960px;
|
||||||
|
}
|
||||||
|
.hide-desktop
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 992px) {
|
@media (max-width: 992px) {
|
||||||
@ -3115,15 +3146,6 @@ box-shadow: 0px 0px 15px 0px rgba(0, 5, 5, 0.2);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 992px) {
|
|
||||||
.medium-dialog {
|
|
||||||
width: 760px;
|
|
||||||
}
|
|
||||||
.large-dialog {
|
|
||||||
width: 960px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.test-class{color:black;}
|
.test-class{color:black;}
|
||||||
|
|
||||||
@ -3342,6 +3364,7 @@ ul.user-accounts a:hover div.remove {
|
|||||||
width: 350px;
|
width: 350px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Show selected section in settings nav */
|
||||||
.list-group-item.selected:before {
|
.list-group-item.selected:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
44
public/css/style.css
vendored
44
public/css/style.css
vendored
@ -755,8 +755,39 @@ box-shadow: 0px 0px 15px 0px rgba(0, 5, 5, 0.2);
|
|||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 992px) {
|
|
||||||
.hide-desktop {display: none;}
|
/* Custom, iPhone Retina */
|
||||||
|
@media only screen and (min-width : 320px) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Extra Small Devices, Phones */
|
||||||
|
@media only screen and (min-width : 480px) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Small Devices, Tablets */
|
||||||
|
@media only screen and (min-width : 768px) {
|
||||||
|
.form-padding-right {
|
||||||
|
padding-right: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Medium Devices, Desktops */
|
||||||
|
@media only screen and (min-width : 992px) {
|
||||||
|
.form-padding-right {
|
||||||
|
padding-right: 100px;
|
||||||
|
}
|
||||||
|
.medium-dialog {
|
||||||
|
width: 760px;
|
||||||
|
}
|
||||||
|
.large-dialog {
|
||||||
|
width: 960px;
|
||||||
|
}
|
||||||
|
.hide-desktop
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 992px) {
|
@media (max-width: 992px) {
|
||||||
@ -765,15 +796,6 @@ box-shadow: 0px 0px 15px 0px rgba(0, 5, 5, 0.2);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 992px) {
|
|
||||||
.medium-dialog {
|
|
||||||
width: 760px;
|
|
||||||
}
|
|
||||||
.large-dialog {
|
|
||||||
width: 960px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.test-class{color:black;}
|
.test-class{color:black;}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans($title) !!}</h3>
|
<h3 class="panel-title">{!! trans($title) !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
@if ($accountGateway)
|
@if ($accountGateway)
|
||||||
{!! Former::populateField('gateway_id', $accountGateway->gateway_id) !!}
|
{!! Former::populateField('gateway_id', $accountGateway->gateway_id) !!}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.details') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.details') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
{!! Former::text('name') !!}
|
{!! Former::text('name') !!}
|
||||||
{!! Former::text('id_number') !!}
|
{!! Former::text('id_number') !!}
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.address') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.address') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
{!! Former::text('address1') !!}
|
{!! Former::text('address1') !!}
|
||||||
{!! Former::text('address2') !!}
|
{!! Former::text('address2') !!}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.email_settings') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.email_settings') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
{!! Former::checkbox('pdf_email_attachment')->text(trans('texts.enable')) !!}
|
{!! Former::checkbox('pdf_email_attachment')->text(trans('texts.enable')) !!}
|
||||||
@if (Utils::isNinja())
|
@if (Utils::isNinja())
|
||||||
{!! Former::inline_radios('custom_invoice_link')
|
{!! Former::inline_radios('custom_invoice_link')
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.invoice_quote_number') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.invoice_quote_number') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
<div role="tabpanel">
|
<div role="tabpanel">
|
||||||
<ul class="nav nav-tabs" role="tablist" style="border: none">
|
<ul class="nav nav-tabs" role="tablist" style="border: none">
|
||||||
<li role="presentation" class="active"><a href="#invoiceNumber" aria-controls="invoiceNumber" role="tab" data-toggle="tab">{{ trans('texts.invoice_number') }}</a></li>
|
<li role="presentation" class="active"><a href="#invoiceNumber" aria-controls="invoiceNumber" role="tab" data-toggle="tab">{{ trans('texts.invoice_number') }}</a></li>
|
||||||
@ -90,7 +90,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.custom_fields') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.custom_fields') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
<div role="tabpanel">
|
<div role="tabpanel">
|
||||||
<ul class="nav nav-tabs" role="tablist" style="border: none">
|
<ul class="nav nav-tabs" role="tablist" style="border: none">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.localization') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.localization') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
{!! Former::select('currency_id')->addOption('','')
|
{!! Former::select('currency_id')->addOption('','')
|
||||||
->fromQuery($currencies, 'name', 'id') !!}
|
->fromQuery($currencies, 'name', 'id') !!}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! $title !!}</h3>
|
<h3 class="panel-title">{!! $title !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
@if ($product)
|
@if ($product)
|
||||||
{{ Former::populate($product) }}
|
{{ Former::populate($product) }}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans($title) !!}</h3>
|
<h3 class="panel-title">{!! trans($title) !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
@if ($token)
|
@if ($token)
|
||||||
{!! Former::populate($token) !!}
|
{!! Former::populate($token) !!}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.user_details') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.user_details') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
{!! Former::text('first_name') !!}
|
{!! Former::text('first_name') !!}
|
||||||
{!! Former::text('last_name') !!}
|
{!! Former::text('last_name') !!}
|
||||||
{!! Former::text('email') !!}
|
{!! Former::text('email') !!}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! $title !!}</h3>
|
<h3 class="panel-title">{!! $title !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
{!! Former::text('first_name') !!}
|
{!! Former::text('first_name') !!}
|
||||||
{!! Former::text('last_name') !!}
|
{!! Former::text('last_name') !!}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user