Skip to content
Snippets Groups Projects
Commit 706e0e1b authored by Moritz Strohm's avatar Moritz Strohm
Browse files

TIC #160: Raumsuche: Aktion „URL zur Suche kopieren“ hinzufügen

parent 4ebe33e0
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,7 @@ class Resources_SearchController extends AuthenticatedController ...@@ -66,6 +66,7 @@ class Resources_SearchController extends AuthenticatedController
$this->form_submitted = false; $this->form_submitted = false;
if ($this->tree_selected_resource) { if ($this->tree_selected_resource) {
$resource = Resource::find($this->tree_selected_resource); $resource = Resource::find($this->tree_selected_resource);
if (!$resource) { if (!$resource) {
...@@ -97,6 +98,14 @@ class Resources_SearchController extends AuthenticatedController ...@@ -97,6 +98,14 @@ class Resources_SearchController extends AuthenticatedController
$this->booking_plan_action_params = []; $this->booking_plan_action_params = [];
if ($this->form_submitted) { if ($this->form_submitted) {
$actions = new ShareWidget();
$actions->addCopyableLink(
_('URL zur Suche kopieren'),
$_SERVER['REQUEST_URI'],
Icon::create('group')
);
$sidebar->insertWidget($actions, ':first');
//Check if the time range criteria has been set. //Check if the time range criteria has been set.
//If so, set the begin date as parameter for the //If so, set the begin date as parameter for the
//booking plan action URL. //booking plan action URL.
...@@ -108,6 +117,7 @@ class Resources_SearchController extends AuthenticatedController ...@@ -108,6 +117,7 @@ class Resources_SearchController extends AuthenticatedController
} }
} }
} }
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment