mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
87 lines
3.3 KiB
Text
87 lines
3.3 KiB
Text
<div class="header-Outro">
|
|
<div class="row content single-Col">
|
|
<h1>Account Settings</h1>
|
|
<h3 class="subtitle">Manage the account for your sites</h3>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content single-Col misc-page txt-Center">
|
|
<article>
|
|
<section>
|
|
<div class="txt-Center">
|
|
<% if flash[:success] %>
|
|
<div class="alert alert-block alert-success" style="margin-top: 20px">
|
|
<%== flash[:success] %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if flash[:error] %>
|
|
<div class="alert alert-block alert-error" style="margin-top: 20px">
|
|
<%== flash[:error] %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<div class="tabbable" style="margin-top: 20px"> <!-- Only required for left/right tabs -->
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active"><a href="#sites" data-toggle="tab">Manage Sites</a></li>
|
|
<li><a href="#supporter" data-toggle="tab">Supporter Info</a></li>
|
|
<li><a href="#password" data-toggle="tab">Change Password</a></li>
|
|
<li><a href="#email" data-toggle="tab">Change Email</a></li>
|
|
<% if current_site.stripe_paying_supporter? %>
|
|
<li><a href="#billing" data-toggle="tab">Change Card</a></li>
|
|
<% end %>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<div class="tab-pane active" id="sites">
|
|
<%== erb :'settings/account/sites' %>
|
|
</div>
|
|
<div class="tab-pane" id="supporter">
|
|
<%== erb :'settings/account/supporter' %>
|
|
</div>
|
|
<div class="tab-pane" id="password">
|
|
<%== erb :'settings/account/password' %>
|
|
</div>
|
|
<div class="tab-pane" id="email">
|
|
<%== erb :'settings/account/email' %>
|
|
</div>
|
|
<% if current_site.stripe_paying_supporter? %>
|
|
<div class="tab-pane" id="billing">
|
|
<%== erb :'settings/account/billing' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</article>
|
|
</div>
|
|
|
|
<div class="modal hide fade" id="deleteSite" tabindex="-1" role="dialog" aria-labelledby="deleteSiteLabel" aria-hidden="true">
|
|
<form method="POST" action="/site/delete">
|
|
<%== csrf_token_input_html %>
|
|
<div class="modal-header">
|
|
<button class="close" type="button" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
|
|
<h3 id="deleteSiteLabel">Permanently Delete Site</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<strong style="color: red">WARNING: This will permanently delete your web site and Neocities account. There is no undo!</strong>
|
|
|
|
<p>Delete Site Name: <strong><%= current_site.username %></strong></p>
|
|
<p>Confirm your site name by typing it here:</p>
|
|
<input class="input-Area" name="username" type="text">
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class="btn cancel" data-dismiss="modal" aria-hidden="true">Cancel</button>
|
|
<button type="submit" class="btn-Action">Permanently Delete Site</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
if (location.hash !== '') $('a[href="' + location.hash + '"]').tab('show');
|
|
return $('a[data-toggle="tab"]').on('shown', function(e) {
|
|
return location.hash = $(e.target).attr('href').substr(1);
|
|
});
|
|
});
|
|
</script>
|