Commits

Yury Shulaev committed c662fa6

translate dashboard page into english

Comments (0)

Files changed (2)

 <!DOCTYPE html>
 <html>
-    <head>
-        <meta charset="utf-8">
-        <title>SQL Designer</title>
-        <link rel="stylesheet" href="/styles/dashboard.css">
-        <script type="text/javascript">
-            function createProject() {
-                projectName = document.getElementById('project_name').value;
+	<head>
+		<meta charset="utf-8">
+		<title>SQL Designer</title>
+		<link rel="stylesheet" href="/styles/dashboard.css">
+		<script type="text/javascript">
+			function createProject() {
+				projectName = document.getElementById('project_name').value;
 
-                if (projectName) {
-                    window.location.href = '/' + projectName;
-                }
-            }
-        </script>
-    </head>
-    <body>
-        <div id="main">
-            <h1>SQL Designer</h1>
-            <p>Список проектов:</p>
-            <ul>
-                <?php foreach (glob('backend/php-mysql+file/data/*') as $filename): ?>
-                    <?php $keywordSafe = htmlspecialchars(basename($filename), ENT_QUOTES); ?>
-                    <li><a href="/<?php echo $keywordSafe; ?>"><?php echo $keywordSafe; ?></a></li>
-                <?php endforeach; ?>
-            </ul>
-            <form onsubmit="createProject(); return false">
-                <input id="project_name" type="text"><input type="button" value="Создать">
-            </form>
-        </div>
-    </body>
+				if (projectName) {
+					window.location.href = '/' + projectName;
+				}
+			}
+		</script>
+	</head>
+	<body>
+		<div id="main">
+			<h1>SQL Designer</h1>
+			<p>Project list:</p>
+			<ul>
+				<?php foreach (glob('backend/php-mysql+file/data/*') as $filename): ?>
+					<?php $keywordSafe = htmlspecialchars(basename($filename), ENT_QUOTES); ?>
+					<li><a href="/<?php echo $keywordSafe; ?>"><?php echo $keywordSafe; ?></a></li>
+				<?php endforeach; ?>
+			</ul>
+			<form onsubmit="createProject(); return false">
+				<input id="project_name" type="text"> <input id="new_project" type="button" value="New">
+			</form>
+		</div>
+	</body>
 </html>

styles/dashboard.css

 * {
-    font-family: sans-serif;
+	font-family: sans-serif;
 }
 
 #main, input, select, textarea {
-    font-size: 17px;
+	font-size: 17px;
 }
 
 #main {
-    margin: 0 auto;
+	margin: 0 auto;
 }
 
 #main {
-    width: 65%;
-    min-width: 200px;
+	width: 65%;
+	min-width: 200px;
 }
 
 a, a:visited {
-    color: #12c;
-    text-decoration: none;
+	color: #12c;
+	text-decoration: none;
 }
 
 a:hover {
-    text-decoration: underline;
+	text-decoration: underline;
 }
+
+#new_project {
+	width: 60px;
+}