mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-22 22:40:54 -04:00
Text changes
This commit is contained in:
parent
61ac8739eb
commit
fc8c4610c7
@ -35,7 +35,7 @@ Note: you may be prompted for your Github user/pass due to their API limits.
|
|||||||
|
|
||||||
composer install
|
composer install
|
||||||
|
|
||||||
Configure config/database.php and then initialize the database
|
Configure config/database.php and config/mail.php and initialize the database.
|
||||||
|
|
||||||
php artisan migrate --seed
|
php artisan migrate --seed
|
||||||
|
|
||||||
|
@ -6,12 +6,4 @@ class Product extends EntityModel
|
|||||||
{
|
{
|
||||||
return Product::scope()->where('product_key','=',$key)->first();
|
return Product::scope()->where('product_key','=',$key)->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getProductKeys($products)
|
|
||||||
{
|
|
||||||
$products = array_pluck($products, 'product_key');
|
|
||||||
$products = array_combine($products, $products);
|
|
||||||
|
|
||||||
return $products;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -13,7 +13,7 @@
|
|||||||
{{ Former::populateField('cost', number_format($product->cost, 2)) }}
|
{{ Former::populateField('cost', number_format($product->cost, 2)) }}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
{{ Former::text('product_key') }}
|
{{ Former::text('product_key')->label('texts.product') }}
|
||||||
{{ Former::textarea('notes')->data_bind("value: wrapped_notes, valueUpdate: 'afterkeydown'") }}
|
{{ Former::textarea('notes')->data_bind("value: wrapped_notes, valueUpdate: 'afterkeydown'") }}
|
||||||
{{ Former::text('cost') }}
|
{{ Former::text('cost') }}
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
<i style="display:none" data-bind="visible: actionsVisible() && $parent.invoice_items().length > 1" class="fa fa-sort"></i>
|
<i style="display:none" data-bind="visible: actionsVisible() && $parent.invoice_items().length > 1" class="fa fa-sort"></i>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ Former::text('product_key')->useDatalist(Product::getProductKeys($products), 'product_key')->onkeyup('onItemChange()')
|
{{ Former::text('product_key')->useDatalist($products, 'product_key')->onkeyup('onItemChange()')
|
||||||
->raw()->data_bind("value: product_key, valueUpdate: 'afterkeydown'")->addClass('datalist') }}
|
->raw()->data_bind("value: product_key, valueUpdate: 'afterkeydown'")->addClass('datalist') }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -66,8 +66,8 @@
|
|||||||
<ul class="navbar-list">
|
<ul class="navbar-list">
|
||||||
<!-- <li>{{ link_to('features', 'Features' ) }}</li> -->
|
<!-- <li>{{ link_to('features', 'Features' ) }}</li> -->
|
||||||
<!-- <li>{{ link_to('faq', 'FAQ' ) }}</li> -->
|
<!-- <li>{{ link_to('faq', 'FAQ' ) }}</li> -->
|
||||||
<li>{{ link_to('plans', 'Plans' ) }}</li>
|
|
||||||
<li>{{ link_to('about', 'About Us' ) }}</li>
|
<li>{{ link_to('about', 'About Us' ) }}</li>
|
||||||
|
<!--<li>{{ link_to('plans', 'Plans' ) }}</li>-->
|
||||||
<li>{{ link_to('contact', 'Contact Us' ) }}</li>
|
<li>{{ link_to('contact', 'Contact Us' ) }}</li>
|
||||||
<li>{{ link_to('login', Auth::check() ? 'My Account' : 'Login' ) }}</li>
|
<li>{{ link_to('login', Auth::check() ? 'My Account' : 'Login' ) }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -125,8 +125,8 @@
|
|||||||
<ul class="navbar-list">
|
<ul class="navbar-list">
|
||||||
<!-- <li>{{ link_to('features', 'Features' ) }}</li> -->
|
<!-- <li>{{ link_to('features', 'Features' ) }}</li> -->
|
||||||
<!-- <li>{{ link_to('faq', 'FAQ' ) }}</li> -->
|
<!-- <li>{{ link_to('faq', 'FAQ' ) }}</li> -->
|
||||||
<li>{{ link_to('plans', 'Plans' ) }}</li>
|
|
||||||
<li>{{ link_to('about', 'About Us' ) }}</li>
|
<li>{{ link_to('about', 'About Us' ) }}</li>
|
||||||
|
<!--<li>{{ link_to('plans', 'Plans' ) }}</li> -->
|
||||||
<li>{{ link_to('contact', 'Contact Us' ) }}</li>
|
<li>{{ link_to('contact', 'Contact Us' ) }}</li>
|
||||||
<li>{{ link_to('login', Auth::check() ? 'My Account' : 'Login' ) }}</li>
|
<li>{{ link_to('login', Auth::check() ? 'My Account' : 'Login' ) }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user