Added locale (english only at the moment) and modifed the EJS so I think
every string is customisable (via the /locales/selected locale)
This commit is contained in:
@@ -6,10 +6,16 @@
|
||||
<body>
|
||||
<form action="/submit_edit_user" method="POST">
|
||||
<input name="userID" type="hidden" value="<%= userID %>">
|
||||
<input placeholder="<%= user.prettyname %>'s password" type="password" required id="password" name="password"><br/>
|
||||
<input placeholder="Pretty Name" name="prettyname" value="<%= user.prettyname %>"><br/>
|
||||
<textarea placeholder="Description" name="description"><%= user.description %></textarea><br/>
|
||||
<label><%- config.string.delete_account_confirmation %>: </label><input type="checkbox" name="agreement"><br/>
|
||||
<label><%= locale.password %>:</label><br/>
|
||||
<input type="password" required id="password" name="password"><br/><br/>
|
||||
|
||||
<label><%= locale.prettyname %>:</label><br/>
|
||||
<input name="prettyname" value="<%= user.prettyname %>"><br/><br/>
|
||||
|
||||
<label><%= locale.description %>:</label><br/>
|
||||
<textarea name="description"><%= user.description %></textarea><br/><br/>
|
||||
|
||||
<label><%- locale.delete_account_confirmation %>: </label><input type="checkbox" name="agreement"><br/>
|
||||
<input type="submit" value="Submit"><br/>
|
||||
</form>
|
||||
</body>
|
||||
|
@@ -7,13 +7,21 @@
|
||||
<form action="/submit_edit_post" method="POST" onsubmit="sha512password()">
|
||||
<input name="userID" type="hidden" value="<%= post['userID'] %>">
|
||||
<input name="postID" type="hidden" value="<%= post_id %>">
|
||||
<input placeholder="<%= user['prettyname'] %>'s password" type="password" required id="password" name="password"><br/>
|
||||
<input placeholder="title" value=" <%=post['title'] %>" required name="title"><br/>
|
||||
<textarea placeholder="content" required name="content"><%= post['content'] %></textarea><br/>
|
||||
<input placeholder="tags (comma seperated)" value="<%= post['tags'] %>" name="tags"><br/>
|
||||
|
||||
<label><%= locale.password %>:</label><br/>
|
||||
<input type="password" required id="password" name="password"><br/><br/>
|
||||
|
||||
<label><%= locale.title %>:</label><br/>
|
||||
<input value="<%=post['title'] %>" required name="title"><br/><br/>
|
||||
|
||||
<label><%= locale.post_content %>:</label><br/>
|
||||
<textarea required name="content"><%= post['content'] %></textarea><br/><br/>
|
||||
|
||||
<label><%= locale.tags %>:</label><br/>
|
||||
<input value="<%= post['tags'] %>" name="tags"><br/><br/>
|
||||
|
||||
<label>Delete forever (no undo): </label><input name="delete" type="checkbox"><br/>
|
||||
<input type="submit" value="Submit"><br/>
|
||||
<small>* Markdown supported</small>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -5,12 +5,21 @@
|
||||
</head>
|
||||
<body>
|
||||
<form action="/submit_post" method="POST">
|
||||
<input placeholder="username" required name="username"><br/>
|
||||
<input placeholder="password" type="password" required id="password" name="password"><br/>
|
||||
<input placeholder="title" required name="title"><br/>
|
||||
<textarea placeholder="post content*" required name="content"></textarea><br/>
|
||||
<input placeholder="Tags (comma seperated)" name="tags"><br/>
|
||||
<label><%= locale.username %>:</label><br/>
|
||||
<input required name="username"><br/><br/>
|
||||
|
||||
<label><%= locale.password %>:</label><br/>
|
||||
<input type="password" required id="password" name="password"><br/><br/>
|
||||
|
||||
<label><%= locale.title %>:</label><br/>
|
||||
<input required name="title"><br/><br/>
|
||||
|
||||
<label><%= locale.post_content %>:</label><br/>
|
||||
<textarea required name="content"></textarea><br/><br/>
|
||||
|
||||
<label><%= locale.tags %>:</label><br/>
|
||||
<input name="tags"><br/><br/>
|
||||
|
||||
<input type="submit" value="Submit"><br/>
|
||||
<small>* Markdown supported</small>
|
||||
</body>
|
||||
</form></html>
|
||||
|
@@ -5,11 +5,19 @@
|
||||
</head>
|
||||
<body>
|
||||
<form action="/submit_signup" method="POST">
|
||||
<input placeholder="username" required name="username"><br/>
|
||||
<input placeholder="prettyname" required name="prettyname"><br/>
|
||||
<input placeholder="password" type="password" required id="password" name="password"><br/>
|
||||
<textarea placeholder="description (social links, what you do etc), supports markdown" id="description" name="description"></textarea><br/>
|
||||
<label><%- config.string.signup_agreement %>: </label><input type="checkbox" name="agreement" required><br/>
|
||||
<label><%= locale.username %></label><br/>
|
||||
<input required name="username"><br/><br/>
|
||||
|
||||
<label><%= locale.prettyname %></label><br/>
|
||||
<input required name="prettyname"><br/><br/>
|
||||
|
||||
<label><%= locale.password %></label><br/>
|
||||
<input type="password" required id="password" name="password"><br/><br/>
|
||||
|
||||
<label><%= locale.description %></label><br/>
|
||||
<textarea id="description" name="description"></textarea><br/><br/>
|
||||
|
||||
<label><%- locale.signup_agreement %>: </label><input type="checkbox" name="agreement" required><br/>
|
||||
<input type="submit" value="Submit"><br/>
|
||||
</form>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user