v1.4.8e Fixed a bug where when you updated a event, it would add a extra r buttons

This commit is contained in:
victor 2020-10-26 14:10:39 +01:00
parent ab5a7477d4
commit 1109990fba
2 changed files with 4 additions and 6 deletions

View File

@ -193,12 +193,7 @@ class EventController extends Controller
$news->subname = $event->name; $news->subname = $event->name;
$news->arrangement_id = $event->id; $news->arrangement_id = $event->id;
$news->type_id = '3'; $news->type_id = '3';
$news->content = "<p>" . $this->closetags(substr($event->description, 0, 300)). "</p>" . $news->content = "<p>" . $this->closetags(substr($event->description, 0, 300));
'<div class="row" style="justify-content: space-between;">'. //route("userevents.createajax", ["event_id" => $event->id ])
'<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue" href="javascript:void(0);" onclick="ajaxCall('. $event->id .')">Tilmeld</a>'.
'<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="'. route("events.show", ["event" => $event->id ]) .'">Læs mere</a>'.
'<a style="margin: 0; padding: 0; text-align: end; font-weight: 700;" class="sde-blue" href="'. route("events.accountsignups", ["event" => $event->id ]) .'">Se deltagere</a>'.
'</div>';
NewsController::storeAndGet($news); NewsController::storeAndGet($news);
} }

View File

@ -47,6 +47,9 @@
<small class="form-text text-muted">For at kunne indsætte et link, skal du markere den text du vil lave som et link først.</small> <small class="form-text text-muted">For at kunne indsætte et link, skal du markere den text du vil lave som et link først.</small>
<div id="editor">{!! $guide->guide_articles !!}</div> <div id="editor">{!! $guide->guide_articles !!}</div>
<textarea name="guide_articles" class="d-none" id="hiddenArea"></textarea> <textarea name="guide_articles" class="d-none" id="hiddenArea"></textarea>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</label>
<input id="fileuploade" type="file" name="resource" accept="image/*">
<input type="submit" id="disable" class="btn btn-dark text-white" value="Opret">
<label class="toggle"> <label class="toggle">
<input class="toggle__input" type="checkbox" name="newsoption"> <input class="toggle__input" type="checkbox" name="newsoption">
<span class="toggle__label"> <span class="toggle__label">