Clean code
This commit is contained in:
parent
11230ebf7f
commit
51f342c81a
@ -205,19 +205,27 @@ print "\n";
|
|||||||
|
|
||||||
// Show all action buttons
|
// Show all action buttons
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
// Output introduction text
|
// Output introduction text
|
||||||
|
$foundaction = 0;
|
||||||
if ($project->accept_booth_suggestions) {
|
if ($project->accept_booth_suggestions) {
|
||||||
print '<input type="submit" value="'.$langs->trans("SuggestBooth").'" id="suggestbooth" name="suggestbooth" class="button">';
|
$foundaction++;
|
||||||
|
print '<input type="submit" value="'.$langs->trans("SuggestBooth").'" id="suggestbooth" name="suggestbooth" class="button width500">';
|
||||||
print '<br><br>';
|
print '<br><br>';
|
||||||
}
|
}
|
||||||
if ($project->accept_conference_suggestions) {
|
if ($project->accept_conference_suggestions == 1 || $project->accept_conference_suggestions == 2) { // Can suggest conferences
|
||||||
print '<input type="submit" value="'.$langs->trans("SuggestConference").'" id="suggestconference" name="suggestconference" class="button">';
|
$foundaction++;
|
||||||
|
print '<input type="submit" value="'.$langs->trans("SuggestConference").'" id="suggestconference" name="suggestconference" class="button width500">';
|
||||||
print '<br><br>';
|
print '<br><br>';
|
||||||
}
|
}
|
||||||
print '<input type="submit" value="'.$langs->trans("ViewAndVote").'" id="viewandvote" name="viewandvote" class="button">';
|
if ($project->accept_conference_suggestions == 2 || $project->accept_conference_suggestions == 3) { // Can vote for conferences
|
||||||
|
$foundaction++;
|
||||||
|
print '<input type="submit" value="'.$langs->trans("ViewAndVote").'" id="viewandvote" name="viewandvote" class="button width500">';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! $foundaction) {
|
||||||
|
print '<span class="opacitymedium">'.$langs->trans("NoPublicActionsAllowedForThisEvent").'</span>';
|
||||||
|
}
|
||||||
|
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user