Resolve redirect problem in schedule import
This commit is contained in:
parent
2a18f6758b
commit
d70d7c6436
|
@ -32,11 +32,11 @@ $route->addGroup(
|
|||
function (RouteCollector $route) {
|
||||
// Schedule
|
||||
$route->addGroup(
|
||||
'/schedule',
|
||||
'-schedule',
|
||||
function (RouteCollector $route) {
|
||||
$route->get('', 'Admin\\Schedule\\ImportSchedule@index');
|
||||
$route->post('/load', 'Admin\\Schedule\\ImportSchedule@loadSchedule');
|
||||
$route->post('/import', 'Admin\\Schedule\\ImportSchedule@importSchedule');
|
||||
$route->post('-load', 'Admin\\Schedule\\ImportSchedule@loadSchedule');
|
||||
$route->post('-import', 'Admin\\Schedule\\ImportSchedule@importSchedule');
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ class ImportSchedule extends BaseController
|
|||
protected $session;
|
||||
|
||||
/** @var string */
|
||||
protected $url = '/admin/schedule';
|
||||
protected $url = 'admin-schedule';
|
||||
|
||||
/** @var GuzzleClient */
|
||||
protected $guzzle;
|
||||
|
|
|
@ -117,7 +117,7 @@ function make_navigation()
|
|||
'admin_shifts' => 'Create shifts',
|
||||
'admin_rooms' => 'Rooms',
|
||||
'admin_groups' => 'Grouprights',
|
||||
'admin/schedule' => ['schedule.import', 'schedule.import'],
|
||||
'admin-schedule' => ['schedule.import', 'schedule.import'],
|
||||
'admin_log' => 'Log',
|
||||
'admin_event_config' => 'Event config',
|
||||
];
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
<div class="row">
|
||||
{% block row_content %}
|
||||
<form method="POST" action="{{ url('/admin/schedule/load') }}">
|
||||
<form method="POST" action="{{ url('/admin-schedule-load') }}">
|
||||
{{ csrf() }}
|
||||
|
||||
<div class="col-md-12">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{% block title %}{{ __('schedule.import.load.title') }}{% endblock %}
|
||||
|
||||
{% block row_content %}
|
||||
<form method="POST" action="{{ url('/admin/schedule/import') }}">
|
||||
<form method="POST" action="{{ url('/admin-schedule-import') }}">
|
||||
{{ csrf() }}
|
||||
{{ f.hidden('schedule-url', schedule_url) }}
|
||||
{{ f.hidden('shift-type', shift_type) }}
|
||||
|
|
Loading…
Reference in New Issue