diff --git a/htdocs/eventorganization/class/conferenceorbooth.class.php b/htdocs/eventorganization/class/conferenceorbooth.class.php
index ae35f3eb892..10ed5668c63 100644
--- a/htdocs/eventorganization/class/conferenceorbooth.class.php
+++ b/htdocs/eventorganization/class/conferenceorbooth.class.php
@@ -108,7 +108,7 @@ class ConferenceOrBooth extends ActionComm
'label' => array('type'=>'varchar(255)', 'label'=>'Label', 'enabled'=>'1', 'position'=>30, 'notnull'=>0, 'visible'=>1, 'searchall'=>1, 'css'=>'minwidth300', 'help'=>"Help text", 'showoncombobox'=>'1',),
'fk_soc' => array('type'=>'integer:Societe:societe/class/societe.class.php:1:status=1 AND entity IN (__SHARED_ENTITIES__)', 'label'=>'ThirdParty', 'enabled'=>'1', 'position'=>50, 'notnull'=>-1, 'visible'=>1, 'index'=>1, 'help'=>"LinkToThirparty",),
'fk_project' => array('type'=>'integer:Project:projet/class/project.class.php:1::eventorganization', 'label'=>'Project', 'enabled'=>'1', 'position'=>52, 'notnull'=>-1, 'visible'=>-1, 'index'=>1,),
- 'note' => array('type'=>'text', 'label'=>'Description', 'enabled'=>'1', 'position'=>60, 'notnull'=>0, 'visible'=>1,),
+ 'note' => array('type'=>'text', 'label'=>'Description', 'enabled'=>'1', 'position'=>60, 'notnull'=>0, 'visible'=>1, 'csslist'=>'small'),
'fk_action' => array('type'=>'sellist:c_actioncomm:libelle:id::module LIKE (\'%@eventorganization\')', 'label'=>'Format', 'enabled'=>'1', 'position'=>60, 'notnull'=>1, 'visible'=>1,),
'datep' => array('type'=>'datetime', 'label'=>'DateStart', 'enabled'=>'1', 'position'=>70, 'notnull'=>0, 'visible'=>1, 'showoncombobox'=>'2',),
'datep2' => array('type'=>'datetime', 'label'=>'DateEnd', 'enabled'=>'1', 'position'=>71, 'notnull'=>0, 'visible'=>1, 'showoncombobox'=>'3',),
@@ -118,6 +118,7 @@ class ConferenceOrBooth extends ActionComm
'fk_user_mod' => array('type'=>'integer:User:user/class/user.class.php', 'label'=>'UserModif', 'enabled'=>'1', 'position'=>511, 'notnull'=>-1, 'visible'=>-2,),
'import_key' => array('type'=>'varchar(14)', 'label'=>'ImportId', 'enabled'=>'1', 'position'=>1000, 'notnull'=>-1, 'visible'=>-2,),
'status' => array('type'=>'smallint', 'label'=>'Status', 'enabled'=>'1', 'position'=>1000, 'notnull'=>1, 'visible'=>1, 'default'=>'0', 'index'=>1, 'arrayofkeyval'=>array('0'=>'EvntOrgDraft', '1'=>'EvntOrgSuggested', '2'=> 'EvntOrgConfirmed', '3' =>'EvntOrgNotQualified', '4' =>'EvntOrgDone', '9'=>'EvntOrgCancelled'),),
+ 'num_vote' => array('type'=>'smallint', 'label'=>'NbVotes', 'enabled'=>'1', 'position'=>1001, 'notnull'=>-1, 'visible'=>5, 'default'=>'0', 'index'=>0),
);
public $rowid;
public $id;
diff --git a/htdocs/langs/en_US/eventorganization.lang b/htdocs/langs/en_US/eventorganization.lang
index 335c257b224..f361e6bc192 100644
--- a/htdocs/langs/en_US/eventorganization.lang
+++ b/htdocs/langs/en_US/eventorganization.lang
@@ -86,6 +86,7 @@ DownloadICSLink = Download ICS link
EVENTORGANIZATION_SECUREKEY = Secure Key of the public registration link to a conference
SERVICE_BOOTH_LOCATION = Service used for the invoice row about a booth location
SERVICE_CONFERENCE_ATTENDEE_SUBSCRIPTION = Service used for the invoice row about an attendee subscription to a conference
+NbVotes=Number of votes
#
# Status
#
@@ -115,6 +116,9 @@ EvntOrgDuration = This conference starts on %s and ends on %s.
ConferenceAttendeeFee = Conference attendee fee for the event : '%s' occurring from %s to %s.
BoothLocationFee = Booth location for the event : '%s' occurring from %s to %s
EventType = Event type
+LabelOfBooth=Booth label
+LabelOfconference=Conference label
+ConferenceIsNotConfirmed=Subcription not available, conference is not confirmed yet
#
# Vote page
diff --git a/htdocs/public/eventorganization/attendee_subscription.php b/htdocs/public/eventorganization/attendee_subscription.php
index 19bb2007bda..afdfdb9f806 100644
--- a/htdocs/public/eventorganization/attendee_subscription.php
+++ b/htdocs/public/eventorganization/attendee_subscription.php
@@ -205,7 +205,7 @@ if ($reshook < 0) {
}
// Action called when page is submitted
-if (empty($reshook) && $action == 'add') {
+if (empty($reshook) && $action == 'add' && $conference->status==2) {
$error = 0;
$urlback = '';
@@ -473,25 +473,27 @@ print $langs->trans("EvntOrgWelcomeMessage", $conference->label);
print '
';
print $langs->trans("EvntOrgDuration", dol_print_date($conference->datep), dol_print_date($conference->datef));
print '';
-
dol_htmloutput_errors($errmsg);
-// Print form
-print '
\n";
-print "
";
-print '';
-
-
llxFooterVierge();
$db->close();
diff --git a/htdocs/public/project/suggestbooth.php b/htdocs/public/project/suggestbooth.php
index 6329441778f..43a4b989687 100644
--- a/htdocs/public/project/suggestbooth.php
+++ b/htdocs/public/project/suggestbooth.php
@@ -405,6 +405,7 @@ if (empty($reshook) && $action == 'add') {
$facture->paye = 0;
$facture->date = dol_now();
$facture->cond_reglement_id = $contact->cond_reglement_id;
+ $facture->fk_project = $project->id;
if (empty($facture->cond_reglement_id)) {
$paymenttermstatic = new PaymentTerm($contact->db);
@@ -569,7 +570,7 @@ jQuery(document).ready(function () {
print ''."\n";
// Name
-print ' | ';
+print '
| ';
print 'lastname).'" autofocus="autofocus"> | ';
print '
';
// Email
@@ -577,21 +578,6 @@ print '| '.$langs->trans("Email").'* | | '.$langs->trans("Company").'*';
print ' | | |
'."\n";
-// Type of event
-print '| '.$langs->trans("EventType").'* | '."\n";
-print ''.FORM::selectarray('eventtype', $arrayofeventtype, $eventtype).' | ';
-// Label
-print '
| '.$langs->trans("Label").'* | '."\n";
-print ' |
'."\n";
-// Note
-print '| '.$langs->trans("Note").'* | '."\n";
-print ' |
'."\n";
-// Start Date
-print '| '.$langs->trans("DateStart").'* | '."\n";
-print ' |
'."\n";
-// End Date
-print '| '.$langs->trans("DateEnd").'* | '."\n";
-print ' |
'."\n";
// Address
print '| '.$langs->trans("Address").' | '."\n";
print ' |
'."\n";
@@ -603,9 +589,8 @@ print $formcompany->select_ziptown(GETPOST('town'), 'town', array('zipcode', 'se
print '';
// Country
print '| '.$langs->trans('Country');
-if (!empty(floatval($project->price_booth))) {
- print '*';
-}
+print '*';
+
print ' | ';
$country_id = GETPOST('country_id');
if (!$country_id && !empty($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE)) {
@@ -635,6 +620,22 @@ if (empty($conf->global->SOCIETE_DISABLE_STATE)) {
}
print ' |
';
}
+// Type of event
+print '| '.$langs->trans("EventType").'* | '."\n";
+print ''.FORM::selectarray('eventtype', $arrayofeventtype, $eventtype).' | ';
+// Label
+print '
| '.$langs->trans("LabelOfBooth").'* | '."\n";
+print ' |
'."\n";
+// Note
+print '| '.$langs->trans("Description").'* | '."\n";
+print ' |
'."\n";
+// Start Date
+print '| '.$langs->trans("DateStart").'* | '."\n";
+print ' |
'."\n";
+// End Date
+print '| '.$langs->trans("DateEnd").'* | '."\n";
+print ' |
'."\n";
+
print "
\n";
diff --git a/htdocs/public/project/suggestconference.php b/htdocs/public/project/suggestconference.php
index 00b093ba215..d63f2d2d98d 100644
--- a/htdocs/public/project/suggestconference.php
+++ b/htdocs/public/project/suggestconference.php
@@ -508,11 +508,11 @@ jQuery(document).ready(function () {
print ''."\n";
// Last Name
-print ' | ';
+print '
| ';
print 'lastname).'" autofocus="autofocus"> | ';
print '
';
// First Name
-print ' | ';
+print '
| ';
print 'firstname).'" autofocus="autofocus"> | ';
print '
';
// Email
@@ -520,21 +520,6 @@ print '| '.$langs->trans("Email").'* | | '.$langs->trans("Company").'*';
print ' | | |
'."\n";
-// Type of event
-print '| '.$langs->trans("EventType").'* | '."\n";
-print ''.FORM::selectarray('eventtype', $arrayofeventtype, $eventtype).' | ';
-// Label
-print '
| '.$langs->trans("Label").'* | '."\n";
-print ' |
'."\n";
-// Note
-print '| '.$langs->trans("Note").'* | '."\n";
-print ' |
'."\n";
-// Start Date
-print '| '.$langs->trans("DateStart").' | '."\n";
-print ' |
'."\n";
-// End Date
-print '| '.$langs->trans("DateEnd").' | '."\n";
-print ' |
'."\n";
// Address
print '| '.$langs->trans("Address").' | '."\n";
print ' |
'."\n";
@@ -574,6 +559,22 @@ if (empty($conf->global->SOCIETE_DISABLE_STATE)) {
}
print '';
}
+// Type of event
+print '| '.$langs->trans("EventType").'* | '."\n";
+print ''.FORM::selectarray('eventtype', $arrayofeventtype, $eventtype).' | ';
+// Label
+print '
| '.$langs->trans("LabelOfconference").'* | '."\n";
+print ' |
'."\n";
+// Note
+print '| '.$langs->trans("Description").'* | '."\n";
+print ' |
'."\n";
+// Start Date
+print '| '.$langs->trans("DateStart").' | '."\n";
+print ' |
'."\n";
+// End Date
+print '| '.$langs->trans("DateEnd").' | '."\n";
+print ' |
'."\n";
+
print "
\n";