RandomSec/extensions/wikidata/module/scripts/dialogs/manage-account-dialog.html

43 lines
2.0 KiB
HTML
Raw Normal View History

<div class="dialog-frame" style="width: 800px;">
<div class="dialog-header" bind="dialogHeader">Wikidata account</div>
<div class="dialog-body" bind="dialogBody">
<p class="body-text">
Logging in to Wikidata will allow you to perform edits directly from OpenRefine.
Your credentials will be stored unencrypted in OpenRefine's preferences.
</p>
<div class="wikibase-user-management-area">
<div class="wikibase-user-login" bind="loginArea">
2017-09-19 11:39:52 +02:00
<div bind="invalidCredentials" class="wikibase-invalid-credentials"></div>
<form bind="loginForm" class="wikibase-login-form" method="post">
<table>
<tr>
<td><label for="wb-username">Username:</label></td>
<td><input name="wb-username" placeholder="Enter your username" type="text" /></td>
</tr>
<tr>
<td><label for="wb-password">Password:</label></td>
<td><input name="wb-password" type="password" placeholder="Enter your password" /></td>
</tr>
</table>
</form>
<div class="wikibase-login-buttons">
2017-09-19 11:39:52 +02:00
<button class="button cancel-button">Close</button>
<button class="button button-primary" bind="loginButton">Log in</button>
</div>
</div>
<div class="wikibase-user-logout" bind="logoutArea">
<p><span bind="loggedInAs">You are logged in as:</span>
<span bind="loggedInUsername"></span></p>
<form bind="logoutForm" method="post">
<input type="hidden" name="wb-username" value="null" />
<input name="wb-password" type="hidden" value="null" />
</form>
<div class="wikibase-login-buttons">
<button class="button cancel-button">Cancel</button>
<button class="button button-primary" bind="logoutButton">Log out</button>
</div>
</div>
</div>
</div>
</div>