Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
7d2eae23
Commit
7d2eae23
authored
9 years ago
by
aspangaro
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Better presentation for add form
parent
67140dc1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/product/card.php
+5
-1
5 additions, 1 deletion
htdocs/product/card.php
htdocs/product/fournisseurs.php
+8
-2
8 additions, 2 deletions
htdocs/product/fournisseurs.php
htdocs/product/price.php
+20
-3
20 additions, 3 deletions
htdocs/product/price.php
with
33 additions
and
6 deletions
htdocs/product/card.php
+
5
−
1
View file @
7d2eae23
...
...
@@ -8,7 +8,7 @@
* Copyright (C) 2010-2014 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013-2014 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2012-2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2011-201
4
Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
* Copyright (C) 2011-201
5
Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
* Copyright (C) 2014 Cédric Gross <c.gross@kreiz-it.fr>
* Copyright (C) 2014-2015 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
...
...
@@ -1785,6 +1785,8 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status)
print
'<input type="hidden" name="action" value="addin">'
;
print
load_fiche_titre
(
$langs
->
trans
(
"Add"
),
''
,
''
);
dol_fiche_head
(
''
);
$html
.
=
'<tr><td class="nowrap">'
.
$langs
->
trans
(
"Quantity"
)
.
' '
;
$html
.
=
'<input type="text" class="flat" name="qty" size="1" value="1"></td><td class="nowrap">'
.
$langs
->
trans
(
"ReductionShort"
)
.
'(%) '
;
...
...
@@ -1794,6 +1796,8 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status)
print
'<table width="100%" class="border">'
;
print
$html
;
print
'</table>'
;
dol_fiche_end
();
print
'<div class="center">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Add"
)
.
'">'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/fournisseurs.php
+
8
−
2
View file @
7d2eae23
...
...
@@ -6,6 +6,7 @@
* Copyright (C) 2010-2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2014 Ion Agorria <ion@agorria.com>
* Copyright (C) 2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -320,6 +321,8 @@ if ($id || $ref)
print
'<form action="'
.
$_SERVER
[
'PHP_SELF'
]
.
'?id='
.
$product
->
id
.
'" method="POST">'
;
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<input type="hidden" name="action" value="updateprice">'
;
dol_fiche_head
();
print
'<table class="border" width="100%">'
;
...
...
@@ -487,9 +490,11 @@ if ($id || $ref)
print
'</table>'
;
print
'<br><div class="center">'
;
dol_fiche_end
();
print
'<div class="center">'
;
print
'<input class="button" type="submit" value="'
.
$langs
->
trans
(
"Save"
)
.
'">'
;
print
'
'
;
print
'
'
;
print
'<input class="button" type="submit" name="cancel" value="'
.
$langs
->
trans
(
"Cancel"
)
.
'">'
;
print
'</div>'
;
...
...
@@ -536,6 +541,7 @@ if ($id || $ref)
print_liste_field_titre
(
$langs
->
trans
(
"UnitPriceHT"
),
$_SERVER
[
"PHP_SELF"
],
"pfp.unitprice"
,
""
,
$param
,
'align="right"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"DiscountQtyMin"
));
print_liste_field_titre
(
$langs
->
trans
(
"NbDaysToDelivery"
),
$_SERVER
[
"PHP_SELF"
],
"pfp.delivery_time_days"
,
""
,
$param
,
'align="right"'
,
$sortfield
,
$sortorder
);
// Charges ????
if
(
$conf
->
global
->
PRODUCT_CHARGES
)
{
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/price.php
+
20
−
3
View file @
7d2eae23
...
...
@@ -8,6 +8,7 @@
* Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2014 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2014 Ion agorria <ion@agorria.com>
* Copyright (C) 2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -690,7 +691,11 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<input type="hidden" name="action" value="update_price">'
;
print
'<input type="hidden" name="id" value="'
.
$object
->
id
.
'">'
;
dol_fiche_head
(
''
);
print
'<table class="border" width="100%">'
;
print
'<tbody>'
;
// VAT
print
'<tr><td>'
.
$langs
->
trans
(
"VATRate"
)
.
'</td><td>'
;
...
...
@@ -706,7 +711,7 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
print
'</td>'
;
print
'</tr>'
;
//Only show price mode and expression selector if module is enabled
//
Only show price mode and expression selector if module is enabled
if
(
!
empty
(
$conf
->
dynamicprices
->
enabled
))
{
// Price mode selector
print
'<tr><td>'
.
$langs
->
trans
(
"PriceMode"
)
.
'</td><td>'
;
...
...
@@ -769,9 +774,12 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
}
print
'</td></tr>'
;
print
'</tbody>'
;
print
'</table>'
;
print
'<br><div class="center">'
;
dol_fiche_end
();
print
'<div class="center">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Save"
)
.
'">'
;
print
' '
;
print
'<input type="submit" class="button" name="cancel" value="'
.
$langs
->
trans
(
"Cancel"
)
.
'">'
;
...
...
@@ -787,7 +795,11 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<input type="hidden" name="action" value="update_price">'
;
print
'<input type="hidden" name="id" value="'
.
$object
->
id
.
'">'
;
dol_fiche_head
(
''
);
print
'<table class="border" width="100%">'
;
print
'<tbody>'
;
// VAT
if
(
$i
==
1
)
{
...
...
@@ -826,9 +838,14 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
}
print
'</td></tr>'
;
print
'<tr><td colspan="2" align="center"><input type="submit" class="button" value="'
.
$langs
->
trans
(
"Save"
)
.
'"> '
;
print
'<tr><td colspan="2" align="center"><input type="submit" class="button" value="'
.
$langs
->
trans
(
"Save"
)
.
'">
'
;
print
'<input type="submit" class="button" name="cancel" value="'
.
$langs
->
trans
(
"Cancel"
)
.
'"></td></tr>'
;
print
'</tbody>'
;
print
'</table>'
;
dol_fiche_end
();
print
'</form>'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment