Procházet zdrojové kódy

added btn add Koresp in Edit Zaliczka

Piotr Labudda před 9 roky
rodič
revize
f560fe68eb

+ 11 - 7
SE/se-lib/Route/UrlAction/UserProNetMediaZaliczka.php

@@ -36,12 +36,16 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
 			if (!$data['idZaliczka']) {
 				$this->zaliczkaListaView($data);
 			} else {
-				UI::startContainer();
-				UI::tag('a', [
-					'href' => "index.php?_route=UrlAction_UserProNetMediaZaliczka&idUser={$data['idUser']}",
-					'class' => "btn btn-link"
-				], "<i class=\"glyphicon glyphicon-arrow-left\"></i> wróć");
-				UI::endContainer();
+				echo UI::h('div', ['class' => "container", 'style' => 'margin-top:12px; margin-bottom:6px; padding-bottom:6px; border-bottom:1px solid #ddd'], [
+					UI::h('a', [
+						'href' => "index.php?_route=UrlAction_UserProNetMediaZaliczka&idUser={$data['idUser']}",
+						'class' => "btn btn-link pull-left"
+					], "<i class=\"glyphicon glyphicon-arrow-left\"></i> wróć"),
+					UI::h('a', [
+						'href' => "index.php?_route=ViewTableAjax&typeName=p5_default_db:IN7_DZIENNIK_KORESP#CREATE",
+						'class' => "btn btn-sm btn-default pull-right"
+					], "<span class=\"glyphicon glyphicon-plus\"></span> Dodaj dokument <i>(Korespondencję)</i>")
+				]);
 				$this->zaliczkaFormView($data);
 			}
 		} catch (Exception $e) {
@@ -243,7 +247,7 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
 			header("Location: {$redirectUrl}");
 		} else {
 			echo'<script type="text/javascript">'."
-window.location.href='{$redirectUrl}';
+				window.location.href='{$redirectUrl}';
 			".'</script>';
 			echo "\n".'<noscript>';
 			echo "\n".'<meta http-equiv="refresh" content="0;url='.$redirectUrl.'" />';