This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add rudimentary ucp (#31 in progress)
- Loading branch information
1 parent
b01358b
commit bdaf7da
Showing
8 changed files
with
168 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<section> | ||
<h1>User control panel</h1> | ||
<ul class="tabs"> | ||
{% for mode_name in modes %} | ||
<li{% if mode_name == mode %} class="active"{% endif %}><a href="/ucp/{{ mode_name }}">{{ mode_name|title }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% include template %} | ||
</section> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>Here you can edit your account info. Can you change your username? Nah, not yet. Can you change your email and password? Sure.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<p>Welcome to your user control panel. There is not much here, so I'll just present you with some useless statistics:</p> | ||
|
||
<p>You have been a member </p> | ||
|
||
<p>Found a bug? Contact dellsystem@wikinotes.ca.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div class="row"> | ||
<div class="span12"> | ||
<form method="post" action=""> | ||
<fieldset> | ||
{% csrf_token %} | ||
<legend>Edit site preferences</legend> | ||
{% if success %} | ||
<div class="clearfix"> | ||
<div class="input"> | ||
<div class="alert-message block-message success"> | ||
<p>Successfully updated site preferences.</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="clearfix"> | ||
<label>Show email:</label> | ||
<div class="input"> | ||
<input type="radio" name="show_email" value="0"{% if not user.get_profile.show_email %} checked="checked"{% endif %} /> No <input type="radio" name="show_email" value="1"{% if user.get_profile.show_email %} checked="checked"{% endif %} /> Yes | ||
</div> | ||
</div> | ||
<div class="actions"> | ||
<input type="submit" class="btn primary" name="submit" value="Submit"> <button type="reset" class="btn">Reset</button> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
<div class="span4"> | ||
<p>Configure if you want logged-in users to be able to see your email I guess. That's all I have for now.</p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<div class="row"> | ||
<div class="span12"> | ||
<form method="post" action=""> | ||
<fieldset> | ||
{% csrf_token %} | ||
<legend>Edit profile information</legend> | ||
{% if success %} | ||
<div class="clearfix"> | ||
<div class="input"> | ||
<div class="alert-message block-message success"> | ||
<p>Successfully updated profile.</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="clearfix"> | ||
<label for="textarea">Bio:</label> | ||
<div class="input"> | ||
<textarea class="xxlarge" id="ucp_bio" name="ucp_bio" rows="2">{{ user.get_profile.bio }}</textarea> | ||
<span class="help-block"> | ||
A short description of yourself. Limit it to 300 characters or so. Markdown is not parsed. | ||
</span> | ||
</div> | ||
</div> | ||
<div class="clearfix"> | ||
<label for="ucp_major">Major:</label> | ||
<div class="input"> | ||
<input class="xlarge" id="ucp_major" name="ucp_major" size="30" type="text" value="{{ user.get_profile.major }}" /> | ||
</div> | ||
</div> | ||
<div class="clearfix"> | ||
<label for="ucp_website">Website:</label> | ||
<div class="input"> | ||
<input class="xlarge" id="ucp_website" name="ucp_website" size="30" type="text" value="{{ user.get_profile.website }}" /> | ||
</div> | ||
</div> | ||
<div class="clearfix"> | ||
<label for="ucp_twitter">Twitter username:</label> | ||
<div class="input"> | ||
<input class="xlarge" id="ucp_twitter" name="ucp_twitter" size="30" type="text" value="{{ user.get_profile.twitter }}" /> | ||
</div> | ||
</div> | ||
<div class="clearfix"> | ||
<label for="ucp_github">Github username:</label> | ||
<div class="input"> | ||
<input class="xlarge" id="ucp_github" name="ucp_github" size="30" type="text" value="{{ user.get_profile.github }}" /> | ||
</div> | ||
</div> | ||
<div class="clearfix"> | ||
<label for="ucp_facebook">Facebook username:</label> | ||
<div class="input"> | ||
<input class="xlarge" id="ucp_facebook" name="ucp_facebook" size="30" type="text" value="{{ user.get_profile.facebook }}" /> | ||
</div> | ||
</div> | ||
<div class="clearfix"> | ||
<label for="ucp_gplus">Google plus ID:</label> | ||
<div class="input"> | ||
<input class="xlarge" id="ucp_gplus" name="ucp_gplus" size="30" type="text" value="{{ user.get_profile.gplus }}" /> | ||
</div> | ||
</div> | ||
<div class="actions"> | ||
<input type="submit" class="btn primary" name="submit" value="Submit"> <button type="reset" class="btn">Reset</button> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
<div class="span4"> | ||
<p>All fields are optional.</p> | ||
|
||
<ul> | ||
<li>Edit your bio</li> | ||
<li>Edit your major</li> | ||
<li>Link to website</li> | ||
<li>Twitter</li> | ||
<li>Github</li> | ||
<li>Facebook</li> | ||
<li>Google plus</li> | ||
</ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters