Implode project description everywhere else

Forgot these
This commit is contained in:
halworsen 2018-02-13 16:41:03 +01:00
parent 5e10d53c36
commit 98f882233c
4 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ if($new == 0){
<?= '<input type="text" name="title" value="' . $project->getName() . '" class="boxinput">' ?><br>
<p class="subtitle">Beskrivelse</p>
<textarea name="desc" cols="40" rows="5" class="boxinput"><?= $project->getDescription(); ?></textarea>
<textarea name="desc" cols="40" rows="5" class="boxinput"><?= implode($project->getDescription(), "\n"); ?></textarea>
</div>
<div class="gridr noborder">

View File

@ -70,7 +70,7 @@ if($new == 0){
<p class="subtitle no-chin">Beskrivelse</p>
<p class="subnote">Hva går prosjektet ditt ut ?</p>
<textarea name="desc" style="width:100%" rows="8" class="boxinput"><?= $project->getDescription() ?></textarea>
<textarea name="desc" style="width:100%" rows="8" class="boxinput"><?= implode($project->getDescription(), "\n"); ?></textarea>
<?= '<input type="hidden" name="id" value="' . $project->getID() . '" />' ?>

View File

@ -60,7 +60,7 @@ $projects = $projectManager->getAll();
<p class="noborder no-chin"><?= "<a href=\"project/?id=" . $project->getID() . "\">" . $project->getName() . "</a>"; ?></p>
<p class="subnote"><?= "Organisert av: " . $project->getOwner(); ?></p>
<span>
<p><?= $project->getDescription(); ?></p>
<p><?= implode($project->getDescription(), "</p>\n<p>"); ?></p>
</span>
</li>

View File

@ -78,7 +78,7 @@ $projects = array_values(array_filter(
<div class="event">
<div class="event-info">
<h3 class="no-chin"><?= '<a href="edit.php?id=' . $project->getID() . '">' . $project->getName() . '</a>'; ?></h3>
<p><?= $project->getDescription(); ?></p>
<p><?= implode($project->getDescription(), "</p>\n<p>"); ?></p>
</div>
</div>
</li>